1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 // Created: 12 May 2015
5 // Author: Dmitry Bobylev
11 #include <GeomAPI_Pnt.h>
12 #include <GeomAPI_Dir.h>
14 /** \ingroup DataModel
15 * \brief The class represents an axis in 3D space.
17 class GeomAPI_Ax2 : public GeomAPI_Interface
20 /// Default constructor.
24 /** \brief Ñonstructor.
25 * \param[in] theOrigin point of origin.
26 * \param[in] theN direction of axis.
27 * \param[in] theVX x direction of axis.
30 GeomAPI_Ax2(std::shared_ptr<GeomAPI_Pnt> theOrigin,
31 std::shared_ptr<GeomAPI_Dir> theN,
32 std::shared_ptr<GeomAPI_Dir> theVX);
34 /** \brief Ñonstructor.
35 * \param[in] theOrigin point of origin.
36 * \param[in] theDir direction of axis.
39 GeomAPI_Ax2(std::shared_ptr<GeomAPI_Pnt> theOrigin,
40 std::shared_ptr<GeomAPI_Dir> theDir);
42 /// Sets origin point.
44 void setOrigin(const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
46 /// \return the plane origin point.
48 std::shared_ptr<GeomAPI_Pnt> origin() const;
50 /// Sets direction vector.
52 void setDir(const std::shared_ptr<GeomAPI_Dir>& theDir);
54 /// \return direction vector.
56 std::shared_ptr<GeomAPI_Dir> dir() const;