summaryrefslogtreecommitdiff
path: root/inc/Geom_CartesianPoint.hxx
blob: a2ccc6ef855a67cdc5dd0f10e9db757296eb4ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Geom_CartesianPoint_HeaderFile
#define _Geom_CartesianPoint_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Geom_CartesianPoint_HeaderFile
#include <Handle_Geom_CartesianPoint.hxx>
#endif

#ifndef _gp_Pnt_HeaderFile
#include <gp_Pnt.hxx>
#endif
#ifndef _Geom_Point_HeaderFile
#include <Geom_Point.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_Geom_Geometry_HeaderFile
#include <Handle_Geom_Geometry.hxx>
#endif
class gp_Pnt;
class gp_Trsf;
class Geom_Geometry;


//! Describes a point in 3D space. A <br>
//! Geom_CartesianPoint is defined by a gp_Pnt point, <br>
//! with its three Cartesian coordinates X, Y and Z. <br>
class Geom_CartesianPoint : public Geom_Point {

public:

  //! Returns a transient copy of P. <br>
  Standard_EXPORT   Geom_CartesianPoint(const gp_Pnt& P);
  //! Constructs a point defined by its three Cartesian coordinates X, Y and Z. <br>
  Standard_EXPORT   Geom_CartesianPoint(const Standard_Real X,const Standard_Real Y,const Standard_Real Z);
  //! Assigns the coordinates X, Y and Z to this point. <br>
  Standard_EXPORT     void SetCoord(const Standard_Real X,const Standard_Real Y,const Standard_Real Z) ;
  //! Set <me> to P.X(), P.Y(), P.Z() coordinates. <br>
  Standard_EXPORT     void SetPnt(const gp_Pnt& P) ;
  //! Changes the X coordinate of me. <br>
  Standard_EXPORT     void SetX(const Standard_Real X) ;
  //! Changes the Y coordinate of me. <br>
  Standard_EXPORT     void SetY(const Standard_Real Y) ;
  //! Changes the Z coordinate of me. <br>
  Standard_EXPORT     void SetZ(const Standard_Real Z) ;
  //! Returns the coordinates of <me>. <br>
  Standard_EXPORT     void Coord(Standard_Real& X,Standard_Real& Y,Standard_Real& Z) const;
  
//!  Returns a non transient cartesian point with <br>
//!  the same coordinates as <me>. <br>
  Standard_EXPORT     gp_Pnt Pnt() const;
  //! Returns the X coordinate of <me>. <br>
  Standard_EXPORT     Standard_Real X() const;
  //! Returns the Y coordinate of <me>. <br>
  Standard_EXPORT     Standard_Real Y() const;
  //! Returns the Z coordinate of <me>. <br>
  Standard_EXPORT     Standard_Real Z() const;
  //! Applies the transformation T to this point. <br>
  Standard_EXPORT     void Transform(const gp_Trsf& T) ;
  //!  Creates a new object which is a copy of this point. <br>
  Standard_EXPORT     Handle_Geom_Geometry Copy() const;




  DEFINE_STANDARD_RTTI(Geom_CartesianPoint)

protected:




private: 


gp_Pnt gpPnt;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif