26 #ifndef vtkContext2DScalarBarActor_h 27 #define vtkContext2DScalarBarActor_h 61 vtkGetMacro(TitleJustification,
int);
62 vtkSetClampMacro(TitleJustification,
int, VTK_TEXT_LEFT, VTK_TEXT_RIGHT);
70 vtkSetMacro(ForceHorizontalTitle,
bool);
71 vtkGetMacro(ForceHorizontalTitle,
bool);
72 vtkBooleanMacro(ForceHorizontalTitle,
bool);
94 vtkSetClampMacro(ScalarBarThickness,
int, 0, VTK_INT_MAX);
95 vtkGetMacro(ScalarBarThickness,
int);
107 vtkSetClampMacro(ScalarBarLength,
double, 0, 1);
108 vtkGetMacro(ScalarBarLength,
double);
115 vtkSetMacro(DrawScalarBarOutline,
bool);
116 vtkGetMacro(DrawScalarBarOutline,
bool);
117 vtkBooleanMacro(DrawScalarBarOutline,
bool);
124 vtkSetVector3Macro(ScalarBarOutlineColor,
double);
125 vtkGetVector3Macro(ScalarBarOutlineColor,
double);
132 vtkSetClampMacro(ScalarBarOutlineThickness,
int, 0, VTK_INT_MAX);
133 vtkGetMacro(ScalarBarOutlineThickness,
int);
141 vtkSetVector4Macro(BackgroundColor,
double);
143 vtkGetVector4Macro(BackgroundColor,
double);
150 vtkSetMacro(BackgroundPadding,
double);
152 vtkGetMacro(BackgroundPadding,
double);
159 vtkSetMacro(ReverseLegend,
bool);
160 vtkGetMacro(ReverseLegend,
bool);
161 vtkBooleanMacro(ReverseLegend,
bool);
170 vtkGetMacro(AutomaticLabelFormat,
int);
171 vtkSetMacro(AutomaticLabelFormat,
int);
172 vtkBooleanMacro(AutomaticLabelFormat,
int);
180 vtkSetMacro(AddRangeLabels,
int);
181 vtkGetMacro(AddRangeLabels,
int);
189 vtkSetMacro(AutomaticAnnotations,
int);
190 vtkGetMacro(AutomaticAnnotations,
int);
191 vtkBooleanMacro(AutomaticAnnotations,
int);
199 vtkGetMacro(AddRangeAnnotations,
int);
200 vtkSetMacro(AddRangeAnnotations,
int);
201 vtkBooleanMacro(AddRangeAnnotations,
int);
208 vtkSetMacro(DrawTickMarks,
bool);
209 vtkGetMacro(DrawTickMarks,
bool);
216 vtkSetStringMacro(RangeLabelFormat);
217 vtkGetStringMacro(RangeLabelFormat);
224 vtkSetStringMacro(DataRangeLabelFormat);
225 vtkGetStringMacro(DataRangeLabelFormat);
232 void SetNumberOfCustomLabels(
vtkIdType numLabels);
239 void SetCustomLabel(
vtkIdType index,
double value);
275 int GetEstimatedNumberOfAnnotations();
282 vtkSetMacro(DrawDataRange,
bool);
283 vtkGetMacro(DrawDataRange,
bool);
284 vtkBooleanMacro(DrawDataRange,
bool);
293 vtkSetMacro(DataRangeMin,
double);
294 vtkGetMacro(DataRangeMin,
double);
303 vtkSetMacro(DataRangeMax,
double);
304 vtkGetMacro(DataRangeMax,
double);
320 double DataRangeMin = 0;
321 double DataRangeMax = 0;
327 int VerticalOffset = 0;
335 int TitleJustification;
341 bool ForceHorizontalTitle;
346 double ScalarBarOutlineColor[3];
351 int ScalarBarThickness;
356 double BackgroundColor[4];
361 double BackgroundPadding;
366 double ScalarBarLength;
368 int AutomaticLabelFormat;
371 int AutomaticAnnotations;
372 int AddRangeAnnotations;
373 char* RangeLabelFormat;
374 char* DataRangeLabelFormat;
379 bool DrawScalarBarOutline;
384 int ScalarBarOutlineThickness;
406 class vtkScalarBarItem;
407 vtkScalarBarItem* ScalarBarItem;
422 bool InGetBoundingRect;
451 vtkRectf GetColorBarRect(
double size[2],
bool includeSwatch =
true);
457 vtkRectf GetFullColorBarRect(
double size[2]);
462 vtkRectf GetAboveRangeColorRect(
double size[2]);
467 vtkRectf GetBelowRangeColorRect(
double size[2]);
469 vtkRectf GetOutOfRangeColorRectInternal(
475 vtkRectf GetNaNColorRect(
double size[2]);
480 void UpdateTextProperties();
485 void PaintColorBar(
vtkContext2D* painter,
double size[2]);
502 class vtkAnnotationMap;
509 void PaintAnnotations(
vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
514 void PaintAnnotationsVertically(
515 vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
520 void PaintAnnotationsHorizontally(
521 vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
526 float HorizontalAnnotationHeight;
531 float VerticalRangeDataHeight;
534 #endif // vtkContext2DScalarBarActor_h #define VTKREMOTINGVIEWS_EXPORT
int RenderOverlay(vtkViewport *viewport)
bool DrawDataRange
Flag to show the range on the scalar bar.
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 *)