1 // ISession_Surface.cpp: implementation of the ISession_Surface class.
3 //////////////////////////////////////////////////////////////////////
6 #include "..\\GeometryApp.h"
7 #include "ISession_Surface.h"
11 static char THIS_FILE[]=__FILE__;
12 //#define new DEBUG_NEW
14 IMPLEMENT_STANDARD_HANDLE(ISession_Surface,AIS_InteractiveObject)
15 IMPLEMENT_STANDARD_RTTIEXT(ISession_Surface,AIS_InteractiveObject)
17 //////////////////////////////////////////////////////////////////////
18 // Construction/Destruction
19 //////////////////////////////////////////////////////////////////////
21 ISession_Surface::ISession_Surface(Handle(Geom_Surface)& aSurface)
22 :AIS_InteractiveObject(),mySurface(aSurface)
26 ISession_Surface::~ISession_Surface()
30 void ISession_Surface::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
31 const Handle(Prs3d_Presentation)& aPresentation,
32 const Standard_Integer aMode)
35 GeomAdaptor_Surface anAdaptorSurface(mySurface);
36 Handle(GeomAdaptor_HSurface) anAdaptorHSurface = new GeomAdaptor_HSurface(mySurface);
38 Handle(AIS_Drawer) aDrawer = new AIS_Drawer();
39 aDrawer->LineAspect()->SetColor(Quantity_NOC_YELLOW3);
44 StdPrs_ShadedSurface::Add(aPresentation,anAdaptorSurface,myDrawer);
47 StdPrs_WFPoleSurface::Add(aPresentation,anAdaptorSurface,aDrawer);
49 StdPrs_WFSurface::Add(aPresentation,anAdaptorHSurface,myDrawer);
55 void ISession_Surface::Compute(const Handle(Prs3d_Projector)& aProjector,
56 const Handle(Prs3d_Presentation)& aPresentation)
60 void ISession_Surface::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
61 const Standard_Integer aMode)