0028060: Samples - Objects in Geometry/Viewer2d have incorrect color
[occt.git] / samples / mfc / standard / 01_Geometry / src / ISession2D / ISession_Curve.h
index 54fc440..0eba44f 100755 (executable)
@@ -2,33 +2,27 @@
 //
 //////////////////////////////////////////////////////////////////////
 
-#if !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
-#define AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
+
 #include <Standard_Macro.hxx>
 #include <Standard_DefineHandle.hxx>
 #include "AIS_InteractiveObject.hxx"
-class ISession_Curve;
-DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
 
 class ISession_Curve : public AIS_InteractiveObject  
 {
-public:
-  ISession_Curve(const Handle(Geom_Curve)& aCurve);
-  virtual ~ISession_Curve();
-
   DEFINE_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
+public:
+  ISession_Curve(const Handle(Geom_Curve)& theCurve) : myCurve (theCurve) {}
+  virtual ~ISession_Curve() {}
 
 private:
 
   Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
-  Standard_EXPORT virtual  void Compute(const Handle(Prs3d_Projector)& aProjector,const Handle(Prs3d_Presentation)& aPresentation) ;
-  void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
+  virtual void Compute(const Handle(Prs3d_Projector)& ,const Handle(Prs3d_Presentation)& ) {}
+  virtual void ComputeSelection (const Handle(SelectMgr_Selection)& ,const Standard_Integer ) {}
 
+private:
   Handle(Geom_Curve) myCurve;
 };
 
-#endif // !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
+DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)