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_EXPORT GeomAPI_Ax1 : public GeomAPI_Interface
20 /// Default constructor.
23 /** \brief Ñonstructor.
24 * \param[in] theOrigin point of origin.
25 * \param[in] theDir direction of axis.
27 GeomAPI_Ax1(std::shared_ptr<GeomAPI_Pnt> theOrigin,
28 std::shared_ptr<GeomAPI_Dir> theDir);
30 /// Sets origin point.
31 void setOrigin(const std::shared_ptr<GeomAPI_Pnt>& theOrigin);
33 /// \return the plane origin point.
34 std::shared_ptr<GeomAPI_Pnt> origin() const;
36 /// Sets direction vector.
37 void setDir(const std::shared_ptr<GeomAPI_Dir>& theDir);
39 /// \return direction vector.
40 std::shared_ptr<GeomAPI_Dir> dir() const;
42 /// Reverses the unit vector of this axis and assigns the result to this axis.
45 /// \return reversed unit vector of this axis.
46 std::shared_ptr<GeomAPI_Ax1> reversed();