X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Symmetry.h;h=884261a2d85f38843d6c38f187da40f89f9acbff;hb=d5d78920316491975a67f76578982b401cdfe71d;hp=f0f33aa90bc16722d7e8fba4fbd0b77c206c523a;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h index f0f33aa90..884261a2d 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.h @@ -21,26 +21,19 @@ #define GEOMALGOAPI_SYMMETRY_H_ #include -#include +#include -#include -#include -#include +class GeomAPI_Ax1; +class GeomAPI_Ax2; +class GeomAPI_Pnt; /// \class GeomAlgoAPI_Symmetry /// \ingroup DataAlgo /// \brief Creates a copy of the object by performing a symmetry operation by a point, /// by an axis or by a plane. -class GeomAlgoAPI_Symmetry : public GeomAlgoAPI_MakeShape +class GeomAlgoAPI_Symmetry : public GeomAlgoAPI_Transform { public: - /// Type of symmetry operation - enum MethodType { - BY_POINT, ///< Symmetry by point. - BY_AXIS, ///< Symmetry by axis. - BY_PLANE ///< Symmetry by plane. - }; - /// \brief Creates an object which is obtained from current object by performing /// a symmetry operation by a point. /// \param[in] theSourceShape the shape to be moved. @@ -61,19 +54,6 @@ public: /// \param[in] thePlane the symmetry plane. GEOMALGOAPI_EXPORT GeomAlgoAPI_Symmetry(std::shared_ptr theSourceShape, std::shared_ptr thePlane); - - /// Checks if data for the symmetry execution is OK. - GEOMALGOAPI_EXPORT bool check(); - - /// Execute the symmetry. - GEOMALGOAPI_EXPORT void build(); - -private: - MethodType myMethodType; /// Type of method used. - std::shared_ptr mySourceShape; /// Shape to be moved. - std::shared_ptr myPoint; /// Reflection point. - std::shared_ptr myAxis; /// Reflection axis. - std::shared_ptr myPlane; /// Reflection plane. }; #endif // GEOMALGOAPI_SYMMETRY_H_