X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Rotation.h;h=96b865a0d923fbcec237880b7ad2c52d12aa0da7;hb=7ae186c144dfecba2dedeaeba2b6691cef9408f8;hp=c6b80c35a42f79e3f8fb66cde21a1daac0822c68;hpb=6e421e939851e0de46554ae45a3ca0e1f67cd91d;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Rotation.h b/src/FeaturesPlugin/FeaturesPlugin_Rotation.h index c6b80c35a..96b865a0d 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Rotation.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Rotation.h @@ -24,7 +24,7 @@ #include -#include +class GeomAPI_Trsf; /// \class FeaturesPlugin_Rotation /// \ingroup Plugins @@ -109,7 +109,7 @@ class FeaturesPlugin_Rotation : public ModelAPI_Feature return MY_KIND; } - /// Creates a new part document if needed. + /// Performs the algorithm and stores results it in the data structure. FEATURESPLUGIN_EXPORT virtual void execute(); /// Request for initialization of data model of the feature: adding all attributes. @@ -119,11 +119,14 @@ class FeaturesPlugin_Rotation : public ModelAPI_Feature FeaturesPlugin_Rotation(); private: - ///Perform the rotation using an axis and an angle. - void performTranslationByAxisAndAngle(); + /// Calculate the rotation using an axis and an angle. + std::shared_ptr rotationByAxisAndAngle(); - ///Perform the rotation using a center and two points. - void performTranslationByThreePoints(); + /// Calculate the rotation using a center and two points. + std::shared_ptr rotationByThreePoints(); + + /// Perform the transformation + void performRotation(const std::shared_ptr& theTrsf); }; #endif