X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Partition.h;h=bd7d7a7c5fe1f71a9a9c88ba917ea18bf67af1e4;hb=85b662214060cf733b44ac7822e3e4db49e2da4b;hp=444d3e8fbd235d8d019fd89a4c79794022da2859;hpb=9cce20c7c60a1f7807f452cf8858fdfcdfc3255f;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.h b/src/FeaturesPlugin/FeaturesPlugin_Partition.h index 444d3e8fb..bd7d7a7c5 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.h @@ -10,12 +10,13 @@ #include "FeaturesPlugin.h" #include -/**\class FeaturesPlugin_Partition - * \ingroup Plugins - * \brief Feature for applying of Partition operations on Solids. Partition makes conjunctional - * faces of solids as shared. The result of partitions is a compsolid. - * Main objects are solids, tool objects are solids or faces - */ +#include + +/// \class FeaturesPlugin_Partition +/// \ingroup Plugins +/// \brief Feature for applying of Partition operations on Solids. Partition makes conjunctional +/// faces of solids as shared. The result of partitions is a compsolid. +/// Main objects are solids, tool objects are solids or faces class FeaturesPlugin_Partition : public ModelAPI_Feature { public: @@ -38,6 +39,13 @@ public: return MY_TOOL_LIST_ID; } + /// attribute name of combine flag + inline static const std::string& COMBINE_ID() + { + static const std::string MY_COMBINE_ID("partition_combine"); + return MY_COMBINE_ID; + } + /// Returns the kind of a feature FEATURESPLUGIN_EXPORT virtual const std::string& getKind() { @@ -55,7 +63,13 @@ public: FeaturesPlugin_Partition(); private: - std::shared_ptr getShape(const std::string& theAttrName); + /// Load Naming data structure of the feature to the document + void loadNamingDS(std::shared_ptr theResultBody, + const std::shared_ptr theBaseShape, + const ListOfShape& theTools, + const std::shared_ptr theResultShape, + GeomAlgoAPI_MakeShape& theMakeShape, + GeomAPI_DataMapOfShapeShape& theMapOfShapes); };