#include <vtkScalarBarActorCustom.h>
|
| | vtkTypeMacro (vtkScalarBarActorCustom, vtkScalarBarActor) |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| |
| | vtkGetMacro (AspectRatio, double) |
| |
| | vtkSetMacro (AspectRatio, double) |
| |
| | vtkGetMacro (AutomaticLabelFormat, int) |
| |
| | vtkSetMacro (AutomaticLabelFormat, int) |
| |
| | vtkBooleanMacro (AutomaticLabelFormat, int) |
| |
| | vtkGetMacro (DrawTickMarks, int) |
| |
| | vtkSetMacro (DrawTickMarks, int) |
| |
| | vtkBooleanMacro (DrawTickMarks, int) |
| |
| | vtkGetMacro (DrawSubTickMarks, int) |
| |
| | vtkSetMacro (DrawSubTickMarks, int) |
| |
| | vtkBooleanMacro (DrawSubTickMarks, int) |
| |
| | vtkGetMacro (AddRangeLabels, int) |
| |
| | vtkSetMacro (AddRangeLabels, int) |
| |
| | vtkBooleanMacro (AddRangeLabels, int) |
| |
| | vtkSetMacro (AutomaticAnnotations, int) |
| |
| | vtkGetMacro (AutomaticAnnotations, int) |
| |
| | vtkBooleanMacro (AutomaticAnnotations, int) |
| |
| | vtkGetStringMacro (RangeLabelFormat) |
| |
| | vtkSetStringMacro (RangeLabelFormat) |
| |
| virtual void | AddValueLabelIfUnoccluded (double value, double pos, double diff) |
| |
| | vtkGetMacro (TitleJustification, int) |
| |
| | vtkSetClampMacro (TitleJustification, int, VTK_TEXT_LEFT, VTK_TEXT_RIGHT) |
| |
| | vtkGetMacro (AddRangeAnnotations, int) |
| |
| | vtkSetMacro (AddRangeAnnotations, int) |
| |
| | vtkBooleanMacro (AddRangeAnnotations, int) |
| |
| void | ReleaseGraphicsResources (vtkWindow *) override |
| |
| int | RenderOpaqueGeometry (vtkViewport *viewport) override |
| |
| int | RenderOverlay (vtkViewport *viewport) override |
| |
◆ vtkScalarBarActorCustom()
| vtkScalarBarActorCustom::vtkScalarBarActorCustom |
( |
| ) |
|
|
protected |
References AddRangeAnnotations, AddRangeLabels, AspectRatio, AutomaticAnnotations, AutomaticLabelFormat, DrawSubTickMarks, DrawTickMarks, NULL, RangeLabelFormat, ScalarBarTexture, TickLayoutHelper, TickLayoutHelperScene, TickMarks, TickMarksActor, TickMarksMapper, and TitleJustification.
◆ ~vtkScalarBarActorCustom()
| vtkScalarBarActorCustom::~vtkScalarBarActorCustom |
( |
| ) |
|
|
overrideprotected |
◆ AddValueLabelIfUnoccluded()
| void vtkScalarBarActorCustom::AddValueLabelIfUnoccluded |
( |
double |
value, |
|
|
double |
pos, |
|
|
double |
diff |
|
) |
| |
|
virtual |
◆ BuildScalarBarTexture()
| void vtkScalarBarActorCustom::BuildScalarBarTexture |
( |
| ) |
|
|
protectedvirtual |
Set up the ScalarBar, ScalarBarMapper, and ScalarBarActor based on the current position and orientation of this actor. virtual void PositionScalarBar(const int propSize[2], vtkViewport *viewport); Set up the texture used to render the scalar bar.
References COLOR_TEXTURE_MAP_SIZE, colors, and ScalarBarTexture.
◆ ComputeScalarBarLength()
| void vtkScalarBarActorCustom::ComputeScalarBarLength |
( |
| ) |
|
|
overrideprotected |
◆ ComputeScalarBarThickness()
| void vtkScalarBarActorCustom::ComputeScalarBarThickness |
( |
| ) |
|
|
overrideprotected |
◆ ConfigureAnnotations()
| void vtkScalarBarActorCustom::ConfigureAnnotations |
( |
| ) |
|
|
overrideprotected |
◆ ConfigureTicks()
| void vtkScalarBarActorCustom::ConfigureTicks |
( |
| ) |
|
|
overrideprotected |
References AddRangeLabels, AutomaticLabelFormat, color, CreateLabel(), DrawSubTickMarks, e, cloudViewer::utility::floor(), LabelSpace, MY_ABS, RangeLabelFormat, TickLayoutHelper, TickMarks, TickMarksActor, x, and y.
◆ ConfigureTitle()
| void vtkScalarBarActorCustom::ConfigureTitle |
( |
| ) |
|
|
overrideprotected |
◆ CreateLabel()
| int vtkScalarBarActorCustom::CreateLabel |
( |
double |
value, |
|
|
int |
minDigits, |
|
|
int |
targetWidth, |
|
|
int |
targetHeight, |
|
|
vtkViewport * |
viewport |
|
) |
| |
|
protectedvirtual |
A convenience function for creating one of the labels. A text mapper and associated actor are added to LabelMappers and LabelActors respectively. The index to the newly created entries is returned.
References AutomaticLabelFormat, format, and SNPRINTF.
Referenced by ConfigureTicks().
◆ EditAnnotations()
| void vtkScalarBarActorCustom::EditAnnotations |
( |
| ) |
|
|
overrideprotected |
◆ LayoutTicks()
| void vtkScalarBarActorCustom::LayoutTicks |
( |
| ) |
|
|
overrideprotected |
◆ LayoutTitle()
| void vtkScalarBarActorCustom::LayoutTitle |
( |
| ) |
|
|
overrideprotected |
◆ New()
◆ PrepareTitleText()
| void vtkScalarBarActorCustom::PrepareTitleText |
( |
| ) |
|
|
overrideprotected |
These methods override the subclass implementation.
◆ PrintSelf()
| void vtkScalarBarActorCustom::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
override |
References AddRangeAnnotations, AddRangeLabels, AspectRatio, AutomaticAnnotations, AutomaticLabelFormat, DrawSubTickMarks, DrawTickMarks, QtCompat::endl(), LabelSpace, RangeLabelFormat, ScalarBarTexture, TickMarks, TickMarksActor, TickMarksMapper, and TitleJustification.
◆ ReleaseGraphicsResources()
| void vtkScalarBarActorCustom::ReleaseGraphicsResources |
( |
vtkWindow * |
window | ) |
|
|
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.
References ScalarBarTexture, and TickMarksActor.
◆ RenderOpaqueGeometry()
| int vtkScalarBarActorCustom::RenderOpaqueGeometry |
( |
vtkViewport * |
viewport | ) |
|
|
override |
◆ RenderOverlay()
| int vtkScalarBarActorCustom::RenderOverlay |
( |
vtkViewport * |
viewport | ) |
|
|
override |
◆ vtkBooleanMacro() [1/6]
◆ vtkBooleanMacro() [2/6]
◆ vtkBooleanMacro() [3/6]
◆ vtkBooleanMacro() [4/6]
◆ vtkBooleanMacro() [5/6]
◆ vtkBooleanMacro() [6/6]
◆ vtkGetMacro() [1/8]
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations.
◆ vtkGetMacro() [2/8]
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels.
◆ vtkGetMacro() [3/8]
| vtkScalarBarActorCustom::vtkGetMacro |
( |
AspectRatio |
, |
|
|
double |
|
|
) |
| |
The bar aspect ratio (length/width). Defaults to 20. Note that this the aspect ratio of the color bar only, not including labels.
◆ vtkGetMacro() [4/8]
◆ vtkGetMacro() [5/8]
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.
◆ vtkGetMacro() [6/8]
If true (the default), sub-tick marks will be drawn.
◆ vtkGetMacro() [7/8]
If true (the default), tick marks will be drawn.
◆ vtkGetMacro() [8/8]
Set the title justification. Valid values are VTK_TEXT_LEFT, VTK_TEXT_CENTERED, and VTK_TEXT_RIGHT.
◆ vtkGetStringMacro()
Set the C-style format string for the range labels.
◆ vtkSetClampMacro()
| vtkScalarBarActorCustom::vtkSetClampMacro |
( |
TitleJustification |
, |
|
|
int |
, |
|
|
VTK_TEXT_LEFT |
, |
|
|
VTK_TEXT_RIGHT |
|
|
) |
| |
◆ vtkSetMacro() [1/7]
◆ vtkSetMacro() [2/7]
◆ vtkSetMacro() [3/7]
| vtkScalarBarActorCustom::vtkSetMacro |
( |
AspectRatio |
, |
|
|
double |
|
|
) |
| |
◆ vtkSetMacro() [4/7]
Set whether annotions are automatically created according the number of discrete colors. Default is FALSE;
◆ vtkSetMacro() [5/7]
◆ vtkSetMacro() [6/7]
◆ vtkSetMacro() [7/7]
◆ vtkSetStringMacro()
◆ vtkTypeMacro()
◆ AddRangeAnnotations
| int vtkScalarBarActorCustom::AddRangeAnnotations |
|
protected |
◆ AddRangeLabels
| int vtkScalarBarActorCustom::AddRangeLabels |
|
protected |
◆ AspectRatio
| double vtkScalarBarActorCustom::AspectRatio |
|
protected |
◆ AutomaticAnnotations
| int vtkScalarBarActorCustom::AutomaticAnnotations |
|
protected |
◆ AutomaticLabelFormat
| int vtkScalarBarActorCustom::AutomaticLabelFormat |
|
protected |
◆ DrawSubTickMarks
| int vtkScalarBarActorCustom::DrawSubTickMarks |
|
protected |
◆ DrawTickMarks
| int vtkScalarBarActorCustom::DrawTickMarks |
|
protected |
◆ LabelSpace
| int vtkScalarBarActorCustom::LabelSpace |
|
protected |
◆ RangeLabelFormat
| char* vtkScalarBarActorCustom::RangeLabelFormat |
|
protected |
◆ ScalarBarTexture
| vtkTexture* vtkScalarBarActorCustom::ScalarBarTexture |
|
protected |
◆ TickLayoutHelper
| vtkNew<vtkAxis> vtkScalarBarActorCustom::TickLayoutHelper |
|
protected |
◆ TickLayoutHelperScene
| vtkNew<vtkContextScene> vtkScalarBarActorCustom::TickLayoutHelperScene |
|
protected |
◆ TickMarks
| vtkPolyData* vtkScalarBarActorCustom::TickMarks |
|
protected |
◆ TickMarksActor
| vtkActor2D* vtkScalarBarActorCustom::TickMarksActor |
|
protected |
◆ TickMarksMapper
| vtkPolyDataMapper2D* vtkScalarBarActorCustom::TickMarksMapper |
|
protected |
◆ TitleJustification
| int vtkScalarBarActorCustom::TitleJustification |
|
protected |
The documentation for this class was generated from the following files: