]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_Displayer.h
Salome HOME
Change color for construction/body/group.
[modules/shaper.git] / src / XGUI / XGUI_Displayer.h
index e5ea6fd05d7995b7bf8d080aad56af2cc1512add..da11c4d8ef6f65ba1ca039fe7f9c208d41c92a43 100644 (file)
@@ -20,6 +20,8 @@
 #include <ModuleBase_Definitions.h>
 #include <ModuleBase_ViewerPrs.h>
 
+#include <GeomAPI_ICustomPrs.h>
+
 #include <SelectMgr_AndFilter.hxx>
 
 #include <QString>
@@ -218,8 +220,9 @@ class XGUI_EXPORT XGUI_Displayer
    * If the object is result with the color attribute value set, it is used,
    * otherwise the customize is applyed to the object's feature if it is a custom prs
    * \param theObject an object instance
+   * \return the true state if there is changes and the presentation is customized
    */
-  void customizeObject(ObjectPtr theObject);
+  bool customizeObject(ObjectPtr theObject);
 
  protected:
    /// Reference to workshop
@@ -228,6 +231,9 @@ class XGUI_EXPORT XGUI_Displayer
   /// A container for selection filters
   Handle(SelectMgr_AndFilter) myAndFilter;
 
+  /// A default custom presentation, which is used if the displayed feature is not a custom presentation
+  GeomCustomPrsPtr myCustomPrs;
+
   /// Definition of a type of map which defines correspondance between objects and presentations
   typedef QMap<ObjectPtr, AISObjectPtr> ResultToAISMap;