1 // File: ModelAPI_ResultPart.hxx
2 // Created: 07 Jul 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef Model_ResultPart_HeaderFile
6 #define Model_ResultPart_HeaderFile
9 #include <ModelAPI_ResultPart.h>
11 /**\class ModelAPI_ResultPart
13 * \brief The Part document, result of a creation of new part feature.
15 * This result leaves without feature: no parametricity for this element,
16 * only add/remove, undo/redo.
18 class Model_ResultPart : public ModelAPI_ResultPart
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();
30 /// makes a result on a temporary feature (an action)
31 Model_ResultPart(const boost::shared_ptr<ModelAPI_Feature>& theFeature);
33 friend class Model_Document;