]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_OverconstraintListener.h
Salome HOME
Issue #2029 Change the color of the Sketch when fully constrained
[modules/shaper.git] / src / PartSet / PartSet_OverconstraintListener.h
index 4eaf5c8059c48d7ae1ea839f7cb098468a58e9a1..4051c0c9558c175f5f4e7abbc6bf8a257c62fbc7 100755 (executable)
@@ -42,7 +42,11 @@ public:
   /// \param theObject an object to be checked
   /// \param theColor the output container to be filled in [red, green, blue] values
   /// \return boolean result
-  bool hasCustomColor(const ObjectPtr& theObject, std::vector<int>& theColor);
+  void getCustomColor(const ObjectPtr& theObject, std::vector<int>& theColor);
+
+  /// Returns true if custom color of presentations is changed and it should be redisplayed
+  /// \return boolean value
+  bool isNeedUpdateCustomColor() const { return true;/*myIsNeedUpdateCustomColor;*/ }
 
   /// Redefinition of Events_Listener method
   virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
@@ -77,6 +81,7 @@ private:
   std::set<ObjectPtr> myConflictingObjects;
   ModuleBase_IWorkshop* myWorkshop;
   bool myIsFullyConstrained; /// state if Solver is fully constrained, DOF = 0
+  bool myIsNeedUpdateCustomColor;
 };
 
 #endif