Salome HOME
2.17. Improved management of overconstraint situation: dimension constraints are...
[modules/shaper.git] / src / XGUI / XGUI_CustomPrs.h
index 36014cfec63c1c628c339d01fd62e95e8b3deae7..83b1b951ec713f26b03db8cb0398d74fe1db80e3 100644 (file)
@@ -12,6 +12,8 @@
 #include <GeomAPI_AISObject.h>
 #include <ModelAPI_Result.h>
 
+class XGUI_Workshop;
+
 /**
 * Interface of a class which can provide specific customization of
 * object presentation
 class XGUI_CustomPrs : public GeomAPI_ICustomPrs
 {
 public:
+  /// Constructor
+  /// \param theWorkshop the current workshop instance
+  XGUI_EXPORT XGUI_CustomPrs(XGUI_Workshop* theWorkshop);
+
   XGUI_EXPORT virtual ~XGUI_CustomPrs() {};
 
   /// Modifies the given presentation in the custom way.
@@ -29,6 +35,9 @@ public:
   /// \param theResult a result object
   /// \param theColor a color in form of RGB vector
   static void getResultColor(ResultPtr theResult, std::vector<int>& theColor);
+
+protected:
+  XGUI_Workshop* myWorkshop; /// the current workshop
 };
 
 #endif