![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <vtkContext2DScalarBarActor.h>
Classes | |
| class | vtkAnnotationMap |
| class | vtkScalarBarItem |
Public Types | |
| enum | { PrecedeScalarBar = 0, SucceedScalarBar } |
| enum | OutOfRangeType { BELOW_RANGE = 0, ABOVE_RANGE = 1 } |
Public Member Functions | |
| vtkTypeMacro (vtkContext2DScalarBarActor, vtkScalarBarActor) | |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| vtkGetMacro (TitleJustification, int) | |
| vtkSetClampMacro (TitleJustification, int, VTK_TEXT_LEFT, VTK_TEXT_RIGHT) | |
| vtkSetMacro (ForceHorizontalTitle, bool) | |
| vtkGetMacro (ForceHorizontalTitle, bool) | |
| vtkBooleanMacro (ForceHorizontalTitle, bool) | |
| vtkSetClampMacro (ScalarBarThickness, int, 0, VTK_INT_MAX) | |
| vtkGetMacro (ScalarBarThickness, int) | |
| vtkSetClampMacro (ScalarBarLength, double, 0, 1) | |
| vtkGetMacro (ScalarBarLength, double) | |
| vtkSetMacro (ReverseLegend, bool) | |
| vtkGetMacro (ReverseLegend, bool) | |
| vtkBooleanMacro (ReverseLegend, bool) | |
| vtkGetMacro (AutomaticLabelFormat, int) | |
| vtkSetMacro (AutomaticLabelFormat, int) | |
| vtkBooleanMacro (AutomaticLabelFormat, int) | |
| vtkSetMacro (AddRangeLabels, int) | |
| vtkGetMacro (AddRangeLabels, int) | |
| vtkSetMacro (AutomaticAnnotations, int) | |
| vtkGetMacro (AutomaticAnnotations, int) | |
| vtkBooleanMacro (AutomaticAnnotations, int) | |
| vtkGetMacro (AddRangeAnnotations, int) | |
| vtkSetMacro (AddRangeAnnotations, int) | |
| vtkBooleanMacro (AddRangeAnnotations, int) | |
| vtkGetMacro (OutlineScalarBar, int) | |
| vtkSetMacro (OutlineScalarBar, int) | |
| vtkBooleanMacro (OutlineScalarBar, int) | |
| vtkSetMacro (DrawTickMarks, bool) | |
| vtkGetMacro (DrawTickMarks, bool) | |
| vtkSetStringMacro (RangeLabelFormat) | |
| vtkGetStringMacro (RangeLabelFormat) | |
| void | SetUseCustomLabels (bool useLabels) |
| vtkGetMacro (UseCustomLabels, bool) | |
| vtkSetMacro (NumberOfTicks, int) | |
| vtkGetMacro (NumberOfTicks, int) | |
| void | SetNumberOfCustomLabels (vtkIdType numLabels) |
| vtkIdType | GetNumberOfCustomLabels () |
| void | SetCustomLabel (vtkIdType index, double value) |
| int | RenderOverlay (vtkViewport *viewport) override |
| int | RenderOpaqueGeometry (vtkViewport *viewport) override |
| void | ReleaseGraphicsResources (vtkWindow *window) override |
| virtual bool | Paint (vtkContext2D *painter) |
| vtkRectf | GetBoundingRect () |
| int | GetEstimatedNumberOfAnnotations () |
Static Public Member Functions | |
| static vtkContext2DScalarBarActor * | New () |
Protected Member Functions | |
| vtkContext2DScalarBarActor () | |
| ~vtkContext2DScalarBarActor () override | |
|
protected |
|
overrideprotected |
References NULL.
| vtkRectf vtkContext2DScalarBarActor::GetBoundingRect | ( | ) |
Get the bounding rectangle of the scalar bar actor contents in display coordinates.
References vtkBoundingRectContextDevice2D::GetBoundingRect().
Referenced by vtkScalarBarRepresentationCustom::RenderOverlay().
| int vtkContext2DScalarBarActor::GetEstimatedNumberOfAnnotations | ( | ) |
Get an estimated number of annotations emulating loosely the algorithm generating the annotations. The actual number of annotations can be slightly lower than the return of this method when using automatic annotations.
| vtkIdType vtkContext2DScalarBarActor::GetNumberOfCustomLabels | ( | ) |
|
static |
Referenced by vtkScalarBarWidgetCustom::CreateDefaultScalarBarActor().
|
virtual |
Responsible for actually drawing the scalar bar.
References size.
Referenced by vtkContext2DScalarBarActor::vtkScalarBarItem::Paint().
|
override |
|
override |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
|
override |
Draw the scalar bar and annotation text to the screen.
|
override |
We only render in the overlay for the context scene.
| void vtkContext2DScalarBarActor::SetCustomLabel | ( | vtkIdType | index, |
| double | value | ||
| ) |
Set label for index.
| void vtkContext2DScalarBarActor::SetNumberOfCustomLabels | ( | vtkIdType | numLabels | ) |
Set number of custom labels.
| void vtkContext2DScalarBarActor::SetUseCustomLabels | ( | bool | useLabels | ) |
Use custom labels.
| vtkContext2DScalarBarActor::vtkBooleanMacro | ( | AddRangeAnnotations | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkBooleanMacro | ( | AutomaticAnnotations | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkBooleanMacro | ( | AutomaticLabelFormat | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkBooleanMacro | ( | ForceHorizontalTitle | , |
| bool | |||
| ) |
| vtkContext2DScalarBarActor::vtkBooleanMacro | ( | OutlineScalarBar | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkBooleanMacro | ( | ReverseLegend | , |
| bool | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | AddRangeAnnotations | , |
| int | |||
| ) |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations.
| vtkContext2DScalarBarActor::vtkGetMacro | ( | AddRangeLabels | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | AutomaticAnnotations | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | AutomaticLabelFormat | , |
| int | |||
| ) |
If true (the default), the printf format used for the labels will be automatically generated to make the numbers best fit within the widget. If false, the LabelFormat ivar will be used.
| vtkContext2DScalarBarActor::vtkGetMacro | ( | DrawTickMarks | , |
| bool | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | ForceHorizontalTitle | , |
| bool | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | NumberOfTicks | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | OutlineScalarBar | , |
| int | |||
| ) |
Flag that controls whether an outline is drawn around the scalar bar.
| vtkContext2DScalarBarActor::vtkGetMacro | ( | ReverseLegend | , |
| bool | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | ScalarBarLength | , |
| double | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | ScalarBarThickness | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetMacro | ( | TitleJustification | , |
| int | |||
| ) |
Set the title justification. Valid values are VTK_TEXT_LEFT, VTK_TEXT_CENTERED, and VTK_TEXT_RIGHT.
| vtkContext2DScalarBarActor::vtkGetMacro | ( | UseCustomLabels | , |
| bool | |||
| ) |
| vtkContext2DScalarBarActor::vtkGetStringMacro | ( | RangeLabelFormat | ) |
| vtkContext2DScalarBarActor::vtkSetClampMacro | ( | ScalarBarLength | , |
| double | , | ||
| 0 | , | ||
| 1 | |||
| ) |
Set the scalar bar length. When the orientation is VTK_ORIENT_VERTICAL, this sets the scalar bar height. When the orientation is VTK_ORIENT_HORIZONTAL, this sets the scalar bar width. Specified in normalized viewport coordinates, meaning the value is the fractional span of the viewport's width or height in the range [0, 1], depending on orientation.
| vtkContext2DScalarBarActor::vtkSetClampMacro | ( | ScalarBarThickness | , |
| int | , | ||
| 0 | , | ||
| VTK_INT_MAX | |||
| ) |
Set the scalar bar thickness. When the orientation is VTK_ORIENT_VERTICAL, this sets the scalar bar width. When the orientation is VTK_ORIENT_HORIZONTAL, this sets the scalar bar height. Specified in points akin to font size.
| vtkContext2DScalarBarActor::vtkSetClampMacro | ( | TitleJustification | , |
| int | , | ||
| VTK_TEXT_LEFT | , | ||
| VTK_TEXT_RIGHT | |||
| ) |
| vtkContext2DScalarBarActor::vtkSetMacro | ( | AddRangeAnnotations | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkSetMacro | ( | AddRangeLabels | , |
| int | |||
| ) |
Set/get whether to add range labels or not. These are labels that have the minimum/maximum values of the scalar bar range.
| vtkContext2DScalarBarActor::vtkSetMacro | ( | AutomaticAnnotations | , |
| int | |||
| ) |
Set whether annotations are automatically created according the number of discrete colors. Default is FALSE;
| vtkContext2DScalarBarActor::vtkSetMacro | ( | AutomaticLabelFormat | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkSetMacro | ( | DrawTickMarks | , |
| bool | |||
| ) |
Set/get whether tick marks should be drawn.
| vtkContext2DScalarBarActor::vtkSetMacro | ( | ForceHorizontalTitle | , |
| bool | |||
| ) |
If this flag is on, the title will be drawn horizontally above the scalar bar. Off by default.
| vtkContext2DScalarBarActor::vtkSetMacro | ( | NumberOfTicks | , |
| int | |||
| ) |
Set/get whether to add range labels or not. These are labels that have the minimum/maximum values of the scalar bar range.
| vtkContext2DScalarBarActor::vtkSetMacro | ( | OutlineScalarBar | , |
| int | |||
| ) |
| vtkContext2DScalarBarActor::vtkSetMacro | ( | ReverseLegend | , |
| bool | |||
| ) |
Set whether the scalar bar is reversed ie from high to low instead of from low to high. Default is false;
| vtkContext2DScalarBarActor::vtkSetStringMacro | ( | RangeLabelFormat | ) |
Printf format for range labels.
| vtkContext2DScalarBarActor::vtkTypeMacro | ( | vtkContext2DScalarBarActor | , |
| vtkScalarBarActor | |||
| ) |