0031431: Visualization, PrsMgr_PresentableObject - simplify HLR computing interface
[occt.git] / samples / mfc / standard / 01_Geometry / src / ISession2D / ISession_Surface.h
index f31a7cd..2d7a00c 100755 (executable)
@@ -2,33 +2,28 @@
 //
 //////////////////////////////////////////////////////////////////////
 
-#if !defined(AFX_ISESSION_SURFACE_H__27F86F5A_A6A4_11D1_8DA4_0800369C8A03__INCLUDED_)
-#define AFX_ISESSION_SURFACE_H__27F86F5A_A6A4_11D1_8DA4_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
 #pragma once
-#endif // _MSC_VER >= 1000
 
 #include <Standard_Macro.hxx>
 #include <Standard_DefineHandle.hxx>
-class ISession_Surface;
-DEFINE_STANDARD_HANDLE(ISession_Surface,AIS_InteractiveObject)
+
 class ISession_Surface : public AIS_InteractiveObject  
 {
+  DEFINE_STANDARD_RTTIEXT(ISession_Surface,AIS_InteractiveObject)
 public:
-       ISession_Surface();
-       ISession_Surface(const Handle(Geom_Surface)& aSurface);
-       virtual ~ISession_Surface();
 
-DEFINE_STANDARD_RTTIEXT(ISession_Surface,AIS_InteractiveObject)
+  ISession_Surface (const Handle(Geom_Surface)& theSurface) : mySurface (theSurface) {}
+  virtual ~ISession_Surface() {}
+
 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);
+  Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0);
+  virtual void ComputeSelection (const Handle(SelectMgr_Selection)& ,const Standard_Integer ) {}
+
+private:
 
-Handle(Geom_Surface) mySurface;
+  Handle(Geom_Surface) mySurface;
 
 };
 
-#endif // !defined(AFX_ISESSION_SURFACE_H__27F86F5A_A6A4_11D1_8DA4_0800369C8A03__INCLUDED_)
+DEFINE_STANDARD_HANDLE(ISession_Surface, AIS_InteractiveObject)