Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Inherit problem from AIS_InteractiveObject

Inherit problem from AIS_InteractiveObject
seumonkey 2012/12/18 08:52
I inherit a class :
class DblYellowLine: public AIS_InteractiveObject{}
and make a shape in the constructor func:
...
myShape = BRepBuilderAPI_MakeFace(aWire);
and overload the compute func:
void DblYellowLine::Compute(const Handle_PrsMgr_PresentationManager3d& aPresentationManager,const Handle_Prs3d_Presentation& aPresentation,const Standard_Integer aMode )
{
StdPrs_WFDeflectionShape::Add(aPresentation,myShape, myDrawer );
}
void DblYellowLine::Compute(const Handle_Prs3d_Projector& aProjector,     const Handle_Prs3d_Presentation& aPresentation)
{
StdPrs_HLRShape::Add(aPresentation,myShape,myDrawer,aProjector);
}

and display like this:
DblYellowLine s;
_context->Display(&s);
But I cannot see anything. what is wrong ? Thank you for your help !
 
 
Latest news
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map