1 // ISession_Point.cpp: implementation of the ISession_Point class.
3 //////////////////////////////////////////////////////////////////////
6 #include "..\\GeometryApp.h"
7 #include "ISession_Point.h"
8 #include <StdPrs_Point.hxx>
12 static char THIS_FILE[]=__FILE__;
13 //#define new DEBUG_NEW
16 IMPLEMENT_STANDARD_RTTIEXT(ISession_Point,AIS_InteractiveObject)
18 //////////////////////////////////////////////////////////////////////
19 // Construction/Destruction
20 //////////////////////////////////////////////////////////////////////
21 ISession_Point::ISession_Point(Standard_Real X,Standard_Real Y ,Standard_Real Z)
22 :myPoint(gp_Pnt(X,Y,Z))
27 ISession_Point::ISession_Point(const gp_Pnt2d& aPoint,Standard_Real Elevation)
28 :myPoint(gp_Pnt(aPoint.X(),aPoint.Y(),Elevation))
33 ISession_Point::ISession_Point(const gp_Pnt& aPoint)
39 ISession_Point::~ISession_Point()
44 void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
45 const Handle(Prs3d_Presentation)& aPresentation,
46 const Standard_Integer /*aMode*/)
48 Handle(Geom_CartesianPoint) aGeomPoint = new Geom_CartesianPoint(myPoint);
50 StdPrs_Point::Add(aPresentation,aGeomPoint,myDrawer);
53 void ISession_Point::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
54 const Standard_Integer /*unMode*/)