68 #ifndef SMESH_SCALAR_BAR_ACTOR_H
69 #define SMESH_SCALAR_BAR_ACTOR_H
71 #include <vtkActor2D.h>
78 class vtkPolyDataMapper2D;
79 class vtkScalarsToColors;
81 class vtkTextProperty;
83 #define VTK_ORIENT_HORIZONTAL 0
84 #define VTK_ORIENT_VERTICAL 1
86 #define SMESH_MONOCOLOR_TYPE 0
87 #define SMESH_MULTICOLOR_TYPE 1
92 void PrintSelf(ostream& os, vtkIndent indent);
104 int RenderOpaqueGeometry(vtkViewport* viewport);
106 int RenderOverlay(vtkViewport* viewport);
112 virtual void ReleaseGraphicsResources(vtkWindow *);
118 virtual void SetLookupTable(vtkScalarsToColors*);
119 vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
125 vtkSetClampMacro(MaximumNumberOfColors,
int, 2, VTK_INT_MAX);
126 vtkGetMacro(MaximumNumberOfColors,
int);
130 vtkSetClampMacro(NumberOfLabels,
int, 0, 64);
131 vtkGetMacro(NumberOfLabels,
int);
137 void SetOrientationToHorizontal()
143 virtual void SetTitleTextProperty(vtkTextProperty *p);
144 vtkGetObjectMacro(TitleTextProperty,vtkTextProperty);
148 virtual void SetLabelTextProperty(vtkTextProperty *p);
149 vtkGetObjectMacro(LabelTextProperty,vtkTextProperty);
154 vtkSetStringMacro(LabelFormat);
155 vtkGetStringMacro(LabelFormat);
159 vtkSetStringMacro(Title);
160 vtkGetStringMacro(Title);
164 void ShallowCopy(vtkProp *prop);
169 virtual void SetDistributionVisibility(
int flag);
174 virtual int GetDistributionVisibility();
177 virtual void SetDistribution(std::vector<int> theNbValues);
189 void SetDistributionColor (
double rgb[3]);
193 void GetDistributionColor (
double rgb[3]);
197 void SetTitleOnlyVisibility(
bool );
201 bool GetTitleOnlyVisibility();
219 virtual void AllocateAndSizeLabels(
int *labelSize,
int *size,
220 vtkViewport *viewport,
double *range);
238 void SizeTitle(
int *titleSize,
int *size, vtkViewport *viewport);
253 #endif //SMESH_SCALAR_BAR_ACTOR_H