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_Ax1 : public GeomAPI_Interface
20 /// Default constructor.
24 /** \brief Ñonstructor.
25 * \param[in] theOrigin point of origin.
26 * \param[in] theDir direction of axis.
29 GeomAPI_Ax1(std::shared_ptr<GeomAPI_Pnt> theOrigin,
30 std::shared_ptr<GeomAPI_Dir> theDir);
32 /// Sets origin point.
34 void setOrigin(const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
36 /// \return the plane origin point.
38 std::shared_ptr<GeomAPI_Pnt> origin() const;
40 /// Sets direction vector.
42 void setDir(const std::shared_ptr<GeomAPI_Dir>& theDir);
44 /// \return direction vector.
46 std::shared_ptr<GeomAPI_Dir> dir() const;
48 /// Reverses the unit vector of this axis and assigns the result to this axis.
52 /// \return reversed unit vector of this axis.
54 std::shared_ptr<GeomAPI_Ax1> reversed();