X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Revolution.h;h=44a9b773abd2f00794efa3135cd5d10b079e7ffa;hb=01a8a031b214d727e075a90ccdba0667a24db853;hp=ffb7ae2a545479a88fe16964276d156d2134df75;hpb=64e9d01b48f8c4e6e22919ebceeed715d613485e;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Revolution.h b/src/FeaturesPlugin/FeaturesPlugin_Revolution.h index ffb7ae2a5..44a9b773a 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Revolution.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Revolution.h @@ -39,11 +39,18 @@ class FeaturesPlugin_Revolution : public ModelAPI_Feature return MY_GROUP_LIST_ID; } - /// Attribute name of an object to which the extrusion grows. + /// Attribute name of an revolution axis. inline static const std::string& AXIS_OBJECT_ID() { - static const std::string MY_TO_OBJECT_ID("axis_object"); - return MY_TO_OBJECT_ID; + static const std::string MY_AXIS_ID("axis_object"); + return MY_AXIS_ID; + } + + /// attribute name for creation method + inline static const std::string& CREATION_METHOD() + { + static const std::string METHOD_ATTR("CreationMethod"); + return METHOD_ATTR; } /// Attribute name of revolution angle. @@ -67,6 +74,13 @@ class FeaturesPlugin_Revolution : public ModelAPI_Feature return MY_TO_OBJECT_ID; } + /// attribute name of extrusion offset. + inline static const std::string& TO_OFFSET_ID() + { + static const std::string MY_TO_OFFSET_ID("to_offset"); + return MY_TO_OFFSET_ID; + } + /// Attribute name of tool object. inline static const std::string& FROM_OBJECT_ID() { @@ -74,6 +88,13 @@ class FeaturesPlugin_Revolution : public ModelAPI_Feature return MY_FROM_OBJECT_ID; } + /// attribute name of extrusion offset. + inline static const std::string& FROM_OFFSET_ID() + { + static const std::string MY_FROM_OFFSET_ID("from_offset"); + return MY_FROM_OFFSET_ID; + } + /// \return the kind of a feature. FEATURESPLUGIN_EXPORT virtual const std::string& getKind() { @@ -92,9 +113,9 @@ class FeaturesPlugin_Revolution : public ModelAPI_Feature private: /// Load Naming data structure of the feature to the document. - void LoadNamingDS(GeomAlgoAPI_Revolution& theFeature, std::shared_ptr theResultBody, - std::shared_ptr theBasis, - std::shared_ptr theContext); + void loadNamingDS(GeomAlgoAPI_Revolution& theRevolAlgo, + std::shared_ptr theResultBody, + std::shared_ptr theBasis); }; #endif