Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / src / ISession / ISession_Point.cxx
1 #include <ISession_Point.ixx>
2 #include <Geom_CartesianPoint.hxx>
3 #include <StdPrs_Point.hxx>
4 #include <Graphic2d_CircleMarker.hxx>
5
6
7 ISession_Point::ISession_Point()
8 {
9 }
10
11 ISession_Point::ISession_Point(const Standard_Real X,const Standard_Real Y,const Standard_Real Z)
12      :myPoint(gp_Pnt(X,Y,Z))
13 {
14 }
15
16 ISession_Point::ISession_Point(const gp_Pnt2d& aPoint,const Standard_Real Elevation)
17      :myPoint(gp_Pnt(aPoint.X(),aPoint.Y(),Elevation))
18 {
19 }
20
21 ISession_Point::ISession_Point(const gp_Pnt& aPoint)
22      :myPoint(aPoint)
23 {
24 }
25
26  void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager3d)& ,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer ) 
27 {
28   Handle(Geom_CartesianPoint) aGeomPoint = new Geom_CartesianPoint(myPoint);
29   StdPrs_Point::Add(aPresentation,aGeomPoint,myDrawer);
30 }
31
32  void ISession_Point::Compute(const Handle(Prs3d_Projector)& ,const Handle(Prs3d_Presentation)& ) 
33 {
34 }
35
36  void ISession_Point::Compute(const Handle(PrsMgr_PresentationManager2d)& ,const Handle(Graphic2d_GraphicObject)& aGrObj,const Standard_Integer ) 
37 {
38   Handle(Graphic2d_CircleMarker) aCircleMarker;
39   aCircleMarker = new Graphic2d_CircleMarker(aGrObj,myPoint.X(),myPoint.Y(),0,0,1);
40 }
41
42  void ISession_Point::ComputeSelection(const Handle(SelectMgr_Selection)& ,const Standard_Integer ) 
43 {
44 }
45