X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Extrusion.h;fp=src%2FFeaturesPlugin%2FFeaturesPlugin_Extrusion.h;h=7a80cc5875570c0f754bb9d10601ca8d0646e7c0;hb=883ac186ac2c764c6209cb8ea8043e3bcadc3de9;hp=d0a6e374530dcb3d161aa2397426660cb74691a1;hpb=7eb4c88d46d8fa7d664bc5f505952f4677fd4628;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h index d0a6e3745..7a80cc587 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h @@ -67,6 +67,13 @@ public: return MY_CREATION_METHOD_ID; } + /// Attribute name for creation method. + inline static const std::string& CREATION_METHOD_THROUGH_ALL() + { + static const std::string MY_CREATION_METHOD_ID("ThroughAll"); + return MY_CREATION_METHOD_ID; + } + /// Attribute name of an object to which the extrusion grows. inline static const std::string& DIRECTION_OBJECT_ID() { @@ -144,6 +151,12 @@ protected: const ListOfShape& theBoundaryShapes, const std::shared_ptr theMakeShape, const int theIndex = 0); + + /// Retrieve direction argument. + void getDirection(std::shared_ptr& theDir); + + /// Retrieve or calculate prism sizes. + virtual void getSizes(double& theToSize, double& theFromSize); }; #endif