VTK
9.4.20241220
|
Create a scalar bar with labels. More...
#include <vtkScalarBarActor.h>
Public Types | |
enum | { PrecedeScalarBar = 0 , SucceedScalarBar } |
typedef vtkActor2D | Superclass |
Public Types inherited from vtkActor2D | |
typedef vtkProp | Superclass |
Public Types inherited from vtkProp | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. | |
vtkScalarBarActor * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. | |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
Does this prop have some translucent polygonal geometry? | |
void | ReleaseGraphicsResources (vtkWindow *) override |
Release any graphics resources that are being consumed by this actor. | |
virtual void | GetScalarBarRect (int rect[4], vtkViewport *viewport) |
Fills rect with the dimensions of the scalar bar in viewport coordinates. | |
void | ShallowCopy (vtkProp *prop) override |
Shallow copy of a scalar bar actor. | |
int | RenderOpaqueGeometry (vtkViewport *viewport) override |
Draw the scalar bar and annotation text to the screen. | |
int | RenderTranslucentPolygonalGeometry (vtkViewport *) override |
Draw the scalar bar and annotation text to the screen. | |
int | RenderOverlay (vtkViewport *viewport) override |
Draw the scalar bar and annotation text to the screen. | |
virtual void | SetLookupTable (vtkScalarsToColors *) |
Set/Get the lookup table to use. | |
virtual vtkScalarsToColors * | GetLookupTable () |
Set/Get the lookup table to use. | |
virtual void | SetOpacityFunction (vtkPiecewiseFunction *) |
Set/Get the piecewise function that denotes opacity function to map values through. | |
virtual vtkPiecewiseFunction * | GetOpacityFunction () |
Set/Get the piecewise function that denotes opacity function to map values through. | |
virtual void | SetUseOpacity (vtkTypeBool) |
Should be display the opacity as well. | |
virtual vtkTypeBool | GetUseOpacity () |
Should be display the opacity as well. | |
virtual void | UseOpacityOn () |
Should be display the opacity as well. | |
virtual void | UseOpacityOff () |
Should be display the opacity as well. | |
virtual void | SetMaximumNumberOfColors (int) |
Set/Get the maximum number of scalar bar segments to show. | |
virtual int | GetMaximumNumberOfColors () |
Set/Get the maximum number of scalar bar segments to show. | |
virtual void | SetNumberOfLabels (int) |
Set/Get the number of automatic tick labels to show. | |
virtual int | GetNumberOfLabels () |
Set/Get the number of automatic tick labels to show. | |
virtual void | SetCustomLabels (vtkDoubleArray *labels) |
Set/Get the fixed locations to use. | |
virtual vtkDoubleArray * | GetCustomLabels () |
Set/Get the fixed locations to use. | |
virtual bool | GetUseCustomLabels () |
Get/Set whether custom labels will be used. | |
virtual void | SetUseCustomLabels (bool) |
Get/Set whether custom labels will be used. | |
virtual void | UseCustomLabelsOn () |
Get/Set whether custom labels will be used. | |
virtual void | UseCustomLabelsOff () |
Get/Set whether custom labels will be used. | |
virtual void | SetOrientation (int) |
Control the orientation of the scalar bar. | |
virtual int | GetOrientation () |
Control the orientation of the scalar bar. | |
void | SetOrientationToHorizontal () |
Control the orientation of the scalar bar. | |
void | SetOrientationToVertical () |
Control the orientation of the scalar bar. | |
virtual bool | GetForceVerticalTitle () |
Force the scalar bar title to be vertical. | |
virtual void | SetForceVerticalTitle (bool) |
Force the scalar bar title to be vertical. | |
virtual void | SetTitleTextProperty (vtkTextProperty *p) |
Set/Get the title text property. | |
virtual vtkTextProperty * | GetTitleTextProperty () |
Set/Get the title text property. | |
virtual void | SetLabelTextProperty (vtkTextProperty *p) |
Set/Get the labels text property. | |
virtual vtkTextProperty * | GetLabelTextProperty () |
Set/Get the labels text property. | |
virtual void | SetAnnotationTextProperty (vtkTextProperty *p) |
Set/Get the annotation text property. | |
virtual vtkTextProperty * | GetAnnotationTextProperty () |
Set/Get the annotation text property. | |
virtual void | SetLabelFormat (const char *) |
Set/Get the format with which to print the labels on the scalar bar. | |
virtual char * | GetLabelFormat () |
Set/Get the format with which to print the labels on the scalar bar. | |
virtual void | SetTitle (const char *) |
Set/Get the title of the scalar bar actor,. | |
virtual char * | GetTitle () |
Set/Get the title of the scalar bar actor,. | |
virtual void | SetComponentTitle (const char *) |
Set/Get the title for the component that is selected,. | |
virtual char * | GetComponentTitle () |
Set/Get the title for the component that is selected,. | |
virtual void | SetTextureGridWidth (double) |
Set the width of the texture grid. | |
virtual double | GetTextureGridWidth () |
Set the width of the texture grid. | |
virtual vtkTexturedActor2D * | GetTextureActor () |
Get the texture actor. | |
virtual void | SetTextPosition (int) |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction. | |
virtual int | GetTextPosition () |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction. | |
virtual void | SetTextPositionToPrecedeScalarBar () |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction. | |
virtual void | SetTextPositionToSucceedScalarBar () |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction. | |
virtual void | SetMaximumWidthInPixels (int) |
Set/Get the maximum width and height in pixels. | |
virtual int | GetMaximumWidthInPixels () |
Set/Get the maximum width and height in pixels. | |
virtual void | SetMaximumHeightInPixels (int) |
Set/Get the maximum width and height in pixels. | |
virtual int | GetMaximumHeightInPixels () |
Set/Get the maximum width and height in pixels. | |
virtual void | SetAnnotationLeaderPadding (double) |
Set/get the padding between the scalar bar and the text annotations. | |
virtual double | GetAnnotationLeaderPadding () |
Set/get the padding between the scalar bar and the text annotations. | |
virtual void | SetDrawAnnotations (vtkTypeBool) |
Set/get whether text annotations should be rendered or not. | |
virtual vtkTypeBool | GetDrawAnnotations () |
Set/get whether text annotations should be rendered or not. | |
virtual void | DrawAnnotationsOn () |
Set/get whether text annotations should be rendered or not. | |
virtual void | DrawAnnotationsOff () |
Set/get whether text annotations should be rendered or not. | |
virtual void | SetDrawNanAnnotation (vtkTypeBool) |
Set/get whether the NaN annotation should be rendered or not. | |
virtual vtkTypeBool | GetDrawNanAnnotation () |
Set/get whether the NaN annotation should be rendered or not. | |
virtual void | DrawNanAnnotationOn () |
Set/get whether the NaN annotation should be rendered or not. | |
virtual void | DrawNanAnnotationOff () |
Set/get whether the NaN annotation should be rendered or not. | |
virtual void | SetDrawBelowRangeSwatch (bool) |
Set/get whether the Below range swatch should be rendered or not. | |
virtual bool | GetDrawBelowRangeSwatch () |
Set/get whether the Below range swatch should be rendered or not. | |
virtual void | DrawBelowRangeSwatchOn () |
Set/get whether the Below range swatch should be rendered or not. | |
virtual void | DrawBelowRangeSwatchOff () |
Set/get whether the Below range swatch should be rendered or not. | |
virtual void | SetBelowRangeAnnotation (const char *) |
Set/get the annotation text for "Below Range" values. | |
virtual char * | GetBelowRangeAnnotation () |
Set/get the annotation text for "Below Range" values. | |
virtual void | SetDrawAboveRangeSwatch (bool) |
Set/get whether the Above range swatch should be rendered or not. | |
virtual bool | GetDrawAboveRangeSwatch () |
Set/get whether the Above range swatch should be rendered or not. | |
virtual void | DrawAboveRangeSwatchOn () |
Set/get whether the Above range swatch should be rendered or not. | |
virtual void | DrawAboveRangeSwatchOff () |
Set/get whether the Above range swatch should be rendered or not. | |
virtual void | SetAboveRangeAnnotation (const char *) |
Set/get the annotation text for "Above Range Swatch" values. | |
virtual char * | GetAboveRangeAnnotation () |
Set/get the annotation text for "Above Range Swatch" values. | |
virtual void | SetFixedAnnotationLeaderLineColor (vtkTypeBool) |
Set/get how leader lines connecting annotations to values should be colored. | |
virtual vtkTypeBool | GetFixedAnnotationLeaderLineColor () |
Set/get how leader lines connecting annotations to values should be colored. | |
virtual void | FixedAnnotationLeaderLineColorOn () |
Set/get how leader lines connecting annotations to values should be colored. | |
virtual void | FixedAnnotationLeaderLineColorOff () |
Set/get how leader lines connecting annotations to values should be colored. | |
virtual void | SetNanAnnotation (const char *) |
Set/get the annotation text for "NaN" values. | |
virtual char * | GetNanAnnotation () |
Set/get the annotation text for "NaN" values. | |
virtual void | SetAnnotationTextScaling (vtkTypeBool) |
Set/get whether annotation labels should be scaled with the viewport. | |
virtual vtkTypeBool | GetAnnotationTextScaling () |
Set/get whether annotation labels should be scaled with the viewport. | |
virtual void | AnnotationTextScalingOn () |
Set/get whether annotation labels should be scaled with the viewport. | |
virtual void | AnnotationTextScalingOff () |
Set/get whether annotation labels should be scaled with the viewport. | |
virtual void | SetDrawBackground (vtkTypeBool) |
Set/Get whether a background should be drawn around the scalar bar. | |
virtual vtkTypeBool | GetDrawBackground () |
Set/Get whether a background should be drawn around the scalar bar. | |
virtual void | DrawBackgroundOn () |
Set/Get whether a background should be drawn around the scalar bar. | |
virtual void | DrawBackgroundOff () |
Set/Get whether a background should be drawn around the scalar bar. | |
virtual void | SetDrawFrame (vtkTypeBool) |
Set/Get whether a frame should be drawn around the scalar bar. | |
virtual vtkTypeBool | GetDrawFrame () |
Set/Get whether a frame should be drawn around the scalar bar. | |
virtual void | DrawFrameOn () |
Set/Get whether a frame should be drawn around the scalar bar. | |
virtual void | DrawFrameOff () |
Set/Get whether a frame should be drawn around the scalar bar. | |
virtual void | SetDrawColorBar (vtkTypeBool) |
Set/Get whether the color bar should be drawn. | |
virtual vtkTypeBool | GetDrawColorBar () |
Set/Get whether the color bar should be drawn. | |
virtual void | DrawColorBarOn () |
Set/Get whether the color bar should be drawn. | |
virtual void | DrawColorBarOff () |
Set/Get whether the color bar should be drawn. | |
virtual void | SetDrawTickLabels (vtkTypeBool) |
Set/Get whether the tick labels should be drawn. | |
virtual vtkTypeBool | GetDrawTickLabels () |
Set/Get whether the tick labels should be drawn. | |
virtual void | DrawTickLabelsOn () |
Set/Get whether the tick labels should be drawn. | |
virtual void | DrawTickLabelsOff () |
Set/Get whether the tick labels should be drawn. | |
virtual void | SetBackgroundProperty (vtkProperty2D *p) |
Set/Get the background property. | |
virtual vtkProperty2D * | GetBackgroundProperty () |
Set/Get the background property. | |
virtual void | SetFrameProperty (vtkProperty2D *p) |
Set/Get the frame property. | |
virtual vtkProperty2D * | GetFrameProperty () |
Set/Get the frame property. | |
virtual int | GetTextPad () |
Set/get the amount of padding around text boxes. | |
virtual void | SetTextPad (int) |
Set/get the amount of padding around text boxes. | |
virtual int | GetVerticalTitleSeparation () |
Set/get the margin in pixels, between the title and the bar, when the Orientation is vertical. | |
virtual void | SetVerticalTitleSeparation (int) |
Set/get the margin in pixels, between the title and the bar, when the Orientation is vertical. | |
virtual double | GetBarRatio () |
Set/get the thickness of the color bar relative to the widget frame. | |
virtual void | SetBarRatio (double) |
Set/get the thickness of the color bar relative to the widget frame. | |
virtual double | GetTitleRatio () |
Set/get the ratio of the title height to the tick label height (used only when the Orientation is horizontal). | |
virtual void | SetTitleRatio (double) |
Set/get the ratio of the title height to the tick label height (used only when the Orientation is horizontal). | |
virtual void | SetUnconstrainedFontSize (bool) |
Set/Get whether the font size of title and labels is unconstrained. | |
virtual bool | GetUnconstrainedFontSize () |
Set/Get whether the font size of title and labels is unconstrained. | |
virtual void | UnconstrainedFontSizeOn () |
Set/Get whether the font size of title and labels is unconstrained. | |
virtual void | UnconstrainedFontSizeOff () |
Set/Get whether the font size of title and labels is unconstrained. | |
Public Member Functions inherited from vtkActor2D | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. | |
vtkActor2D * | NewInstance () const |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
Does this prop have some translucent polygonal geometry? | |
vtkProperty2D * | GetProperty () |
Returns this actor's vtkProperty2D. | |
virtual void | SetProperty (vtkProperty2D *) |
Set this vtkProp's vtkProperty2D. | |
void | SetDisplayPosition (int, int) |
Set the Prop2D's position in display coordinates. | |
vtkMTimeType | GetMTime () override |
Return this objects MTime. | |
void | GetActors2D (vtkPropCollection *pc) override |
For some exporters and other other operations we must be able to collect all the actors or volumes. | |
void | ShallowCopy (vtkProp *prop) override |
Shallow copy of this vtkActor2D. | |
void | ReleaseGraphicsResources (vtkWindow *) override |
Release any graphics resources that are being consumed by this actor. | |
virtual vtkCoordinate * | GetActualPositionCoordinate () |
Return the actual vtkCoordinate reference that the mapper should use to position the actor. | |
virtual vtkCoordinate * | GetActualPosition2Coordinate () |
Return the actual vtkCoordinate reference that the mapper should use to position the actor. | |
virtual void | SetMapper (vtkMapper2D *mapper) |
Set/Get the vtkMapper2D which defines the data to be drawn. | |
virtual vtkMapper2D * | GetMapper () |
Set/Get the vtkMapper2D which defines the data to be drawn. | |
virtual void | SetLayerNumber (int) |
Set/Get the layer number in the overlay planes into which to render. | |
virtual int | GetLayerNumber () |
Set/Get the layer number in the overlay planes into which to render. | |
virtual vtkCoordinate * | GetPositionCoordinate () |
Get the PositionCoordinate instance of vtkCoordinate. | |
virtual void | SetPosition (float x[2]) |
Get the PositionCoordinate instance of vtkCoordinate. | |
virtual void | SetPosition (float x, float y) |
Get the PositionCoordinate instance of vtkCoordinate. | |
virtual float * | GetPosition () |
Get the PositionCoordinate instance of vtkCoordinate. | |
virtual vtkCoordinate * | GetPosition2Coordinate () |
Access the Position2 instance variable. | |
virtual void | SetPosition2 (float x[2]) |
Access the Position2 instance variable. | |
virtual void | SetPosition2 (float x, float y) |
Access the Position2 instance variable. | |
virtual float * | GetPosition2 () |
Access the Position2 instance variable. | |
void | SetWidth (double w) |
Set/Get the height and width of the Actor2D. | |
double | GetWidth () |
Set/Get the height and width of the Actor2D. | |
void | SetHeight (double h) |
Set/Get the height and width of the Actor2D. | |
double | GetHeight () |
Set/Get the height and width of the Actor2D. | |
Public Member Functions inherited from vtkProp | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. | |
vtkProp * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. | |
virtual void | GetActors (vtkPropCollection *) |
For some exporters and other other operations we must be able to collect all the actors or volumes. | |
virtual void | GetActors2D (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual void | Pick () |
Method fires PickEvent if the prop is picked. | |
virtual vtkMTimeType | GetRedrawMTime () |
Return the mtime of anything that would cause the rendered image to appear differently. | |
virtual double * | GetBounds () |
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). | |
virtual void | ShallowCopy (vtkProp *prop) |
Shallow copy of this vtkProp. | |
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
These methods are used by subclasses to place a matrix (if any) in the prop prior to rendering. | |
virtual vtkMatrix4x4 * | GetMatrix () |
virtual bool | HasKeys (vtkInformation *requiredKeys) |
Tells if the prop has all the required keys. | |
virtual int | RenderOpaqueGeometry (vtkViewport *) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS All concrete subclasses must be able to render themselves. | |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
virtual int | RenderVolumetricGeometry (vtkViewport *) |
virtual int | RenderOverlay (vtkViewport *) |
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
Render the opaque geometry only if the prop has all the requiredKeys. | |
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
Render the translucent polygonal geometry only if the prop has all the requiredKeys. | |
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
Render the volumetric geometry only if the prop has all the requiredKeys. | |
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
Render in the overlay of the viewport only if the prop has all the requiredKeys. | |
virtual vtkTypeBool | HasTranslucentPolygonalGeometry () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS Does this prop have some translucent polygonal geometry? This method is called during the rendering process to know if there is some translucent polygonal geometry. | |
virtual vtkTypeBool | HasOpaqueGeometry () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS Does this prop have some opaque geometry? This method is called during the rendering process to know if there is some opaque geometry. | |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being consumed by this actor. | |
virtual double | GetEstimatedRenderTime (vtkViewport *) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS The EstimatedRenderTime may be used to select between different props, for example in LODProp it is used to select the level-of-detail. | |
virtual double | GetEstimatedRenderTime () |
virtual void | SetEstimatedRenderTime (double t) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS This method is used by, for example, the vtkLODProp3D in order to initialize the estimated render time at start-up to some user defined value. | |
virtual void | RestoreEstimatedRenderTime () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS When the EstimatedRenderTime is first set to 0.0 (in the SetAllocatedRenderTime method) the old value is saved. | |
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS This method is intended to allow the renderer to add to the EstimatedRenderTime in props that require information that the renderer has in order to do this. | |
void | SetRenderTimeMultiplier (double t) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Get/Set the multiplier for the render time. | |
virtual double | GetRenderTimeMultiplier () |
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Used to construct assembly paths and perform part traversal. | |
virtual bool | GetSupportsSelection () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Used by vtkHardwareSelector to determine if the prop supports hardware selection. | |
virtual void | ProcessSelectorPixelBuffers (vtkHardwareSelector *, std::vector< unsigned int > &) |
allows a prop to update a selections color buffers | |
virtual void | SetVisibility (vtkTypeBool) |
Set/Get visibility of this vtkProp. | |
virtual vtkTypeBool | GetVisibility () |
Set/Get visibility of this vtkProp. | |
virtual void | VisibilityOn () |
Set/Get visibility of this vtkProp. | |
virtual void | VisibilityOff () |
Set/Get visibility of this vtkProp. | |
virtual void | SetPickable (vtkTypeBool) |
Set/Get the pickable instance variable. | |
virtual vtkTypeBool | GetPickable () |
Set/Get the pickable instance variable. | |
virtual void | PickableOn () |
Set/Get the pickable instance variable. | |
virtual void | PickableOff () |
Set/Get the pickable instance variable. | |
virtual void | SetDragable (vtkTypeBool) |
Set/Get the value of the dragable instance variable. | |
virtual vtkTypeBool | GetDragable () |
Set/Get the value of the dragable instance variable. | |
virtual void | DragableOn () |
Set/Get the value of the dragable instance variable. | |
virtual void | DragableOff () |
Set/Get the value of the dragable instance variable. | |
virtual void | SetUseBounds (bool) |
In case the Visibility flag is true, tell if the bounds of this prop should be taken into account or ignored during the computation of other bounding boxes, like in vtkRenderer::ResetCamera(). | |
virtual bool | GetUseBounds () |
In case the Visibility flag is true, tell if the bounds of this prop should be taken into account or ignored during the computation of other bounding boxes, like in vtkRenderer::ResetCamera(). | |
virtual void | UseBoundsOn () |
In case the Visibility flag is true, tell if the bounds of this prop should be taken into account or ignored during the computation of other bounding boxes, like in vtkRenderer::ResetCamera(). | |
virtual void | UseBoundsOff () |
In case the Visibility flag is true, tell if the bounds of this prop should be taken into account or ignored during the computation of other bounding boxes, like in vtkRenderer::ResetCamera(). | |
virtual void | InitPathTraversal () |
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker). | |
virtual vtkAssemblyPath * | GetNextPath () |
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker). | |
virtual int | GetNumberOfPaths () |
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker). | |
virtual vtkInformation * | GetPropertyKeys () |
Set/Get property keys. | |
virtual void | SetPropertyKeys (vtkInformation *keys) |
Set/Get property keys. | |
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS The renderer may use the allocated rendering time to determine how to render this actor. | |
virtual double | GetAllocatedRenderTime () |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS. | |
virtual int | GetNumberOfConsumers () |
Get the number of consumers. | |
void | AddConsumer (vtkObject *c) |
Add or remove or get or check a consumer,. | |
void | RemoveConsumer (vtkObject *c) |
Add or remove or get or check a consumer,. | |
vtkObject * | GetConsumer (int i) |
Add or remove or get or check a consumer,. | |
int | IsConsumer (vtkObject *c) |
Add or remove or get or check a consumer,. | |
virtual void | SetShaderProperty (vtkShaderProperty *property) |
Set/Get the shader property. | |
virtual vtkShaderProperty * | GetShaderProperty () |
Set/Get the shader property. | |
virtual bool | IsRenderingTranslucentPolygonalGeometry () |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. | |
virtual void | DebugOff () |
Turn debugging output off. | |
bool | GetDebug () |
Get the value of the debug flag. | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. | |
virtual void | Modified () |
Update the modification time for this object. | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
vtkTypeBool | InvokeEvent (unsigned long event) |
vtkTypeBool | InvokeEvent (const char *event) |
std::string | GetObjectDescription () const override |
The object description printed in messages and PrintSelf output. | |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. | |
vtkTypeBool | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. | |
vtkTypeBool | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. | |
virtual void | SetObjectName (const std::string &objectName) |
Set/get the name of this object for reporting purposes. | |
virtual std::string | GetObjectName () const |
Set/get the name of this object for reporting purposes. | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. | |
virtual std::string | GetObjectDescription () const |
The object description printed in messages and PrintSelf output. | |
virtual vtkTypeBool | IsA (const char *name) |
Return 1 if this class is the same type of (or a subclass of) the named class. | |
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). | |
virtual void | Delete () |
Delete a VTK object. | |
virtual void | FastDelete () |
Delete a reference to this object. | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. | |
void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). | |
int | GetReferenceCount () |
Return the current reference count of this object. | |
void | SetReferenceCount (int) |
Sets the reference count. | |
bool | GetIsInMemkind () const |
A local state flag that remembers whether this object lives in the normal or extended memory space. | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. | |
virtual bool | UsesGarbageCollector () const |
Indicate whether the class uses vtkGarbageCollector or not. | |
Static Public Member Functions | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkScalarBarActor * | SafeDownCast (vtkObjectBase *o) |
static vtkScalarBarActor * | New () |
Instantiate object with 64 maximum colors; 5 labels; %%-#6.3g label format, no title, and vertical orientation. | |
Static Public Member Functions inherited from vtkActor2D | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkActor2D * | SafeDownCast (vtkObjectBase *o) |
static vtkActor2D * | New () |
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at layer 0. | |
Static Public Member Functions inherited from vtkProp | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationIntegerKey * | GeneralTextureUnit () |
Optional Key Indicating the texture unit for general texture mapping Old OpenGL was a state machine where you would push or pop items. | |
static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
Optional Key Indicating the texture transform for general texture mapping Old OpenGL was a state machine where you would push or pop items. | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. | |
static void | SetGlobalWarningDisplay (vtkTypeBool val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
static vtkTypeBool | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. | |
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. | |
static void | SetMemkindDirectory (const char *directoryname) |
The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. | |
static bool | GetUsingMemkind () |
A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkScalarBarActor () | |
~vtkScalarBarActor () override | |
virtual void | RebuildLayout (vtkViewport *viewport) |
Called from within RenderOpaqueGeometry when the internal state members need to be updated before rendering. | |
virtual int | RebuildLayoutIfNeeded (vtkViewport *viewport) |
Calls RebuildLayout if it is needed such as when positions etc have changed. | |
virtual void | FreeLayoutStorage () |
Free internal storage used by the previous layout. | |
virtual void | ComputeFrame () |
If the scalar bar should be inset into a frame or rendered with a solid background, this method will inset the outermost scalar bar rectangle by a small amount to avoid having the scalar bar illustration overlap any edges. | |
virtual void | ComputeScalarBarThickness () |
Determine how thick the scalar bar should be (on an axis perpendicular to the direction in which scalar values vary). | |
virtual void | ComputeSwatchPad () |
Compute a correct SwatchPad. | |
virtual void | LayoutNanSwatch () |
virtual void | LayoutBelowRangeSwatch () |
Determine the size of the Below Range if it is to be rendered. | |
virtual void | LayoutAboveRangeSwatch () |
Determine the size of the Above Range if it is to be rendered. | |
virtual void | LayoutAboveRangeSwatchPosn () |
Determine the position of the Above Range if it is to be rendered. | |
virtual void | PrepareTitleText () |
Set the title actor's input to the latest title (and subtitle) text. | |
virtual void | LayoutTitle () |
Determine the position and size of the scalar bar title box. | |
virtual void | LayoutForUnconstrainedFont () |
This method sets the title and tick-box size and position for the UnconstrainedFontSize mode. | |
virtual void | ComputeScalarBarLength () |
Determine how long the scalar bar should be (on an axis parallel to the direction in which scalar values vary). | |
virtual void | LayoutTicks () |
Determine the size and placement of any tick marks to be rendered. | |
virtual void | LayoutAnnotations () |
This method must lay out annotation text and leader lines so they do not overlap. | |
virtual void | ConfigureAnnotations () |
Generate/configure the annotation labels using the laid-out geometry. | |
virtual void | ConfigureFrame () |
Generate/configure the representation of the frame from laid-out geometry. | |
virtual void | DrawBoxes () |
For debugging, add placement boxes to the frame polydata. | |
virtual void | ConfigureScalarBar () |
Generate/configure the scalar bar representation from laid-out geometry. | |
virtual void | ConfigureTitle () |
Generate/configure the title actor using the laid-out geometry. | |
virtual void | ConfigureTicks () |
Generate/configure the tick-mark actors using the laid-out geometry. | |
virtual void | ConfigureNanSwatch () |
Generate/configure the NaN swatch using the laid-out geometry. | |
virtual void | ConfigureAboveBelowRangeSwatch (bool above) |
Generate/configure the above/below range swatch using the laid-out geometry. | |
virtual void | EditAnnotations () |
Subclasses may override this method to alter this->P->Labels, allowing the addition and removal of annotations. | |
virtual void | SizeTitle (double *titleSize, int *size, vtkViewport *viewport) |
Compute the best size for the legend title. | |
int | MapAnnotationLabels (vtkScalarsToColors *lkup, double start, double delta, const double *range) |
Allocate actors for lookup table annotations and position them properly. | |
int | PlaceAnnotationsVertically (double barX, double barY, double barWidth, double barHeight, double delta, double pad) |
This method is called by ConfigureAnnotationLabels when Orientation is VTK_ORIENT_VERTICAL. | |
int | PlaceAnnotationsHorizontally (double barX, double barY, double barWidth, double barHeight, double delta, double pad) |
This method is called by ConfigureAnnotationLabels when Orientation is VTK_ORIENT_HORIZONTAL. | |
Protected Member Functions inherited from vtkActor2D | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkActor2D () | |
~vtkActor2D () override | |
Protected Member Functions inherited from vtkProp | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkProp () | |
~vtkProp () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | ReportReferences (vtkGarbageCollector *) |
virtual void | ObjectFinalize () |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
int | MaximumNumberOfColors |
User-changeable settings. | |
int | NumberOfLabels |
User-changeable settings. | |
int | NumberOfLabelsBuilt |
User-changeable settings. | |
int | Orientation |
User-changeable settings. | |
vtkDoubleArray * | CustomLabels = nullptr |
User-changeable settings. | |
bool | UseCustomLabels = false |
User-changeable settings. | |
vtkTypeBool | DrawBackground |
User-changeable settings. | |
vtkTypeBool | DrawFrame |
User-changeable settings. | |
vtkTypeBool | DrawColorBar |
User-changeable settings. | |
vtkTypeBool | DrawTickLabels |
User-changeable settings. | |
vtkTypeBool | DrawAnnotations |
User-changeable settings. | |
vtkTypeBool | DrawNanAnnotation |
User-changeable settings. | |
vtkTypeBool | AnnotationTextScaling |
User-changeable settings. | |
vtkTypeBool | FixedAnnotationLeaderLineColor |
User-changeable settings. | |
vtkProperty2D * | BackgroundProperty |
User-changeable settings. | |
vtkProperty2D * | FrameProperty |
User-changeable settings. | |
char * | Title |
User-changeable settings. | |
char * | ComponentTitle |
User-changeable settings. | |
char * | LabelFormat |
User-changeable settings. | |
vtkTypeBool | UseOpacity |
User-changeable settings. | |
double | TextureGridWidth |
User-changeable settings. | |
int | TextPosition |
User-changeable settings. | |
char * | NanAnnotation |
User-changeable settings. | |
char * | BelowRangeAnnotation |
User-changeable settings. | |
char * | AboveRangeAnnotation |
User-changeable settings. | |
double | AnnotationLeaderPadding |
User-changeable settings. | |
int | MaximumWidthInPixels |
User-changeable settings. | |
int | MaximumHeightInPixels |
User-changeable settings. | |
int | TextPad |
User-changeable settings. | |
int | VerticalTitleSeparation |
User-changeable settings. | |
double | BarRatio |
User-changeable settings. | |
double | TitleRatio |
User-changeable settings. | |
bool | UnconstrainedFontSize |
User-changeable settings. | |
bool | ForceVerticalTitle |
User-changeable settings. | |
bool | DrawBelowRangeSwatch |
User-changeable settings. | |
bool | DrawAboveRangeSwatch |
User-changeable settings. | |
vtkTimeStamp | BuildTime |
Internal state used for rendering. | |
int | LastSize [2] |
Projected size in viewport coordinates of last build. | |
int | LastOrigin [2] |
Projected origin (viewport coordinates) of last build. | |
vtkScalarBarActorInternal * | P |
Containers shared with subclasses. | |
vtkScalarsToColors * | LookupTable |
The object this actor illustrates. | |
vtkPiecewiseFunction * | OpacityFunction |
The opacity function if UseOpacity is true. | |
vtkTextProperty * | TitleTextProperty |
Font for the legend title. | |
vtkTextProperty * | LabelTextProperty |
Font for tick labels. | |
vtkTextProperty * | AnnotationTextProperty |
Font for annotation labels. | |
vtkTextActor * | TitleActor |
The legend title text renderer. | |
vtkPolyData * | ScalarBar |
Polygon(s) colored by LookupTable. | |
vtkPolyDataMapper2D * | ScalarBarMapper |
Mapper for ScalarBar. | |
vtkActor2D * | ScalarBarActor |
Actor for ScalarBar. | |
vtkPolyData * | TexturePolyData |
Polygon colored when UseOpacity is true. | |
vtkTexture * | Texture |
Color data for TexturePolyData. | |
vtkTexturedActor2D * | TextureActor |
Actor for TexturePolyData. | |
vtkPolyData * | Background |
Polygon used to fill the background. | |
vtkPolyDataMapper2D * | BackgroundMapper |
Mapper for Background. | |
vtkActor2D * | BackgroundActor |
Actor for Background. | |
vtkPolyData * | Frame |
Polyline used to highlight frame. | |
vtkPolyDataMapper2D * | FrameMapper |
Mapper for Frame. | |
vtkActor2D * | FrameActor |
Actor for Frame. | |
Protected Attributes inherited from vtkActor2D | |
vtkMapper2D * | Mapper |
int | LayerNumber |
vtkProperty2D * | Property |
vtkCoordinate * | PositionCoordinate |
vtkCoordinate * | Position2Coordinate |
Protected Attributes inherited from vtkProp | |
vtkTypeBool | Visibility |
vtkTypeBool | Pickable |
vtkTypeBool | Dragable |
bool | UseBounds |
double | AllocatedRenderTime |
double | EstimatedRenderTime |
double | SavedEstimatedRenderTime |
double | RenderTimeMultiplier |
int | NumberOfConsumers |
vtkObject ** | Consumers |
vtkAssemblyPaths * | Paths |
vtkInformation * | PropertyKeys |
vtkShaderProperty * | ShaderProperty |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
std::string | ObjectName |
Protected Attributes inherited from vtkObjectBase | |
std::atomic< int32_t > | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Additional Inherited Members | |
Static Protected Member Functions inherited from vtkObjectBase | |
static vtkMallocingFunction | GetCurrentMallocFunction () |
static vtkReallocingFunction | GetCurrentReallocFunction () |
static vtkFreeingFunction | GetCurrentFreeFunction () |
static vtkFreeingFunction | GetAlternateFreeFunction () |
Create a scalar bar with labels.
vtkScalarBarActor creates a scalar bar with tick marks. A scalar bar is a legend that indicates to the viewer the correspondence between color value and data value. The legend consists of a rectangular bar made of rectangular pieces each colored a constant value. Since vtkScalarBarActor is a subclass of vtkActor2D, it is drawn in the image plane (i.e., in the renderer's viewport) on top of the 3D graphics window.
To use vtkScalarBarActor you must associate a vtkScalarsToColors (or subclass) with it. The lookup table defines the colors and the range of scalar values used to map scalar data. Typically, the number of colors shown in the scalar bar is not equal to the number of colors in the lookup table, in which case sampling of the lookup table is performed.
Other optional capabilities include specifying the fraction of the viewport size (both x and y directions) which will control the size of the scalar bar and the number of tick labels. The actual position of the scalar bar on the screen is controlled by using the vtkActor2D::SetPosition() method (by default the scalar bar is centered in the viewport). Other features include the ability to orient the scalar bar horizontally of vertically and controlling the format (printf style) with which to print the labels on the scalar bar. Also, the vtkScalarBarActor's property is applied to the scalar bar and annotations (including layer, and compositing operator).
Set the text property/attributes of the title and the labels through the vtkTextProperty objects associated to this actor.
Definition at line 181 of file vtkScalarBarActor.h.
Definition at line 184 of file vtkScalarBarActor.h.
anonymous enum |
Enumerator | |
---|---|
PrecedeScalarBar | |
SucceedScalarBar |
Definition at line 386 of file vtkScalarBarActor.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class.
Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkActor2D.
|
static |
|
protectedvirtual |
Reimplemented from vtkActor2D.
vtkScalarBarActor * vtkScalarBarActor::NewInstance | ( | ) | const |
|
overridevirtual |
Methods invoked by print to print information about the object including superclasses.
Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkActor2D.
|
static |
Instantiate object with 64 maximum colors; 5 labels; %%-#6.3g label format, no title, and vertical orientation.
The initial scalar bar size is (0.05 x 0.8) of the viewport size.
|
overridevirtual |
Draw the scalar bar and annotation text to the screen.
Reimplemented from vtkActor2D.
|
inlineoverridevirtual |
Draw the scalar bar and annotation text to the screen.
Reimplemented from vtkActor2D.
Definition at line 199 of file vtkScalarBarActor.h.
|
overridevirtual |
Draw the scalar bar and annotation text to the screen.
Reimplemented from vtkActor2D.
|
overridevirtual |
Does this prop have some translucent polygonal geometry?
Reimplemented from vtkActor2D.
|
overridevirtual |
Release any graphics resources that are being consumed by this actor.
The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkActor2D.
|
virtual |
Fills rect with the dimensions of the scalar bar in viewport coordinates.
Only the color bar is considered – text labels are not considered. rect is {xmin, xmax, width, height}
|
virtual |
Set/Get the lookup table to use.
The lookup table specifies the number of colors to use in the table (if not overridden), the scalar range, and any annotated values. Annotated values are rendered using vtkTextActor.
|
virtual |
Set/Get the lookup table to use.
The lookup table specifies the number of colors to use in the table (if not overridden), the scalar range, and any annotated values. Annotated values are rendered using vtkTextActor.
|
virtual |
Set/Get the piecewise function that denotes opacity function to map values through.
|
virtual |
Set/Get the piecewise function that denotes opacity function to map values through.
|
virtual |
Should be display the opacity as well.
This is displayed by changing the opacity of the scalar bar in accordance with the opacity of the given color. For clarity, a texture grid is placed in the background if Opacity is ON. You might also want to play with SetTextureGridWith in that case. [Default: off]
|
virtual |
Should be display the opacity as well.
This is displayed by changing the opacity of the scalar bar in accordance with the opacity of the given color. For clarity, a texture grid is placed in the background if Opacity is ON. You might also want to play with SetTextureGridWith in that case. [Default: off]
|
virtual |
Should be display the opacity as well.
This is displayed by changing the opacity of the scalar bar in accordance with the opacity of the given color. For clarity, a texture grid is placed in the background if Opacity is ON. You might also want to play with SetTextureGridWith in that case. [Default: off]
|
virtual |
Should be display the opacity as well.
This is displayed by changing the opacity of the scalar bar in accordance with the opacity of the given color. For clarity, a texture grid is placed in the background if Opacity is ON. You might also want to play with SetTextureGridWith in that case. [Default: off]
|
virtual |
Set/Get the maximum number of scalar bar segments to show.
This may differ from the number of colors in the lookup table, in which case the colors are samples from the lookup table.
|
virtual |
Set/Get the maximum number of scalar bar segments to show.
This may differ from the number of colors in the lookup table, in which case the colors are samples from the lookup table.
|
virtual |
Set/Get the number of automatic tick labels to show.
|
virtual |
Set/Get the number of automatic tick labels to show.
|
virtual |
Set/Get the fixed locations to use.
|
virtual |
Set/Get the fixed locations to use.
|
virtual |
Get/Set whether custom labels will be used.
bonds. Default: Off.
|
virtual |
Get/Set whether custom labels will be used.
bonds. Default: Off.
|
virtual |
Get/Set whether custom labels will be used.
bonds. Default: Off.
|
virtual |
Get/Set whether custom labels will be used.
bonds. Default: Off.
|
virtual |
Control the orientation of the scalar bar.
|
virtual |
Control the orientation of the scalar bar.
|
inline |
Control the orientation of the scalar bar.
Definition at line 305 of file vtkScalarBarActor.h.
|
inline |
Control the orientation of the scalar bar.
Definition at line 306 of file vtkScalarBarActor.h.
|
virtual |
Force the scalar bar title to be vertical.
|
virtual |
Force the scalar bar title to be vertical.
|
virtual |
Set/Get the title text property.
|
virtual |
Set/Get the title text property.
|
virtual |
Set/Get the labels text property.
|
virtual |
Set/Get the labels text property.
|
virtual |
Set/Get the annotation text property.
|
virtual |
Set/Get the annotation text property.
|
virtual |
Set/Get the format with which to print the labels on the scalar bar.
|
virtual |
Set/Get the format with which to print the labels on the scalar bar.
|
virtual |
Set/Get the title of the scalar bar actor,.
|
virtual |
Set/Get the title of the scalar bar actor,.
|
virtual |
Set/Get the title for the component that is selected,.
|
virtual |
Set/Get the title for the component that is selected,.
|
overridevirtual |
Shallow copy of a scalar bar actor.
Overloads the virtual vtkProp method.
Reimplemented from vtkActor2D.
|
virtual |
Set the width of the texture grid.
Used only if UseOpacity is ON.
|
virtual |
Set the width of the texture grid.
Used only if UseOpacity is ON.
|
virtual |
Get the texture actor.
. you may want to change some properties on it
|
virtual |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction.
Thus, succeed implies the that the text is above scalar bar if the orientation is horizontal or right of scalar bar if the orientation is vertical. Precede is the opposite.
|
virtual |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction.
Thus, succeed implies the that the text is above scalar bar if the orientation is horizontal or right of scalar bar if the orientation is vertical. Precede is the opposite.
|
inlinevirtual |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction.
Thus, succeed implies the that the text is above scalar bar if the orientation is horizontal or right of scalar bar if the orientation is vertical. Precede is the opposite.
Definition at line 403 of file vtkScalarBarActor.h.
|
inlinevirtual |
Should the title and tick marks precede the scalar bar or succeed it? This is measured along the viewport coordinate direction perpendicular to the long axis of the scalar bar, not the reading direction.
Thus, succeed implies the that the text is above scalar bar if the orientation is horizontal or right of scalar bar if the orientation is vertical. Precede is the opposite.
Definition at line 407 of file vtkScalarBarActor.h.
|
virtual |
Set/Get the maximum width and height in pixels.
Specifying the size as a relative fraction of the viewport can sometimes undesirably stretch the size of the actor too much. These methods allow the user to set bounds on the maximum size of the scalar bar in pixels along any direction. Defaults to unbounded.
|
virtual |
Set/Get the maximum width and height in pixels.
Specifying the size as a relative fraction of the viewport can sometimes undesirably stretch the size of the actor too much. These methods allow the user to set bounds on the maximum size of the scalar bar in pixels along any direction. Defaults to unbounded.
|
virtual |
Set/Get the maximum width and height in pixels.
Specifying the size as a relative fraction of the viewport can sometimes undesirably stretch the size of the actor too much. These methods allow the user to set bounds on the maximum size of the scalar bar in pixels along any direction. Defaults to unbounded.
|
virtual |
Set/Get the maximum width and height in pixels.
Specifying the size as a relative fraction of the viewport can sometimes undesirably stretch the size of the actor too much. These methods allow the user to set bounds on the maximum size of the scalar bar in pixels along any direction. Defaults to unbounded.
|
virtual |
Set/get the padding between the scalar bar and the text annotations.
This space is used to draw leader lines. The default is 8 pixels.
|
virtual |
Set/get the padding between the scalar bar and the text annotations.
This space is used to draw leader lines. The default is 8 pixels.
|
virtual |
Set/get whether text annotations should be rendered or not.
Currently, this only affects rendering when IndexedLookup is true. The default is true.
|
virtual |
Set/get whether text annotations should be rendered or not.
Currently, this only affects rendering when IndexedLookup is true. The default is true.
|
virtual |
Set/get whether text annotations should be rendered or not.
Currently, this only affects rendering when IndexedLookup is true. The default is true.
|
virtual |
Set/get whether text annotations should be rendered or not.
Currently, this only affects rendering when IndexedLookup is true. The default is true.
|
virtual |
Set/get whether the NaN annotation should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the NaN annotation should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the NaN annotation should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the NaN annotation should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the Below range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the Below range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the Below range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the Below range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get the annotation text for "Below Range" values.
|
virtual |
Set/get the annotation text for "Below Range" values.
|
virtual |
Set/get whether the Above range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the Above range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the Above range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get whether the Above range swatch should be rendered or not.
This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get the annotation text for "Above Range Swatch" values.
|
virtual |
Set/get the annotation text for "Above Range Swatch" values.
|
virtual |
Set/get how leader lines connecting annotations to values should be colored.
When true, leader lines are all the same color (and match the LabelTextProperty color). When false, leader lines take on the color of the value they correspond to. This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get how leader lines connecting annotations to values should be colored.
When true, leader lines are all the same color (and match the LabelTextProperty color). When false, leader lines take on the color of the value they correspond to. This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get how leader lines connecting annotations to values should be colored.
When true, leader lines are all the same color (and match the LabelTextProperty color). When false, leader lines take on the color of the value they correspond to. This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get how leader lines connecting annotations to values should be colored.
When true, leader lines are all the same color (and match the LabelTextProperty color). When false, leader lines take on the color of the value they correspond to. This only affects rendering when DrawAnnotations is true. The default is false.
|
virtual |
Set/get the annotation text for "NaN" values.
|
virtual |
Set/get the annotation text for "NaN" values.
|
virtual |
Set/get whether annotation labels should be scaled with the viewport.
The default value is 0 (no scaling). If non-zero, the vtkTextActor instances used to render annotation labels will have their TextScaleMode set to viewport-based scaling, which nonlinearly scales font size with the viewport size.
|
virtual |
Set/get whether annotation labels should be scaled with the viewport.
The default value is 0 (no scaling). If non-zero, the vtkTextActor instances used to render annotation labels will have their TextScaleMode set to viewport-based scaling, which nonlinearly scales font size with the viewport size.
|
virtual |
Set/get whether annotation labels should be scaled with the viewport.
The default value is 0 (no scaling). If non-zero, the vtkTextActor instances used to render annotation labels will have their TextScaleMode set to viewport-based scaling, which nonlinearly scales font size with the viewport size.
|
virtual |
Set/get whether annotation labels should be scaled with the viewport.
The default value is 0 (no scaling). If non-zero, the vtkTextActor instances used to render annotation labels will have their TextScaleMode set to viewport-based scaling, which nonlinearly scales font size with the viewport size.
|
virtual |
Set/Get whether a background should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether a background should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether a background should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether a background should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether a frame should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether a frame should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether a frame should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether a frame should be drawn around the scalar bar.
Default is off.
|
virtual |
Set/Get whether the color bar should be drawn.
If off, only the tickmarks and text will be drawn. Default is on.
|
virtual |
Set/Get whether the color bar should be drawn.
If off, only the tickmarks and text will be drawn. Default is on.
|
virtual |
Set/Get whether the color bar should be drawn.
If off, only the tickmarks and text will be drawn. Default is on.
|
virtual |
Set/Get whether the color bar should be drawn.
If off, only the tickmarks and text will be drawn. Default is on.
|
virtual |
Set/Get whether the tick labels should be drawn.
Default is on.
|
virtual |
Set/Get whether the tick labels should be drawn.
Default is on.
|
virtual |
Set/Get whether the tick labels should be drawn.
Default is on.
|
virtual |
Set/Get whether the tick labels should be drawn.
Default is on.
|
virtual |
Set/Get the background property.
|
virtual |
Set/Get the background property.
|
virtual |
Set/Get the frame property.
|
virtual |
Set/Get the frame property.
|
virtual |
Set/get the amount of padding around text boxes.
The default is 1 pixel.
|
virtual |
Set/get the amount of padding around text boxes.
The default is 1 pixel.
|
virtual |
Set/get the margin in pixels, between the title and the bar, when the Orientation is vertical.
The default is 0 pixels.
|
virtual |
Set/get the margin in pixels, between the title and the bar, when the Orientation is vertical.
The default is 0 pixels.
|
virtual |
Set/get the thickness of the color bar relative to the widget frame.
The default is 0.375 and must always be in the range ]0, 1[.
|
virtual |
Set/get the thickness of the color bar relative to the widget frame.
The default is 0.375 and must always be in the range ]0, 1[.
|
virtual |
Set/get the ratio of the title height to the tick label height (used only when the Orientation is horizontal).
The default is 0.5, which attempts to make the labels and title the same size. This must be a number in the range ]0, 1[.
|
virtual |
Set/get the ratio of the title height to the tick label height (used only when the Orientation is horizontal).
The default is 0.5, which attempts to make the labels and title the same size. This must be a number in the range ]0, 1[.
|
virtual |
Set/Get whether the font size of title and labels is unconstrained.
Default is off. When it is constrained, the size of the scalar bar will constrain the font size. When it is not, the size of the font will always be respected. Using custom labels will force this mode to be on.
|
virtual |
Set/Get whether the font size of title and labels is unconstrained.
Default is off. When it is constrained, the size of the scalar bar will constrain the font size. When it is not, the size of the font will always be respected. Using custom labels will force this mode to be on.
|
virtual |
Set/Get whether the font size of title and labels is unconstrained.
Default is off. When it is constrained, the size of the scalar bar will constrain the font size. When it is not, the size of the font will always be respected. Using custom labels will force this mode to be on.
|
virtual |
Set/Get whether the font size of title and labels is unconstrained.
Default is off. When it is constrained, the size of the scalar bar will constrain the font size. When it is not, the size of the font will always be respected. Using custom labels will force this mode to be on.
|
protectedvirtual |
Called from within RenderOpaqueGeometry when the internal state members need to be updated before rendering.
This method invokes many virtual methods that first lay out the scalar bar and then use the layout to position actors and create datasets used to represent the scalar bar. Specifically, it invokes: FreeLayoutStorage, ComputeFrame, ComputeScalarBarThickness, LayoutNanSwatch, PrepareTitleText, LayoutTitle, ComputeScalarBarLength, LayoutTicks, and LayoutAnnotations to perform the layout step. Then, it invokes ConfigureAnnotations, ConfigureFrame, ConfigureScalarBar, ConfigureTitle, ConfigureTicks, and ConfigureNanSwatch to create and position actors used to render portions of the scalar bar.
By overriding one or more of these virtual methods, subclasses may change the appearance of the scalar bar.
In the layout phase, text actors must have their text properties and input strings updated, but the position of the actors should not be set or relied upon as subsequent layout steps may alter their placement.
|
protectedvirtual |
Calls RebuildLayout if it is needed such as when positions etc have changed.
Return 1 on success zero on error
|
protectedvirtual |
Free internal storage used by the previous layout.
|
protectedvirtual |
If the scalar bar should be inset into a frame or rendered with a solid background, this method will inset the outermost scalar bar rectangle by a small amount to avoid having the scalar bar illustration overlap any edges.
This method must set the frame coordinates (this->P->Frame).
|
protectedvirtual |
Determine how thick the scalar bar should be (on an axis perpendicular to the direction in which scalar values vary).
This method must set the scalar bar thickness (this->P->ScalarBarBox.Size[0]). It may depend on layout performed by ComputeFrame (i.e., the frame coordinates in this->P->Frame).
|
protectedvirtual |
Compute a correct SwatchPad.
|
protectedvirtual |
|
protectedvirtual |
Determine the size of the Below Range if it is to be rendered.
This method must set this->P->BelowSwatchSize and this->P->BelowBox. It may depend on layout performed by ComputeScalarBarThickness.
|
protectedvirtual |
Determine the size of the Above Range if it is to be rendered.
This method must set this->P->AboveBox. It may depend on layout performed by ComputeScalarBarThickness.
|
protectedvirtual |
Determine the position of the Above Range if it is to be rendered.
This method must set this->P->AboveRangeSize. It may depend on layout performed by ComputeScalarBarLength.
|
protectedvirtual |
Set the title actor's input to the latest title (and subtitle) text.
|
protectedvirtual |
Determine the position and size of the scalar bar title box.
This method must set this->P->TitleBox It may depend on layout performed by LayoutNanSwatch. If useTickBox is true, it should increase the target area for the label to touch the tick box. It is called in this way when the tick labels are small due to constraints other than the title box.
|
protectedvirtual |
This method sets the title and tick-box size and position for the UnconstrainedFontSize mode.
|
protectedvirtual |
Determine how long the scalar bar should be (on an axis parallel to the direction in which scalar values vary).
This method must set this->P->ScalarBarBox.Size[1] and should estimate this->P->ScalarBarBox.Posn. It may depend on layout performed by LayoutTitle.
|
protectedvirtual |
Determine the size and placement of any tick marks to be rendered.
This method must set this->P->TickBox. It may depend on layout performed by ComputeScalarBarLength.
The default implementation creates exactly this->NumberOfLabels tick marks, uniformly spaced on a linear or logarithmic scale, or creates them based on the numbers and values this->CustomLabels when this->UseCustomLabels is true.
|
protectedvirtual |
This method must lay out annotation text and leader lines so they do not overlap.
This method must set this->P->AnnotationAnchors. It may depend on layout performed by LayoutTicks.
|
protectedvirtual |
Generate/configure the annotation labels using the laid-out geometry.
|
protectedvirtual |
Generate/configure the representation of the frame from laid-out geometry.
|
protectedvirtual |
For debugging, add placement boxes to the frame polydata.
|
protectedvirtual |
Generate/configure the scalar bar representation from laid-out geometry.
|
protectedvirtual |
Generate/configure the title actor using the laid-out geometry.
|
protectedvirtual |
Generate/configure the tick-mark actors using the laid-out geometry.
|
protectedvirtual |
Generate/configure the NaN swatch using the laid-out geometry.
Currently the NaN swatch is rendered by the same actor as the scalar bar. This may change in the future.
|
protectedvirtual |
Generate/configure the above/below range swatch using the laid-out geometry.
|
inlineprotectedvirtual |
Subclasses may override this method to alter this->P->Labels, allowing the addition and removal of annotations.
The member maps viewport coordinates along the long axis of the scalar bar to text (which may include MathText; see vtkTextActor). It is a single-valued map, so you must perturb the coordinate if you wish multiple labels to annotate the same position. Each entry in this->P->Labels must have a matching entry in this->P->LabelColors.
Definition at line 841 of file vtkScalarBarActor.h.
|
protectedvirtual |
Compute the best size for the legend title.
This guarantees that the title will fit within the frame defined by Position and Position2.
|
protected |
Allocate actors for lookup table annotations and position them properly.
|
protected |
This method is called by ConfigureAnnotationLabels when Orientation is VTK_ORIENT_VERTICAL.
|
protected |
This method is called by ConfigureAnnotationLabels when Orientation is VTK_ORIENT_HORIZONTAL.
|
protected |
User-changeable settings.
Definition at line 870 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 871 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 872 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 873 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 874 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 875 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 876 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 877 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 878 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 879 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 880 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 881 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 882 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 883 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 884 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 885 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 886 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 887 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 888 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 889 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 890 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 891 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 892 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 893 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 894 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 895 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 896 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 897 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 898 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 899 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 900 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 901 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 902 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 903 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 905 of file vtkScalarBarActor.h.
|
protected |
User-changeable settings.
Definition at line 906 of file vtkScalarBarActor.h.
|
protected |
Internal state used for rendering.
Last time internal state changed.
Definition at line 911 of file vtkScalarBarActor.h.
|
protected |
Projected size in viewport coordinates of last build.
Definition at line 912 of file vtkScalarBarActor.h.
|
protected |
Projected origin (viewport coordinates) of last build.
Definition at line 913 of file vtkScalarBarActor.h.
|
protected |
Containers shared with subclasses.
Definition at line 915 of file vtkScalarBarActor.h.
|
protected |
The object this actor illustrates.
Definition at line 917 of file vtkScalarBarActor.h.
|
protected |
The opacity function if UseOpacity is true.
Definition at line 918 of file vtkScalarBarActor.h.
|
protected |
Font for the legend title.
Definition at line 920 of file vtkScalarBarActor.h.
|
protected |
Font for tick labels.
Definition at line 921 of file vtkScalarBarActor.h.
|
protected |
Font for annotation labels.
Definition at line 922 of file vtkScalarBarActor.h.
|
protected |
The legend title text renderer.
Definition at line 923 of file vtkScalarBarActor.h.
|
protected |
Polygon(s) colored by LookupTable.
Definition at line 925 of file vtkScalarBarActor.h.
|
protected |
Mapper for ScalarBar.
Definition at line 926 of file vtkScalarBarActor.h.
|
protected |
Actor for ScalarBar.
Definition at line 927 of file vtkScalarBarActor.h.
|
protected |
Polygon colored when UseOpacity is true.
Definition at line 928 of file vtkScalarBarActor.h.
|
protected |
Color data for TexturePolyData.
Definition at line 929 of file vtkScalarBarActor.h.
|
protected |
Actor for TexturePolyData.
Definition at line 930 of file vtkScalarBarActor.h.
|
protected |
Polygon used to fill the background.
Definition at line 932 of file vtkScalarBarActor.h.
|
protected |
Mapper for Background.
Definition at line 933 of file vtkScalarBarActor.h.
|
protected |
Actor for Background.
Definition at line 934 of file vtkScalarBarActor.h.
|
protected |
Polyline used to highlight frame.
Definition at line 936 of file vtkScalarBarActor.h.
|
protected |
Mapper for Frame.
Definition at line 937 of file vtkScalarBarActor.h.
|
protected |
Actor for Frame.
Definition at line 938 of file vtkScalarBarActor.h.