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>
13 IMPLEMENT_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
14 IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
18 static char THIS_FILE[]=__FILE__;
21 //////////////////////////////////////////////////////////////////////
22 // Construction/Destruction
23 //////////////////////////////////////////////////////////////////////
26 ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
27 :AIS_InteractiveObject(),myCurve(aCurve)
31 ISession_Curve::~ISession_Curve()
35 void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
36 const Handle(Prs3d_Presentation)& aPresentation,
37 const Standard_Integer /*aMode*/)
39 GeomAdaptor_Curve anAdaptorCurve(myCurve);
41 myDrawer->LineAspect()->SetColor(myOwnColor);
42 myDrawer->Link()->SetDiscretisation(100);
43 myDrawer->Link()->SetMaximalParameterValue(500);
45 StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
48 void ISession_Curve::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
49 const Handle(Prs3d_Presentation)& /*aPresentation*/)
54 void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
55 const Standard_Integer /*aMode*/)