0023776: Redesign of MFC samples after V2d viewer removing
[occt.git] / samples / mfc / standard / 01_Geometry / src / ISession2D / ISession_Point.cpp
CommitLineData
7fd59977 1// ISession_Point.cpp: implementation of the ISession_Point class.
2//
3//////////////////////////////////////////////////////////////////////
4
5#include "stdafx.h"
6#include "..\\GeometryApp.h"
7#include "ISession_Point.h"
8
9#ifdef _DEBUG
10#undef THIS_FILE
11static char THIS_FILE[]=__FILE__;
12//#define new DEBUG_NEW
13#endif
14IMPLEMENT_STANDARD_HANDLE(ISession_Point,AIS_InteractiveObject)
15IMPLEMENT_STANDARD_RTTIEXT(ISession_Point,AIS_InteractiveObject)
16
7fd59977 17//////////////////////////////////////////////////////////////////////
18// Construction/Destruction
19//////////////////////////////////////////////////////////////////////
20ISession_Point::ISession_Point(Standard_Real X,Standard_Real Y ,Standard_Real Z)
21:myPoint(gp_Pnt(X,Y,Z))
22{
23
24}
25
26ISession_Point::ISession_Point(gp_Pnt2d& aPoint,Standard_Real Elevation)
27:myPoint(gp_Pnt(aPoint.X(),aPoint.Y(),Elevation))
28{
29
30}
31
32ISession_Point::ISession_Point(gp_Pnt& aPoint)
33:myPoint(aPoint)
34{
35
36}
37
38ISession_Point::~ISession_Point()
39{
40
41}
42
43void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
44 const Handle(Prs3d_Presentation)& aPresentation,
45 const Standard_Integer aMode)
46{
47 Handle(Geom_CartesianPoint) aGeomPoint = new Geom_CartesianPoint(myPoint);
48
49 StdPrs_Point::Add(aPresentation,aGeomPoint,myDrawer);
50 }
51
52
53void ISession_Point::Compute(const Handle(Prs3d_Projector)& aProjector,
54 const Handle(Prs3d_Presentation)& aPresentation)
55 {
56 }
57
7fd59977 58void ISession_Point::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
59 const Standard_Integer unMode)
60{
61}
62