1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_ResultPart.h
4 // Created: 07 Jul 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef ModelAPI_ResultPart_H_
8 #define ModelAPI_ResultPart_H_
10 #include "ModelAPI_Result.h"
14 /**\class ModelAPI_ResultPart
16 * \brief The Part document, result of a creation of new part feature.
18 * This result leaves without feature: no parametricity for this element,
19 * only add/remove, undo/redo.
21 class ModelAPI_ResultPart : public ModelAPI_Result
24 /// Returns the group identifier of this result
25 MODELAPI_EXPORT virtual std::string groupName();
27 /// Returns the group identifier of this result
28 inline static std::string group()
30 static std::string MY_GROUP = "Parts";
34 /// part document reference attribute
35 inline static const std::string& DOC_REF()
37 static const std::string MY_DOC_REF("PartDocument");
41 /// Returns the part-document of this result
42 virtual std::shared_ptr<ModelAPI_Document> partDoc() = 0;
44 /// Sets this document as current and if it is not loaded yet, loads it
45 virtual void activate() = 0;
47 /// Returns true if document is activated (loaded into the memory)
48 virtual bool isActivated() = 0;
51 //! Pointer on feature object
52 typedef std::shared_ptr<ModelAPI_ResultPart> ResultPartPtr;