X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_CustomPrs.h;h=4859339ca474c535b433d84bd09a1858d44928d7;hb=1a972d24c2f891d8ae3e3b8cfe324339d28602bc;hp=83b1b951ec713f26b03db8cb0398d74fe1db80e3;hpb=72a191eb97b744b33d735c8d14f2693dbf3b13c2;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_CustomPrs.h b/src/XGUI/XGUI_CustomPrs.h index 83b1b951e..4859339ca 100644 --- a/src/XGUI/XGUI_CustomPrs.h +++ b/src/XGUI/XGUI_CustomPrs.h @@ -34,10 +34,29 @@ public: /// Returns color of a result object /// \param theResult a result object /// \param theColor a color in form of RGB vector - static void getResultColor(ResultPtr theResult, std::vector& theColor); + static void getResultColor(const ResultPtr& theResult, std::vector& theColor); + + /// Returns deflection of a result object + /// \param theResult a result object + /// \return theDeflection a real value + static double getResultDeflection(const ResultPtr& theResult); + + /// Returns the default object color. It obtains colorConfigInfo of the object + /// and find it in preferences. If there are no this color in preference and an empty + /// color is interpreted as invalid, it shows error message + /// \param theObject an investigated object + /// \param isEmptyColorValid boolean state about interpretation of empty color + /// \param theColor the result color + static void XGUI_EXPORT getDefaultColor(ObjectPtr theObject, const bool isEmptyColorValid, + std::vector& theColor); + + /// Returns the default deflection value. The value is obtained from the application preferences + /// \param theObject an investigated object + /// \return deflection value + static double XGUI_EXPORT getDefaultDeflection(const ObjectPtr& theObject); protected: - XGUI_Workshop* myWorkshop; /// the current workshop + XGUI_Workshop* myWorkshop; ///< the current workshop }; #endif