1 // ISession_Curve.cpp: implementation of the ISession_Curve class.
3 //////////////////////////////////////////////////////////////////////
6 #include "ISession_Curve.h"
7 #include <Prs3d_LineAspect.hxx>
8 #include <StdPrs_Curve.hxx>
9 #include <GeomAdaptor_Curve.hxx>
10 #include <Prs3d_Drawer.hxx>
11 #include <Prs3d_ArrowAspect.hxx>
15 // Foreach ancestors, we add a IMPLEMENT_STANDARD_SUPERTYPE and
16 // a IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY macro.
17 // We must respect the order: from the direct ancestor class
36 static char THIS_FILE[]=__FILE__;
39 //////////////////////////////////////////////////////////////////////
40 // Construction/Destruction
41 //////////////////////////////////////////////////////////////////////
44 ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
45 :AIS_InteractiveObject(),myCurve(aCurve)
49 ISession_Curve::~ISession_Curve()
53 void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
54 const Handle(Prs3d_Presentation)& aPresentation,
55 const Standard_Integer /*aMode*/)
57 GeomAdaptor_Curve anAdaptorCurve(myCurve);
59 myDrawer->LineAspect()->SetColor (myDrawer->Color());
60 myDrawer->Link()->SetDiscretisation(100);
61 myDrawer->Link()->SetMaximalParameterValue(500);
63 StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
66 void ISession_Curve::Compute(const Handle(Prs3d_Projector)& aProjector,
67 const Handle(Prs3d_Presentation)& aPresentation)
72 void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
73 const Standard_Integer aMode)