20 #ifndef GEOMAPI_AX3_H_
21 #define GEOMAPI_AX3_H_
24 #include "GeomAPI_Pnt.h"
25 #include "GeomAPI_Dir.h"
45 std::shared_ptr<GeomAPI_Dir> theDirX,
46 std::shared_ptr<GeomAPI_Dir> theNorm);
50 void setOrigin(
const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
54 std::shared_ptr<GeomAPI_Pnt>
origin()
const;
58 void setDirX(
const std::shared_ptr<GeomAPI_Dir>& theDirX);
62 std::shared_ptr<GeomAPI_Dir>
dirX()
const;
66 void setDirY(
const std::shared_ptr<GeomAPI_Dir>& theDirY);
70 std::shared_ptr<GeomAPI_Dir>
dirY()
const;
74 void setNormal(
const std::shared_ptr<GeomAPI_Dir>& theNorm);
78 std::shared_ptr<GeomAPI_Dir>
normal()
const;
84 std::shared_ptr<GeomAPI_Pnt>
to3D(
double theX,
double theY)
const;
91 std::shared_ptr<GeomAPI_Pnt2d>
to2D(
double theX,
double theY,
double theZ)
const;
97 typedef std::shared_ptr<GeomAPI_Ax3> GeomAx3Ptr;
The class represents a coordinate plane which is 2d plane with X and Y directions and origin.
Definition: GeomAPI_Ax3.h:33
std::shared_ptr< GeomAPI_Pnt > origin() const
Returns the plane origin point.
Definition: GeomAPI_Ax3.cpp:54
std::shared_ptr< GeomAPI_Dir > dirY() const
Returns Y direction vector.
Definition: GeomAPI_Ax3.cpp:76
std::shared_ptr< GeomAPI_Dir > normal() const
Returns Z direction vector.
Definition: GeomAPI_Ax3.cpp:89
std::shared_ptr< GeomAPI_Dir > dirX() const
Returns X direction vector.
Definition: GeomAPI_Ax3.cpp:65
void setNormal(const std::shared_ptr< GeomAPI_Dir > &theNorm)
Sets Z direction vector.
Definition: GeomAPI_Ax3.cpp:82
void setDirY(const std::shared_ptr< GeomAPI_Dir > &theDirY)
Sets Y direction vector.
Definition: GeomAPI_Ax3.cpp:71
void setDirX(const std::shared_ptr< GeomAPI_Dir > &theDirX)
Sets X direction vector.
Definition: GeomAPI_Ax3.cpp:60
std::shared_ptr< GeomAPI_Pnt > to3D(double theX, double theY) const
Converts 2d coordinates from the plane to 3d space point.
Definition: GeomAPI_Ax3.cpp:96
std::shared_ptr< GeomAPI_Pnt2d > to2D(double theX, double theY, double theZ) const
Converts 3d to 2d coordinates of the plane.
Definition: GeomAPI_Ax3.cpp:106
GeomAPI_Ax3()
Default constructor.
Definition: GeomAPI_Ax3.cpp:33
void setOrigin(const std::shared_ptr< GeomAPI_Pnt > &theOrigin)
Sets origin point.
Definition: GeomAPI_Ax3.cpp:47
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38