I am trying to understand the following example:
Handle(V3d_Viewer) theViewer; Handle(AIS_InteractiveContext) aContext = new AIS_InteractiveContext (theViewer); BRepPrimAPI_MakeWedge aWedgeMaker (theWedgeDX, theWedgeDY, theWedgeDZ, theWedgeLtx); TopoDS_Solid aShape = aWedgeMaker.Solid(); Handle(AIS_Shape) aShapePrs = new AIS_Shape (aShape); // creation of the presentable object aContext->Display (aShapePrs, AIS_Shaded, 0, true); // display the presentable object and redraw 3d viewer
In particular, the line:
Handle(AIS_Shape) aShapePrs = new AIS_Shape (aShape);
The signature of
AIS_Shape constructor returns
AIS_Shape class rather than
Handle(AIS_Shape). Is there an operator or something going on?
I don't know C++ very well. I am just trying to create some binding for a different programming language.