X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Partition.h;h=ff3d83df542e1a37359353c22573be6999bf1006;hb=ebc5236aba00c21e854d6705d1cbbc6599e1bf36;hp=9ec475f44baadc8fdc4f7185ab9baae35bf933fb;hpb=952efeb621c89406b5b4b2a7173ad42de4034fa8;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.h b/src/FeaturesPlugin/FeaturesPlugin_Partition.h index 9ec475f44..ff3d83df5 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.h @@ -12,35 +12,28 @@ #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 Shapes. Partition makes conjunctional +/// faces of solids as shared. The result of partitions is a compsolid. class FeaturesPlugin_Partition : public ModelAPI_Feature { public: - /// Extrusion kind + /// Feature kind. inline static const std::string& ID() { static const std::string MY_ID("Partition"); return MY_ID; } - /// attribute name of referenced object - inline static const std::string& OBJECT_LIST_ID() - { - static const std::string MY_OBJECT_LIST_ID("main_objects"); - return MY_OBJECT_LIST_ID; - } - /// attribute name of tool object - inline static const std::string& TOOL_LIST_ID() + + /// Attribute name of base objects. + inline static const std::string& BASE_OBJECTS_ID() { - static const std::string MY_TOOL_LIST_ID("tool_objects"); - return MY_TOOL_LIST_ID; + static const std::string MY_BASE_OBJECTS_ID("base_objects"); + return MY_BASE_OBJECTS_ID; } - /// Returns the kind of a feature + /// \return the kind of a feature. FEATURESPLUGIN_EXPORT virtual const std::string& getKind() { static std::string MY_KIND = FeaturesPlugin_Partition::ID(); @@ -57,16 +50,12 @@ 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); - + /// Stores result of generation. + void storeResult(ListOfShape& theObjects, + ListOfShape& thePlanes, + const GeomShapePtr theResultShape, + const std::shared_ptr theMakeShape, + const int theIndex = 0); }; #endif