X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_VTKPrsDisplayer.h;h=7a47a6f8402f51b288d6fe8357d4ae43352a33f1;hb=a558c58ccc19713db2b13ada4d0f32dff61d0deb;hp=2be387c1d1f0b0d679f0ebfd64ae86b18ed2dd85;hpb=53e48435e85ee2d204c4c1e59bafaf814e0dee67;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h b/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h index 2be387c1..7a47a6f8 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h +++ b/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h @@ -24,8 +24,9 @@ #define HYDROGUI_VTKPRSDISPLAYER_H #include "HYDROGUI_AbstractDisplayer.h" -#include +#include #include +#include class HYDROGUI_VTKPrsDriver; @@ -63,12 +64,18 @@ public: /** * \brief Set the range of Z values for the color legend bar. */ - void SetZRange( double theRange[] ); + void SetZRange( const int theViewerId, double theRange[] ); /** * \brief Get the range of Z values for the color legend bar. */ - double* GetZRange() const; + double* GetZRange( const int theViewerId ) const; + + /** + * \brief Delete scalar bar for the given viewer id. + * \param theViewerId viewer identifier + */ + void DeleteScalarBar( const int theViewerId ); protected: /** @@ -105,15 +112,22 @@ protected: void purgeObjects( const int theViewerId ); private: + + /** + * \brief Create a new scalar bar for the given view id. + * \param theViewId view identifier + */ + void createScalarBar( const int theViewId ); + /** * \brief Get the presentation driver for the specified data object. * \param theObj data object */ - HYDROGUI_VTKPrsDriver* getDriver( const Handle(HYDROData_Entity)& theObj ); + HYDROGUI_VTKPrsDriver* getDriver( const int theViewId, const Handle(HYDROData_Entity)& theObj ); - HYDROGUI_VTKPrsDriver* myDriver; + HYDROGUI_VTKPrsDriver* myDriver; - vtkNew< vtkScalarBarActor > myScalarBar; //!< The colors legend presentation + QMap> myScalarBars; //!< Colors legend presentations }; #endif