static char THIS_FILE[]=__FILE__;
#endif
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-
-ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
-:AIS_InteractiveObject(),myCurve(aCurve)
-{
-
-}
-
-ISession_Curve::~ISession_Curve()
-{
-
-}
-void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
- const Handle(Prs3d_Presentation)& aPresentation,
- const Standard_Integer aMode)
+void ISession_Curve::Compute (const Handle(PrsMgr_PresentationManager3d)& ,
+ const Handle(Prs3d_Presentation)& thePrs,
+ const Standard_Integer theMode)
{
- GeomAdaptor_Curve anAdaptorCurve(myCurve);
- Handle(Prs3d_Drawer) aDrawer = new Prs3d_Drawer();
- aDrawer->LineAspect()->SetColor(Quantity_NOC_RED);
-
- switch (aMode)
+ GeomAdaptor_Curve anAdaptorCurve (myCurve);
+ switch (theMode)
+ {
+ case 1:
{
- case 1 :
- StdPrs_PoleCurve::Add(aPresentation, anAdaptorCurve,aDrawer);
- case 0 :
- StdPrs_Curve::Add( aPresentation, anAdaptorCurve ,myDrawer);
- break;
+ Handle(Prs3d_Drawer) aPoleDrawer = new Prs3d_Drawer();
+ aPoleDrawer->SetLineAspect (new Prs3d_LineAspect (Quantity_NOC_RED, Aspect_TOL_SOLID, 1.0));
+ StdPrs_PoleCurve::Add (thePrs, anAdaptorCurve, aPoleDrawer);
}
+ case 0:
+ {
+ StdPrs_Curve::Add (thePrs, anAdaptorCurve, myDrawer);
+ break;
+ }
+ }
}
-
-void ISession_Curve::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
- const Handle(Prs3d_Presentation)& /*aPresentation*/)
- {
-
- }
-
-void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
- const Standard_Integer /*aMode*/)
-{
-}
-
-