ParaView
|
A scalar bar with labels of fixed font. More...
#include <vtkPVScalarBarActor.h>
Inherits vtkScalarBarActor.
Public Types | |
typedef vtkScalarBarActor | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | AddValueLabelIfUnoccluded (double value, double pos, double diff) |
Add value as annotation label on scalar bar at the given position. More... | |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
Release any graphics resources that are being consumed by this actor. More... | |
int | RenderOpaqueGeometry (vtkViewport *viewport) |
Overridden to sync internal variables with renderer state. More... | |
virtual int | RenderOverlay (vtkViewport *viewport) |
Draw the scalar bar and annotation text to the screen. More... | |
virtual double | GetAspectRatio () |
The bar aspect ratio (length/width). More... | |
virtual void | SetAspectRatio (double) |
The bar aspect ratio (length/width). More... | |
virtual int | GetAutomaticLabelFormat () |
If true (the default), the printf format used for the labels will be automatically generated to make the numbers best fit within the widget. More... | |
virtual void | SetAutomaticLabelFormat (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. More... | |
virtual void | AutomaticLabelFormatOn () |
If true (the default), the printf format used for the labels will be automatically generated to make the numbers best fit within the widget. More... | |
virtual void | AutomaticLabelFormatOff () |
If true (the default), the printf format used for the labels will be automatically generated to make the numbers best fit within the widget. More... | |
virtual int | GetDrawTickMarks () |
If true (the default), tick marks will be drawn. More... | |
virtual void | SetDrawTickMarks (int) |
If true (the default), tick marks will be drawn. More... | |
virtual void | DrawTickMarksOn () |
If true (the default), tick marks will be drawn. More... | |
virtual void | DrawTickMarksOff () |
If true (the default), tick marks will be drawn. More... | |
virtual int | GetDrawSubTickMarks () |
If true (the default), sub-tick marks will be drawn. More... | |
virtual void | SetDrawSubTickMarks (int) |
If true (the default), sub-tick marks will be drawn. More... | |
virtual void | DrawSubTickMarksOn () |
If true (the default), sub-tick marks will be drawn. More... | |
virtual void | DrawSubTickMarksOff () |
If true (the default), sub-tick marks will be drawn. More... | |
virtual int | GetAddRangeLabels () |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels. More... | |
virtual void | SetAddRangeLabels (int) |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels. More... | |
virtual void | AddRangeLabelsOn () |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels. More... | |
virtual void | AddRangeLabelsOff () |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels. More... | |
virtual void | SetAutomaticAnnotations (int) |
Set whether annotions are automatically created according the number of discrete colors. More... | |
virtual int | GetAutomaticAnnotations () |
Set whether annotions are automatically created according the number of discrete colors. More... | |
virtual void | AutomaticAnnotationsOn () |
Set whether annotions are automatically created according the number of discrete colors. More... | |
virtual void | AutomaticAnnotationsOff () |
Set whether annotions are automatically created according the number of discrete colors. More... | |
virtual char * | GetRangeLabelFormat () |
Set the C-style format string for the range labels. More... | |
virtual void | SetRangeLabelFormat (const char *) |
Set the C-style format string for the range labels. More... | |
virtual int | GetTitleJustification () |
Set the title justification. More... | |
virtual void | SetTitleJustification (int) |
Set the title justification. More... | |
virtual int | GetAddRangeAnnotations () |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations. More... | |
virtual void | SetAddRangeAnnotations (int) |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations. More... | |
virtual void | AddRangeAnnotationsOn () |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations. More... | |
virtual void | AddRangeAnnotationsOff () |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations. More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPVScalarBarActor * | SafeDownCast (vtkObject *o) |
static vtkPVScalarBarActor * | New () |
Protected Member Functions | |
vtkPVScalarBarActor () | |
~vtkPVScalarBarActor () | |
virtual void | EditAnnotations () |
Annotate the min/max values on the scalar bar (in interval/ratio mode). More... | |
virtual void | BuildScalarBarTexture () |
Set up the ScalarBar, ScalarBarMapper, and ScalarBarActor based on the current position and orientation of this actor. More... | |
virtual int | CreateLabel (double value, int minDigits, int targetWidth, int targetHeight, vtkViewport *viewport) |
A convenience function for creating one of the labels. More... | |
virtual void | PrepareTitleText () |
These methods override the subclass implementation. More... | |
virtual void | ComputeScalarBarThickness () |
These methods override the subclass implementation. More... | |
virtual void | LayoutTitle () |
These methods override the subclass implementation. More... | |
virtual void | ComputeScalarBarLength () |
These methods override the subclass implementation. More... | |
virtual void | LayoutTicks () |
These methods override the subclass implementation. More... | |
virtual void | ConfigureAnnotations () |
These methods override the subclass implementation. More... | |
virtual void | ConfigureTitle () |
These methods override the subclass implementation. More... | |
virtual void | ConfigureTicks () |
These methods override the subclass implementation. More... | |
Protected Attributes | |
double | AspectRatio |
int | AutomaticLabelFormat |
int | DrawTickMarks |
int | DrawSubTickMarks |
int | AddRangeLabels |
int | AutomaticAnnotations |
Flag indicating whether automatic annotations are computed and shown. More... | |
char * | RangeLabelFormat |
vtkTexture * | ScalarBarTexture |
vtkPolyData * | TickMarks |
vtkPolyDataMapper2D * | TickMarksMapper |
vtkActor2D * | TickMarksActor |
int | LabelSpace |
Space, in pixels, between the labels and the bar itself. More... | |
int | TitleJustification |
The justification/alignment of the title. More... | |
int | AddRangeAnnotations |
Flag to add minimum and maximum as annotations. More... | |
vtkNew< vtkAxis > | TickLayoutHelper |
These are used to calculate the tick spacing. More... | |
vtkNew< vtkContextScene > | TickLayoutHelperScene |
These are used to calculate the tick spacing. More... | |
A scalar bar with labels of fixed font.
vtkPVScalarBarActor has basically the same functionality as vtkScalarBarActor except that the fonts are set to a fixed size and tick labels vary in precision before their size is adjusted to meet geometric constraints. These changes make it easier to control in ParaView.
Definition at line 48 of file vtkPVScalarBarActor.h.
typedef vtkScalarBarActor vtkPVScalarBarActor::Superclass |
Definition at line 51 of file vtkPVScalarBarActor.h.
|
protected |
|
protected |
|
virtual |
|
static |
|
virtual |
|
static |
|
virtual |
|
static |
|
virtual |
The bar aspect ratio (length/width).
Defaults to 20. Note that this the aspect ratio of the color bar only, not including labels.
|
virtual |
The bar aspect ratio (length/width).
Defaults to 20. Note that this the aspect ratio of the color bar only, not including labels.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
If true (the default), tick marks will be drawn.
|
virtual |
If true (the default), tick marks will be drawn.
|
virtual |
If true (the default), tick marks will be drawn.
|
virtual |
If true (the default), tick marks will be drawn.
|
virtual |
If true (the default), sub-tick marks will be drawn.
|
virtual |
If true (the default), sub-tick marks will be drawn.
|
virtual |
If true (the default), sub-tick marks will be drawn.
|
virtual |
If true (the default), sub-tick marks will be drawn.
|
virtual |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels.
|
virtual |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels.
|
virtual |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels.
|
virtual |
Set whether the range endpoints (minimum and maximum) are added as labels alongside other value labels.
|
virtual |
Set whether annotions are automatically created according the number of discrete colors.
Default is FALSE;
|
virtual |
Set whether annotions are automatically created according the number of discrete colors.
Default is FALSE;
|
virtual |
Set whether annotions are automatically created according the number of discrete colors.
Default is FALSE;
|
virtual |
Set whether annotions are automatically created according the number of discrete colors.
Default is FALSE;
|
virtual |
Set the C-style format string for the range labels.
|
virtual |
Set the C-style format string for the range labels.
|
virtual |
Add value as annotation label on scalar bar at the given position.
|
virtual |
Set the title justification.
Valid values are VTK_TEXT_LEFT, VTK_TEXT_CENTERED, and VTK_TEXT_RIGHT.
|
virtual |
Set the title justification.
Valid values are VTK_TEXT_LEFT, VTK_TEXT_CENTERED, and VTK_TEXT_RIGHT.
|
virtual |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations.
|
virtual |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations.
|
virtual |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations.
|
virtual |
Set whether the scalar data range endpoints (minimum and maximum) are added as annotations.
|
virtual |
Release any graphics resources that are being consumed by this actor.
The parameter window could be used to determine which graphic resources to release.
int vtkPVScalarBarActor::RenderOpaqueGeometry | ( | vtkViewport * | viewport | ) |
Overridden to sync internal variables with renderer state.
|
virtual |
Draw the scalar bar and annotation text to the screen.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
These methods override the subclass implementation.
|
protectedvirtual |
Annotate the min/max values on the scalar bar (in interval/ratio mode).
This overrides the subclass implementation.
|
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.
|
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.
|
protected |
Definition at line 206 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 207 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 208 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 209 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 210 of file vtkPVScalarBarActor.h.
|
protected |
Flag indicating whether automatic annotations are computed and shown.
Definition at line 215 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 217 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 219 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 220 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 221 of file vtkPVScalarBarActor.h.
|
protected |
Definition at line 222 of file vtkPVScalarBarActor.h.
|
protected |
These are used to calculate the tick spacing.
Definition at line 228 of file vtkPVScalarBarActor.h.
|
protected |
These are used to calculate the tick spacing.
Definition at line 229 of file vtkPVScalarBarActor.h.
|
protected |
Space, in pixels, between the labels and the bar itself.
Currently set in PositionTitle.
Definition at line 236 of file vtkPVScalarBarActor.h.
|
protected |
The justification/alignment of the title.
Definition at line 241 of file vtkPVScalarBarActor.h.
|
protected |
Flag to add minimum and maximum as annotations.
Definition at line 246 of file vtkPVScalarBarActor.h.