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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / Inherit problem from AIS_InteractiveObject

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.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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