0031431: Visualization, PrsMgr_PresentableObject - simplify HLR computing interface
[occt.git] / samples / mfc / standard / 07_Triangulation / src / ISession_Curve.cpp
index a19b496..db70409 100755 (executable)
@@ -7,10 +7,9 @@
 #include <Prs3d_LineAspect.hxx>
 #include <StdPrs_Curve.hxx>
 #include <GeomAdaptor_Curve.hxx>
-#include <AIS_Drawer.hxx>
+#include <Prs3d_Drawer.hxx>
 #include <Prs3d_ArrowAspect.hxx>
 
-IMPLEMENT_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
 IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
 
 #ifdef _DEBUG
@@ -32,27 +31,21 @@ ISession_Curve::~ISession_Curve()
 {
 
 }
-void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
+void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
                              const Handle(Prs3d_Presentation)& aPresentation,
                              const Standard_Integer /*aMode*/)
 {
   GeomAdaptor_Curve anAdaptorCurve(myCurve);
   if (hasOwnColor)
-    myDrawer->LineAspect()->SetColor(myOwnColor);
+    myDrawer->LineAspect()->SetColor (myDrawer->Color());
   myDrawer->Link()->SetDiscretisation(100);
   myDrawer->Link()->SetMaximalParameterValue(500);
 
   StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
 }
 
-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) 
+void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
+                                     const Standard_Integer /*aMode*/) 
 { 
 }