X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Partition.h;h=bd7d7a7c5fe1f71a9a9c88ba917ea18bf67af1e4;hb=3205d0f18200948632155bbe7b640bc1e482243d;hp=a058fd8438f6630d832413014692b418472c1663;hpb=61174325c0d2309e15854d81f138e9a8832083f9;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.h b/src/FeaturesPlugin/FeaturesPlugin_Partition.h index a058fd843..bd7d7a7c5 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.h @@ -12,12 +12,11 @@ #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 +/// \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: @@ -40,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() { @@ -57,13 +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 GeomAlgoAPI_Partition& thePartitionAlgo); + const std::shared_ptr theResultShape, + GeomAlgoAPI_MakeShape& theMakeShape, + GeomAPI_DataMapOfShapeShape& theMapOfShapes); };