X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Extrusion.h;h=3a97d81bb308f5509c81caf63d9824501dbd45c3;hb=fba7a168870128af38ab96695c19ba360f41ee48;hp=f3e7880491ec8c0a8b7d25d1c10d205b4913cc65;hpb=9df889d74f1a623d4cc4e6478749bf7d15a52b6a;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h index f3e788049..3a97d81bb 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Extrusion.h @@ -7,19 +7,21 @@ #ifndef FeaturesPlugin_Extrusion_H_ #define FeaturesPlugin_Extrusion_H_ -#include "FeaturesPlugin.h" +#include #include -#include -#include -#include +#include + +class GeomAPI_Shape; +class ModelAPI_ResultBody; /**\class FeaturesPlugin_Extrusion * \ingroup Plugins * \brief Feature for creation of extrusion from the planar face. * * Extrusion creates the lateral faces based on edges of the base face and - * the top face equal to the base face. Direction of extrusion is taken from the face - * plane, but can be corrected by the "reverse" flag. + * the top and bottom faces equal to the base face or this faces can be projection on the + * bounding planes if they were set. Direction of extrusion is taken from the face + * plane or if the bounding faces were set then it will be from the bottom to the top plane. */ class FeaturesPlugin_Extrusion : public ModelAPI_Feature { @@ -72,12 +74,6 @@ class FeaturesPlugin_Extrusion : public ModelAPI_Feature static const std::string MY_FROM_OBJECT_ID("from_object"); return MY_FROM_OBJECT_ID; } - /// attribute name of reverse direction - inline static const std::string& REVERSE_ID() - { - static const std::string MY_REVERSE_ID("reverse"); - return MY_REVERSE_ID; - } /// Returns the kind of a feature FEATURESPLUGIN_EXPORT virtual const std::string& getKind() @@ -96,12 +92,9 @@ class FeaturesPlugin_Extrusion : public ModelAPI_Feature FeaturesPlugin_Extrusion(); private: /// Load Naming data structure of the feature to the document - void LoadNamingDS(GeomAlgoAPI_Extrusion& theFeature, std::shared_ptr theResultBody, - std::shared_ptr theBasis, - std::shared_ptr theContext); - - /// Set an empty shape to the result of extrusion - void clearResult(); + void LoadNamingDS(GeomAlgoAPI_Prism& theFeature, std::shared_ptr theResultBody, + std::shared_ptr theBasis, + std::shared_ptr theContext); }; #endif