SHAPER 9.16.0
GeomAPI_Ax3.h
1// Copyright (C) 2014-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef GEOMAPI_AX3_H_
21#define GEOMAPI_AX3_H_
22
23#include "GeomAPI.h"
24#include "GeomAPI_Pnt.h"
25#include "GeomAPI_Dir.h"
26
33{
34public:
36 GEOMAPI_EXPORT
38
43 GEOMAPI_EXPORT
44 GeomAPI_Ax3(std::shared_ptr<GeomAPI_Pnt> theOrigin,
45 std::shared_ptr<GeomAPI_Dir> theDirX,
46 std::shared_ptr<GeomAPI_Dir> theNorm);
47
49 GEOMAPI_EXPORT
50 void setOrigin(const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
51
53 GEOMAPI_EXPORT
54 std::shared_ptr<GeomAPI_Pnt> origin() const;
55
57 GEOMAPI_EXPORT
58 void setDirX(const std::shared_ptr<GeomAPI_Dir>& theDirX);
59
61 GEOMAPI_EXPORT
62 std::shared_ptr<GeomAPI_Dir> dirX() const;
63
65 GEOMAPI_EXPORT
66 void setDirY(const std::shared_ptr<GeomAPI_Dir>& theDirY);
67
69 GEOMAPI_EXPORT
70 std::shared_ptr<GeomAPI_Dir> dirY() const;
71
73 GEOMAPI_EXPORT
74 void setNormal(const std::shared_ptr<GeomAPI_Dir>& theNorm);
75
77 GEOMAPI_EXPORT
78 std::shared_ptr<GeomAPI_Dir> normal() const;
79
83 GEOMAPI_EXPORT
84 std::shared_ptr<GeomAPI_Pnt> to3D(double theX, double theY) const;
85
90 GEOMAPI_EXPORT
91 std::shared_ptr<GeomAPI_Pnt2d> to2D(double theX, double theY, double theZ) const;
92
93};
94
95
97typedef std::shared_ptr<GeomAPI_Ax3> GeomAx3Ptr;
98
99#endif
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