Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_VTKPrsDisplayer.h
diff --git
a/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h
b/src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h
index 2be387c1d1f0b0d679f0ebfd64ae86b18ed2dd85..66e2f75111e7c47356c5178e309c620d0bbb5105 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h
+++ b/
src/HYDROGUI/HYDROGUI_VTKPrsDisplayer.h
@@
-24,8
+24,9
@@
#define HYDROGUI_VTKPRSDISPLAYER_H
#include "HYDROGUI_AbstractDisplayer.h"
#define HYDROGUI_VTKPRSDISPLAYER_H
#include "HYDROGUI_AbstractDisplayer.h"
-#include <vtk
New
.h>
+#include <vtk
SmartPointer
.h>
#include <vtkScalarBarActor.h>
#include <vtkScalarBarActor.h>
+#include <QMap>
class HYDROGUI_VTKPrsDriver;
class HYDROGUI_VTKPrsDriver;
@@
-63,12
+64,18
@@
public:
/**
* \brief Set the range of Z values for the color legend bar.
*/
/**
* \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.
*/
/**
* \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 EraseScalarBar( const int theViewerId, const bool theIsDelete = false );
protected:
/**
protected:
/**
@@
-105,15
+112,23
@@
protected:
void purgeObjects( const int theViewerId );
private:
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
*/
/**
* \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;
+ HYDROGUI_VTKPrsDriver* myShapeDriver;
- vtkNew< vtkScalarBarActor > myScalarBar; //!< The colors legend presentation
+ QMap<int, vtkSmartPointer<vtkScalarBarActor> > myScalarBars; //!< Colors legend presentations
};
#endif
};
#endif