- boost::shared_ptr<ModelAPI_Feature> myOwner; ///< owner of this result
- boost::shared_ptr<GeomAPI_Shape> myShape; ///< shape of this result created "on the fly"
-public:
- /// Returns the group identifier of this result
- virtual std::string group()
- {static std::string MY_GROUP = "Construction"; return MY_GROUP;}
+ std::shared_ptr<ModelAPI_Feature> myOwner; ///< owner of this result
+ std::shared_ptr<GeomAPI_Shape> myShape; ///< shape of this result created "on the fly"
+ bool myFacesUpToDate; ///< is true if faces in myuFaces are computed and up to date
+ std::vector<std::shared_ptr<GeomAPI_Face> > myFaces; ///< stores the up to date faces if they exist
+ bool myIsInHistory;
+ public:
+ /// default color for a result construction
+ inline static const std::string& DEFAULT_COLOR()
+ {
+ static const std::string RESULT_CONSTRUCTION_COLOR("#000000");
+ return RESULT_CONSTRUCTION_COLOR;
+ }
+
+ /// Request for initialization of data model of the result: adding all attributes
+ virtual void initAttributes();
+
+ // Retuns the parameters of color definition in the resources config manager
+ MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
+ std::string& theDefault);
+
+ /// By default object is displayed in the object browser.
+ MODEL_EXPORT virtual bool isInHistory()
+ {
+ return myIsInHistory;
+ }
+