26 #ifndef vtkContext2DScalarBarActor_h 27 #define vtkContext2DScalarBarActor_h 47 class vtkScalarBarItem;
63 vtkGetMacro(TitleJustification,
int);
64 vtkSetClampMacro(TitleJustification,
int, VTK_TEXT_LEFT, VTK_TEXT_RIGHT);
72 vtkSetMacro(ForceHorizontalTitle,
bool);
73 vtkGetMacro(ForceHorizontalTitle,
bool);
74 vtkBooleanMacro(ForceHorizontalTitle,
bool);
96 vtkSetClampMacro(ScalarBarThickness,
int, 0, VTK_INT_MAX);
97 vtkGetMacro(ScalarBarThickness,
int);
109 vtkSetClampMacro(ScalarBarLength,
double, 0, 1);
110 vtkGetMacro(ScalarBarLength,
double);
118 vtkSetMacro(ReverseLegend,
bool);
119 vtkGetMacro(ReverseLegend,
bool);
120 vtkBooleanMacro(ReverseLegend,
bool);
129 vtkGetMacro(AutomaticLabelFormat,
int);
130 vtkSetMacro(AutomaticLabelFormat,
int);
131 vtkBooleanMacro(AutomaticLabelFormat,
int);
139 vtkSetMacro(AddRangeLabels,
int);
140 vtkGetMacro(AddRangeLabels,
int);
148 vtkSetMacro(AutomaticAnnotations,
int);
149 vtkGetMacro(AutomaticAnnotations,
int);
150 vtkBooleanMacro(AutomaticAnnotations,
int);
158 vtkGetMacro(AddRangeAnnotations,
int);
159 vtkSetMacro(AddRangeAnnotations,
int);
160 vtkBooleanMacro(AddRangeAnnotations,
int);
167 vtkSetMacro(DrawTickMarks,
bool);
168 vtkGetMacro(DrawTickMarks,
bool);
175 vtkSetStringMacro(RangeLabelFormat);
176 vtkGetStringMacro(RangeLabelFormat);
183 void SetUseCustomLabels(
bool useLabels);
184 vtkGetMacro(UseCustomLabels,
bool);
191 void SetNumberOfCustomLabels(
vtkIdType numLabels);
198 void SetCustomLabel(
vtkIdType index,
double value);
234 int GetEstimatedNumberOfAnnotations();
246 int TitleJustification;
252 bool ForceHorizontalTitle;
257 int ScalarBarThickness;
262 double ScalarBarLength;
264 int AutomaticLabelFormat;
267 int AutomaticAnnotations;
268 int AddRangeAnnotations;
269 char* RangeLabelFormat;
274 int OutlineScalarBar;
287 bool UseCustomLabels;
303 class vtkScalarBarItem;
304 vtkScalarBarItem* ScalarBarItem;
334 vtkRectf GetColorBarRect(
double size[2]);
340 vtkRectf GetFullColorBarRect(
double size[2]);
345 vtkRectf GetAboveRangeColorRect(
double size[2]);
350 vtkRectf GetBelowRangeColorRect(
double size[2]);
352 vtkRectf GetOutOfRangeColorRectInternal(
358 vtkRectf GetNaNColorRect(
double size[2]);
363 void UpdateTextProperties();
368 void PaintColorBar(
vtkContext2D* painter,
double size[2]);
380 class vtkAnnotationMap;
387 void PaintAnnotations(
vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
392 void PaintAnnotationsVertically(
393 vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
398 void PaintAnnotationsHorizontally(
399 vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
402 #endif // vtkContext2DScalarBarActor_h #define VTKREMOTINGVIEWS_EXPORT
int RenderOverlay(vtkViewport *viewport)
void PrintSelf(ostream &os, vtkIndent indent)
int RenderOpaqueGeometry(vtkViewport *viewport)
static vtkScalarBarActor * New()
Custom scalar bar actor for ParaView that uses the Charts API.
void operator=(const vtkObjectBase &)
virtual void ReleaseGraphicsResources(vtkWindow *)