0028060: Samples - Objects in Geometry/Viewer2d have incorrect color
[occt.git] / samples / mfc / standard / 01_Geometry / src / ISession2D / ISession_Surface.h
1 // ISession_Surface.h: interface for the ISession_Surface class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #pragma once
6
7 #include <Standard_Macro.hxx>
8 #include <Standard_DefineHandle.hxx>
9
10 class ISession_Surface : public AIS_InteractiveObject  
11 {
12   DEFINE_STANDARD_RTTIEXT(ISession_Surface,AIS_InteractiveObject)
13 public:
14
15   ISession_Surface (const Handle(Geom_Surface)& theSurface) : mySurface (theSurface) {}
16   virtual ~ISession_Surface() {}
17
18 private:
19
20   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0);
21   virtual void Compute (const Handle(Prs3d_Projector)& ,const Handle(Prs3d_Presentation)& ) {}
22   virtual void ComputeSelection (const Handle(SelectMgr_Selection)& ,const Standard_Integer ) {}
23
24 private:
25
26   Handle(Geom_Surface) mySurface;
27
28 };
29
30 DEFINE_STANDARD_HANDLE(ISession_Surface, AIS_InteractiveObject)