Salome HOME
Source documentation updated. Obsolete files removed
[modules/shaper.git] / src / XGUI / XGUI_CustomPrs.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        XGUI_CustomPrs.hxx
4 // Created:     10 Mar 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef XGUI_CustomPrs_H
8 #define XGUI_CustomPrs_H
9
10 #include "XGUI.h"
11 #include <GeomAPI_ICustomPrs.h>
12 #include <GeomAPI_AISObject.h>
13 #include <ModelAPI_Result.h>
14
15 /**
16 * Interface of a class which can provide specific customization of
17 * object presentation
18 */ 
19 class XGUI_CustomPrs : public GeomAPI_ICustomPrs
20 {
21 public:
22   XGUI_EXPORT virtual ~XGUI_CustomPrs() {};
23
24   /// Modifies the given presentation in the custom way.
25   virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
26                                      std::shared_ptr<GeomAPI_ICustomPrs> theCustomPrs);
27
28   /// Returns color of a result object
29   /// \param theResult a result object
30   /// \param theColor a color in form of RGB vector
31   static void getResultColor(ResultPtr theResult, std::vector<int>& theColor);
32 };
33
34 #endif