35 #ifndef vtkPVScalarBarActor_h 36 #define vtkPVScalarBarActor_h 38 #include "vtkPVVTKExtensionsRenderingModule.h" 39 #include "vtkScalarBarActor.h" 42 #include "vtkSmartPointer.h" 46 class vtkContextScene;
52 virtual void PrintSelf(ostream& os, vtkIndent indent);
60 vtkGetMacro(AspectRatio,
double);
61 vtkSetMacro(AspectRatio,
double);
70 vtkGetMacro(AutomaticLabelFormat,
int);
71 vtkSetMacro(AutomaticLabelFormat,
int);
72 vtkBooleanMacro(AutomaticLabelFormat,
int);
79 vtkGetMacro(DrawTickMarks,
int);
80 vtkSetMacro(DrawTickMarks,
int);
81 vtkBooleanMacro(DrawTickMarks,
int);
88 vtkGetMacro(DrawSubTickMarks,
int);
89 vtkSetMacro(DrawSubTickMarks,
int);
90 vtkBooleanMacro(DrawSubTickMarks,
int);
98 vtkGetMacro(AddRangeLabels,
int);
99 vtkSetMacro(AddRangeLabels,
int);
100 vtkBooleanMacro(AddRangeLabels,
int);
108 vtkSetMacro(AutomaticAnnotations,
int);
109 vtkGetMacro(AutomaticAnnotations,
int);
110 vtkBooleanMacro(AutomaticAnnotations,
int);
117 vtkGetStringMacro(RangeLabelFormat);
118 vtkSetStringMacro(RangeLabelFormat);
124 virtual void AddValueLabelIfUnoccluded(
double value,
double pos,
double diff);
131 vtkGetMacro(TitleJustification,
int);
132 vtkSetClampMacro(TitleJustification,
int, VTK_TEXT_LEFT, VTK_TEXT_RIGHT);
140 vtkGetMacro(AddRangeAnnotations,
int);
141 vtkSetMacro(AddRangeAnnotations,
int);
142 vtkBooleanMacro(AddRangeAnnotations,
int);
150 virtual void ReleaseGraphicsResources(vtkWindow*);
155 int RenderOpaqueGeometry(vtkViewport* viewport);
160 virtual int RenderOverlay(vtkViewport* viewport);
170 virtual void PrepareTitleText();
171 virtual void ComputeScalarBarThickness();
172 virtual void LayoutTitle();
173 virtual void ComputeScalarBarLength();
174 virtual void LayoutTicks();
175 virtual void ConfigureAnnotations();
176 virtual void ConfigureTitle();
177 virtual void ConfigureTicks();
185 virtual void EditAnnotations();
196 virtual void BuildScalarBarTexture();
203 virtual int CreateLabel(
204 double value,
int minDigits,
int targetWidth,
int targetHeight, vtkViewport* viewport);
253 #endif // vtkPVScalarBarActor_h
int TitleJustification
The justification/alignment of the title.
vtkPolyDataMapper2D * TickMarksMapper
int AddRangeAnnotations
Flag to add minimum and maximum as annotations.
int AutomaticAnnotations
Flag indicating whether automatic annotations are computed and shown.
vtkActor2D * TickMarksActor
int LabelSpace
Space, in pixels, between the labels and the bar itself.
vtkNew< vtkContextScene > TickLayoutHelperScene
These are used to calculate the tick spacing.
vtkNew< vtkAxis > TickLayoutHelper
These are used to calculate the tick spacing.
vtkTexture * ScalarBarTexture
A scalar bar with labels of fixed font.