SHAPER 9.16.0
GeomAPI_Ax2.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_Ax2_H_
21#define GeomAPI_Ax2_H_
22
23#include <GeomAPI.h>
24#include <GeomAPI_Pnt.h>
25#include <GeomAPI_Dir.h>
26
31{
32public:
34 GEOMAPI_EXPORT
36
42 GEOMAPI_EXPORT
43 GeomAPI_Ax2(std::shared_ptr<GeomAPI_Pnt> theOrigin,
44 std::shared_ptr<GeomAPI_Dir> theN,
45 std::shared_ptr<GeomAPI_Dir> theVX);
46
51 GEOMAPI_EXPORT
52 GeomAPI_Ax2(std::shared_ptr<GeomAPI_Pnt> theOrigin,
53 std::shared_ptr<GeomAPI_Dir> theDir);
54
56 GEOMAPI_EXPORT
57 void setOrigin(const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
58
60 GEOMAPI_EXPORT
61 std::shared_ptr<GeomAPI_Pnt> origin() const;
62
64 GEOMAPI_EXPORT
65 void setDir(const std::shared_ptr<GeomAPI_Dir>& theDir);
66
68 GEOMAPI_EXPORT
69 std::shared_ptr<GeomAPI_Dir> dir() const;
70};
71
73typedef std::shared_ptr<GeomAPI_Ax2> GeomAx2Ptr;
74
75#endif
The class represents an axis in 3D space.
Definition: GeomAPI_Ax2.h:31
GEOMAPI_EXPORT GeomAPI_Ax2()
Default constructor.
Definition: GeomAPI_Ax2.cpp:27
GEOMAPI_EXPORT void setDir(const std::shared_ptr< GeomAPI_Dir > &theDir)
Sets direction vector.
Definition: GeomAPI_Ax2.cpp:64
GEOMAPI_EXPORT void setOrigin(const std::shared_ptr< GeomAPI_Pnt > &theOrigin)
Sets origin point.
Definition: GeomAPI_Ax2.cpp:51
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > dir() const
Definition: GeomAPI_Ax2.cpp:70
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > origin() const
Definition: GeomAPI_Ax2.cpp:57
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38