0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[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"
234e52be 8#include <StdPrs_Point.hxx>
7fd59977 9
10#ifdef _DEBUG
11#undef THIS_FILE
12static char THIS_FILE[]=__FILE__;
13//#define new DEBUG_NEW
14#endif
92efcf78 15
7fd59977 16IMPLEMENT_STANDARD_RTTIEXT(ISession_Point,AIS_InteractiveObject)
17
7fd59977 18//////////////////////////////////////////////////////////////////////
19// Construction/Destruction
20//////////////////////////////////////////////////////////////////////
21ISession_Point::ISession_Point(Standard_Real X,Standard_Real Y ,Standard_Real Z)
22:myPoint(gp_Pnt(X,Y,Z))
23{
24
25}
26
5c573e69 27ISession_Point::ISession_Point(const gp_Pnt2d& aPoint,Standard_Real Elevation)
7fd59977 28:myPoint(gp_Pnt(aPoint.X(),aPoint.Y(),Elevation))
29{
30
31}
32
5c573e69 33ISession_Point::ISession_Point(const gp_Pnt& aPoint)
7fd59977 34:myPoint(aPoint)
35{
36
37}
38
39ISession_Point::~ISession_Point()
40{
41
42}
43
5c573e69 44void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
7fd59977 45 const Handle(Prs3d_Presentation)& aPresentation,
5c573e69 46 const Standard_Integer /*aMode*/)
7fd59977 47{
48 Handle(Geom_CartesianPoint) aGeomPoint = new Geom_CartesianPoint(myPoint);
49
50 StdPrs_Point::Add(aPresentation,aGeomPoint,myDrawer);
51 }
52
53
5c573e69 54void ISession_Point::Compute(const Handle(Prs3d_Projector)& /*aProjector*/,
55 const Handle(Prs3d_Presentation)& /*aPresentation*/)
7fd59977 56 {
57 }
58
5c573e69 59void ISession_Point::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
60 const Standard_Integer /*unMode*/)
7fd59977 61{
62}
63