mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
58 lines
1.4 KiB
C++
Executable File
58 lines
1.4 KiB
C++
Executable File
// ISession_Point.cpp: implementation of the ISession_Point class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
#include "..\\GeometryApp.h"
|
|
#include "ISession_Point.h"
|
|
#include <StdPrs_Point.hxx>
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
//#define new DEBUG_NEW
|
|
#endif
|
|
|
|
IMPLEMENT_STANDARD_RTTIEXT(ISession_Point,AIS_InteractiveObject)
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
ISession_Point::ISession_Point(Standard_Real X,Standard_Real Y ,Standard_Real Z)
|
|
:myPoint(gp_Pnt(X,Y,Z))
|
|
{
|
|
|
|
}
|
|
|
|
ISession_Point::ISession_Point(const gp_Pnt2d& aPoint,Standard_Real Elevation)
|
|
:myPoint(gp_Pnt(aPoint.X(),aPoint.Y(),Elevation))
|
|
{
|
|
|
|
}
|
|
|
|
ISession_Point::ISession_Point(const gp_Pnt& aPoint)
|
|
:myPoint(aPoint)
|
|
{
|
|
|
|
}
|
|
|
|
ISession_Point::~ISession_Point()
|
|
{
|
|
|
|
}
|
|
|
|
void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
|
|
const Handle(Prs3d_Presentation)& aPresentation,
|
|
const Standard_Integer /*aMode*/)
|
|
{
|
|
Handle(Geom_CartesianPoint) aGeomPoint = new Geom_CartesianPoint(myPoint);
|
|
|
|
StdPrs_Point::Add(aPresentation,aGeomPoint,myDrawer);
|
|
}
|
|
|
|
void ISession_Point::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
|
const Standard_Integer /*unMode*/)
|
|
{
|
|
}
|
|
|