Salome HOME
Constriction type for all sketch entities
[modules/shaper.git] / src / ModelAPI / ModelAPI_Result.h
index 28ea36645dd080cc73b63acc41651706e59daa06..776a2839153c4d64efb681044983402b4f8ba551 100644 (file)
@@ -22,7 +22,15 @@ class ModelAPI_Result : public ModelAPI_Object
 {
   bool myIsConcealed; ///< the result is concealed from the data tree (referenced by other objects)
  public:
-   /// Returns true if the result is concealed from the data tree (referenced by other objects)
+
+  /// Reference to the color of the result
+  inline static const std::string& COLOR_ID()
+  {
+    static const std::string MY_COLOR_ID("Color");
+    return MY_COLOR_ID;
+  }
+
+  /// Returns true if the result is concealed from the data tree (referenced by other objects)
   inline bool isConcealed()
   {
     return myIsConcealed;
@@ -34,6 +42,9 @@ class ModelAPI_Result : public ModelAPI_Object
     myIsConcealed = theValue;
   }
 
+  /// Request for initialization of data model of the result: adding all attributes
+  virtual void initAttributes() {};
+
   /// To virtually destroy the fields of successors
   MODELAPI_EXPORT virtual ~ModelAPI_Result();