14 #ifndef vtkContext2DScalarBarActor_h 15 #define vtkContext2DScalarBarActor_h 49 vtkGetMacro(TitleJustification,
int);
50 vtkSetClampMacro(TitleJustification,
int, VTK_TEXT_LEFT, VTK_TEXT_RIGHT);
58 vtkSetMacro(ForceHorizontalTitle,
bool);
59 vtkGetMacro(ForceHorizontalTitle,
bool);
60 vtkBooleanMacro(ForceHorizontalTitle,
bool);
82 vtkSetClampMacro(ScalarBarThickness,
int, 0, VTK_INT_MAX);
83 vtkGetMacro(ScalarBarThickness,
int);
95 vtkSetClampMacro(ScalarBarLength,
double, 0, 1);
96 vtkGetMacro(ScalarBarLength,
double);
103 vtkSetMacro(DrawScalarBarOutline,
bool);
104 vtkGetMacro(DrawScalarBarOutline,
bool);
105 vtkBooleanMacro(DrawScalarBarOutline,
bool);
112 vtkSetVector3Macro(ScalarBarOutlineColor,
double);
113 vtkGetVector3Macro(ScalarBarOutlineColor,
double);
120 vtkSetClampMacro(ScalarBarOutlineThickness,
int, 0, VTK_INT_MAX);
121 vtkGetMacro(ScalarBarOutlineThickness,
int);
129 vtkSetVector4Macro(BackgroundColor,
double);
131 vtkGetVector4Macro(BackgroundColor,
double);
138 vtkSetMacro(BackgroundPadding,
double);
140 vtkGetMacro(BackgroundPadding,
double);
147 vtkSetMacro(ReverseLegend,
bool);
148 vtkGetMacro(ReverseLegend,
bool);
149 vtkBooleanMacro(ReverseLegend,
bool);
158 vtkGetMacro(AutomaticLabelFormat,
int);
159 vtkSetMacro(AutomaticLabelFormat,
int);
160 vtkBooleanMacro(AutomaticLabelFormat,
int);
168 vtkSetMacro(AddRangeLabels,
int);
169 vtkGetMacro(AddRangeLabels,
int);
177 vtkSetMacro(AutomaticAnnotations,
int);
178 vtkGetMacro(AutomaticAnnotations,
int);
179 vtkBooleanMacro(AutomaticAnnotations,
int);
187 vtkGetMacro(AddRangeAnnotations,
int);
188 vtkSetMacro(AddRangeAnnotations,
int);
189 vtkBooleanMacro(AddRangeAnnotations,
int);
196 vtkSetMacro(DrawTickMarks,
bool);
197 vtkGetMacro(DrawTickMarks,
bool);
204 vtkSetStringMacro(RangeLabelFormat);
205 vtkGetStringMacro(RangeLabelFormat);
212 vtkSetStringMacro(DataRangeLabelFormat);
213 vtkGetStringMacro(DataRangeLabelFormat);
220 void SetNumberOfCustomLabels(
vtkIdType numLabels);
227 void SetCustomLabel(
vtkIdType index,
double value);
263 int GetEstimatedNumberOfAnnotations();
270 vtkSetMacro(DrawDataRange,
bool);
271 vtkGetMacro(DrawDataRange,
bool);
272 vtkBooleanMacro(DrawDataRange,
bool);
281 vtkSetMacro(DataRangeMin,
double);
282 vtkGetMacro(DataRangeMin,
double);
291 vtkSetMacro(DataRangeMax,
double);
292 vtkGetMacro(DataRangeMax,
double);
308 double DataRangeMin = 0;
309 double DataRangeMax = 0;
315 int VerticalOffset = 0;
323 int TitleJustification;
329 bool ForceHorizontalTitle;
334 double ScalarBarOutlineColor[3];
339 int ScalarBarThickness;
344 double BackgroundColor[4];
349 double BackgroundPadding;
354 double ScalarBarLength;
356 int AutomaticLabelFormat;
359 int AutomaticAnnotations;
360 int AddRangeAnnotations;
361 char* RangeLabelFormat;
362 char* DataRangeLabelFormat;
367 bool DrawScalarBarOutline;
372 int ScalarBarOutlineThickness;
394 class vtkScalarBarItem;
395 vtkScalarBarItem* ScalarBarItem;
410 bool InGetBoundingRect;
439 vtkRectf GetColorBarRect(
double size[2],
bool includeSwatch =
true);
445 vtkRectf GetFullColorBarRect(
double size[2]);
450 vtkRectf GetAboveRangeColorRect(
double size[2]);
455 vtkRectf GetBelowRangeColorRect(
double size[2]);
457 vtkRectf GetOutOfRangeColorRectInternal(
463 vtkRectf GetNaNColorRect(
double size[2]);
468 void UpdateTextProperties();
473 void PaintColorBar(
vtkContext2D* painter,
double size[2]);
490 class vtkAnnotationMap;
497 void PaintAnnotations(
vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
502 void PaintAnnotationsVertically(
503 vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
508 void PaintAnnotationsHorizontally(
509 vtkContext2D* painter,
double size[2],
const vtkAnnotationMap& map);
514 float HorizontalAnnotationHeight;
519 float VerticalRangeDataHeight;
522 #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 *)