1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: XGUI_CustomPrs.hxx
4 // Created: 10 Mar 2015
5 // Author: Natalia ERMOLAEVA
7 #ifndef XGUI_CustomPrs_H
8 #define XGUI_CustomPrs_H
11 #include <GeomAPI_ICustomPrs.h>
12 #include <GeomAPI_AISObject.h>
13 #include <ModelAPI_Result.h>
16 * Interface of a class which can provide specific customization of
19 class XGUI_CustomPrs : public GeomAPI_ICustomPrs
22 XGUI_EXPORT virtual ~XGUI_CustomPrs() {};
24 /// Modifies the given presentation in the custom way.
25 virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
26 std::shared_ptr<GeomAPI_ICustomPrs> theCustomPrs);
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);