]> SALOME platform Git repositories - modules/shaper.git/blob - src/Model/Model_ResultPart.h
Salome HOME
b2daa5dfe961f9fd24c70e60dadb2ff32794da81
[modules/shaper.git] / src / Model / Model_ResultPart.h
1 // File:        ModelAPI_ResultPart.hxx
2 // Created:     07 Jul 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef Model_ResultPart_HeaderFile
6 #define Model_ResultPart_HeaderFile
7
8 #include "Model.h"
9 #include <ModelAPI_ResultPart.h>
10
11 /**\class ModelAPI_ResultPart
12  * \ingroup DataModel
13  * \brief The Part document, result of a creation of new part feature.
14  *
15  * This result leaves without feature: no parametricity for this element,
16  * only add/remove, undo/redo.
17  */
18 class Model_ResultPart : public ModelAPI_ResultPart
19 {
20 public:
21   /// Returns the group identifier of this result
22   virtual std::string group()
23     {static std::string MY_GROUP = "Parts"; return MY_GROUP;}
24   /// Returns the part-document of this result
25   MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Document> partDoc();
26   /// Part has no stored feature: this method returns NULL
27   MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Feature> owner();
28
29 protected:
30   /// makes a result on a temporary feature (an action)
31   Model_ResultPart(const boost::shared_ptr<ModelAPI_Feature>& theFeature);
32
33   friend class Model_Document;
34 };
35
36 #endif