|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. More...
|
|
vtkAxisActor2D * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
virtual vtkCoordinate * | GetPoint1Coordinate () |
| Specify the position of the first point defining the axis. More...
|
|
virtual void | SetPoint1 (double x[2]) |
|
virtual void | SetPoint1 (double x, double y) |
|
virtual double * | GetPoint1 () |
|
virtual vtkCoordinate * | GetPoint2Coordinate () |
| Specify the position of the second point defining the axis. More...
|
|
virtual void | SetPoint2 (double x[2]) |
|
virtual void | SetPoint2 (double x, double y) |
|
virtual double * | GetPoint2 () |
|
virtual void | SetRange (double, double) |
| Specify the (min,max) axis range. More...
|
|
void | SetRange (double[2]) |
|
virtual double * | GetRange () |
|
virtual void | GetRange (double data[2]) |
|
virtual void | SetRulerMode (vtkTypeBool) |
| Specify whether this axis should act like a measuring tape (or ruler) with specified major tick spacing. More...
|
|
virtual vtkTypeBool | GetRulerMode () |
|
virtual void | RulerModeOn () |
|
virtual void | RulerModeOff () |
|
virtual void | SetRulerDistance (double) |
| Specify the RulerDistance which indicates the spacing of the major ticks. More...
|
|
virtual double | GetRulerDistance () |
|
virtual void | SetNumberOfLabels (int) |
| Set/Get the number of annotation labels to show. More...
|
|
virtual int | GetNumberOfLabels () |
|
virtual void | SetLabelFormat (const char *) |
| Set/Get the format with which to print the labels on the scalar bar. More...
|
|
virtual char * | GetLabelFormat () |
|
virtual void | SetAdjustLabels (vtkTypeBool) |
| Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values to make it easier to read the labels. More...
|
|
virtual vtkTypeBool | GetAdjustLabels () |
|
virtual void | AdjustLabelsOn () |
|
virtual void | AdjustLabelsOff () |
|
virtual double * | GetAdjustedRange () |
|
virtual void | GetAdjustedRange (double &_arg1, double &_arg2) |
|
virtual void | GetAdjustedRange (double _arg[2]) |
|
virtual int | GetAdjustedNumberOfLabels () |
|
virtual void | SetTitle (const char *) |
| Set/Get the title of the scalar bar actor,. More...
|
|
virtual char * | GetTitle () |
|
virtual void | SetTitleTextProperty (vtkTextProperty *p) |
| Set/Get the title text property. More...
|
|
virtual vtkTextProperty * | GetTitleTextProperty () |
|
virtual void | SetLabelTextProperty (vtkTextProperty *p) |
| Set/Get the labels text property. More...
|
|
virtual vtkTextProperty * | GetLabelTextProperty () |
|
virtual void | SetTickLength (int) |
| Set/Get the length of the tick marks (expressed in pixels or display coordinates). More...
|
|
virtual int | GetTickLength () |
|
virtual void | SetNumberOfMinorTicks (int) |
| Number of minor ticks to be displayed between each tick. More...
|
|
virtual int | GetNumberOfMinorTicks () |
|
virtual void | SetMinorTickLength (int) |
| Set/Get the length of the minor tick marks (expressed in pixels or display coordinates). More...
|
|
virtual int | GetMinorTickLength () |
|
virtual void | SetTickOffset (int) |
| Set/Get the offset of the labels (expressed in pixels or display coordinates). More...
|
|
virtual int | GetTickOffset () |
|
virtual void | SetAxisVisibility (vtkTypeBool) |
| Set/Get visibility of the axis line. More...
|
|
virtual vtkTypeBool | GetAxisVisibility () |
|
virtual void | AxisVisibilityOn () |
|
virtual void | AxisVisibilityOff () |
|
virtual void | SetTickVisibility (vtkTypeBool) |
| Set/Get visibility of the axis tick marks. More...
|
|
virtual vtkTypeBool | GetTickVisibility () |
|
virtual void | TickVisibilityOn () |
|
virtual void | TickVisibilityOff () |
|
virtual void | SetLabelVisibility (vtkTypeBool) |
| Set/Get visibility of the axis labels. More...
|
|
virtual vtkTypeBool | GetLabelVisibility () |
|
virtual void | LabelVisibilityOn () |
|
virtual void | LabelVisibilityOff () |
|
virtual void | SetTitleVisibility (vtkTypeBool) |
| Set/Get visibility of the axis title. More...
|
|
virtual vtkTypeBool | GetTitleVisibility () |
|
virtual void | TitleVisibilityOn () |
|
virtual void | TitleVisibilityOff () |
|
virtual void | SetTitlePosition (double) |
| Set/Get position of the axis title. More...
|
|
virtual double | GetTitlePosition () |
|
virtual void | SetFontFactor (double) |
| Set/Get the factor that controls the overall size of the fonts used to label and title the axes. More...
|
|
virtual double | GetFontFactor () |
|
virtual void | SetLabelFactor (double) |
| Set/Get the factor that controls the relative size of the axis labels to the axis title. More...
|
|
virtual double | GetLabelFactor () |
|
int | RenderOverlay (vtkViewport *viewport) override |
| Draw the axis. More...
|
|
int | RenderOpaqueGeometry (vtkViewport *viewport) override |
| 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. More...
|
|
int | RenderTranslucentPolygonalGeometry (vtkViewport *) override |
|
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
| Does this prop have some translucent polygonal geometry? More...
|
|
void | ReleaseGraphicsResources (vtkWindow *) override |
| Release any graphics resources that are being consumed by this actor. More...
|
|
virtual void | SetSizeFontRelativeToAxis (vtkTypeBool) |
| Specify whether to size the fonts relative to the viewport or relative to length of the axis. More...
|
|
virtual vtkTypeBool | GetSizeFontRelativeToAxis () |
|
virtual void | SizeFontRelativeToAxisOn () |
|
virtual void | SizeFontRelativeToAxisOff () |
|
virtual void | SetUseFontSizeFromProperty (vtkTypeBool) |
| By default the AxisActor controls the font size of the axis label. More...
|
|
virtual vtkTypeBool | GetUseFontSizeFromProperty () |
|
virtual void | UseFontSizeFromPropertyOn () |
|
virtual void | UseFontSizeFromPropertyOff () |
|
void | ShallowCopy (vtkProp *prop) override |
| Shallow copy of an axis actor. More...
|
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
vtkActor2D * | NewInstance () const |
|
int | RenderOverlay (vtkViewport *viewport) override |
| Support the standard render methods. More...
|
|
int | RenderOpaqueGeometry (vtkViewport *viewport) override |
| 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. More...
|
|
int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) override |
|
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
| Does this prop have some translucent polygonal geometry? More...
|
|
virtual void | SetMapper (vtkMapper2D *mapper) |
| Set/Get the vtkMapper2D which defines the data to be drawn. More...
|
|
virtual vtkMapper2D * | GetMapper () |
|
virtual void | SetLayerNumber (int) |
| Set/Get the layer number in the overlay planes into which to render. More...
|
|
virtual int | GetLayerNumber () |
|
vtkProperty2D * | GetProperty () |
| Returns this actor's vtkProperty2D. More...
|
|
virtual void | SetProperty (vtkProperty2D *) |
| Set this vtkProp's vtkProperty2D. More...
|
|
virtual vtkCoordinate * | GetPositionCoordinate () |
| Get the PositionCoordinate instance of vtkCoordinate. More...
|
|
virtual void | SetPosition (float x[2]) |
|
virtual void | SetPosition (float x, float y) |
|
virtual float * | GetPosition () |
|
void | SetDisplayPosition (int, int) |
| Set the Prop2D's position in display coordinates. More...
|
|
virtual vtkCoordinate * | GetPosition2Coordinate () |
| Access the Position2 instance variable. More...
|
|
virtual void | SetPosition2 (float x[2]) |
|
virtual void | SetPosition2 (float x, float y) |
|
virtual float * | GetPosition2 () |
|
void | SetWidth (double w) |
| Set/Get the height and width of the Actor2D. More...
|
|
double | GetWidth () |
|
void | SetHeight (double h) |
|
double | GetHeight () |
|
vtkMTimeType | GetMTime () override |
| Return this objects MTime. More...
|
|
void | GetActors2D (vtkPropCollection *pc) override |
| For some exporters and other other operations we must be able to collect all the actors or volumes. More...
|
|
void | ShallowCopy (vtkProp *prop) override |
| Shallow copy of this vtkActor2D. More...
|
|
void | ReleaseGraphicsResources (vtkWindow *) override |
| Release any graphics resources that are being consumed by this actor. More...
|
|
virtual vtkCoordinate * | GetActualPositionCoordinate (void) |
| Return the actual vtkCoordinate reference that the mapper should use to position the actor. More...
|
|
virtual vtkCoordinate * | GetActualPosition2Coordinate (void) |
| Return the actual vtkCoordinate reference that the mapper should use to position the actor. More...
|
|
vtkProp * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
virtual void | GetActors (vtkPropCollection *) |
| For some exporters and other other operations we must be able to collect all the actors or volumes. More...
|
|
virtual void | GetVolumes (vtkPropCollection *) |
|
virtual void | SetVisibility (vtkTypeBool) |
| Set/Get visibility of this vtkProp. More...
|
|
virtual vtkTypeBool | GetVisibility () |
|
virtual void | VisibilityOn () |
|
virtual void | VisibilityOff () |
|
virtual void | SetPickable (vtkTypeBool) |
| Set/Get the pickable instance variable. More...
|
|
virtual vtkTypeBool | GetPickable () |
|
virtual void | PickableOn () |
|
virtual void | PickableOff () |
|
virtual void | Pick () |
| Method fires PickEvent if the prop is picked. More...
|
|
virtual void | SetDragable (vtkTypeBool) |
| Set/Get the value of the dragable instance variable. More...
|
|
virtual vtkTypeBool | GetDragable () |
|
virtual void | DragableOn () |
|
virtual void | DragableOff () |
|
virtual vtkMTimeType | GetRedrawMTime () |
| Return the mtime of anything that would cause the rendered image to appear differently. More...
|
|
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(). More...
|
|
virtual bool | GetUseBounds () |
|
virtual void | UseBoundsOn () |
|
virtual void | UseBoundsOff () |
|
virtual double * | GetBounds () |
| Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). More...
|
|
virtual void | InitPathTraversal () |
| vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker). More...
|
|
virtual vtkAssemblyPath * | GetNextPath () |
|
virtual int | GetNumberOfPaths () |
|
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
| These methods are used by subclasses to place a matrix (if any) in the prop prior to rendering. More...
|
|
virtual vtkMatrix4x4 * | GetMatrix () |
|
virtual vtkInformation * | GetPropertyKeys () |
| Set/Get property keys. More...
|
|
virtual void | SetPropertyKeys (vtkInformation *keys) |
|
virtual bool | HasKeys (vtkInformation *requiredKeys) |
| Tells if the prop has all the required keys. More...
|
|
virtual int | RenderVolumetricGeometry (vtkViewport *) |
|
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| Render the opaque geometry only if the prop has all the requiredKeys. More...
|
|
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| Render the translucent polygonal geometry only if the prop has all the requiredKeys. More...
|
|
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
| Render the volumetric geometry only if the prop has all the requiredKeys. More...
|
|
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
| Render in the overlay of the viewport only if the prop has all the requiredKeys. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
virtual double | GetAllocatedRenderTime () |
| WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
virtual void | ProcessSelectorPixelBuffers (vtkHardwareSelector *, std::vector< unsigned int > &) |
| allows a prop to update a selections color buffers More...
|
|
virtual int | GetNumberOfConsumers () |
| Get the number of consumers. More...
|
|
void | AddConsumer (vtkObject *c) |
| Add or remove or get or check a consumer,. More...
|
|
void | RemoveConsumer (vtkObject *c) |
|
vtkObject * | GetConsumer (int i) |
|
int | IsConsumer (vtkObject *c) |
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on. More...
|
|
virtual void | DebugOff () |
| Turn debugging output off. More...
|
|
bool | GetDebug () |
| Get the value of the debug flag. More...
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag. More...
|
|
virtual void | Modified () |
| Update the modification time for this object. More...
|
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
|
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
|
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) |
|
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. More...
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
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. More...
|
|
int | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. More...
|
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
| Return the class name as a string. More...
|
|
virtual void | Delete () |
| Delete a VTK object. More...
|
|
virtual void | FastDelete () |
| Delete a reference to this object. More...
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream. More...
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
virtual void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object). More...
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object). More...
|
|
int | GetReferenceCount () |
| Return the current reference count of this object. More...
|
|
void | SetReferenceCount (int) |
| Sets the reference count. More...
|
|
void | PrintRevisions (ostream &) |
| Legacy. More...
|
|
Create an axis with tick marks and labels.
vtkAxisActor2D creates an axis with tick marks, labels, and/or a title, depending on the particular instance variable settings. vtkAxisActor2D is a 2D actor; that is, it is drawn on the overlay plane and is not occluded by 3D geometry. To use this class, you typically specify two points defining the start and end points of the line (x-y definition using vtkCoordinate class), the number of labels, and the data range (min,max). You can also control what parts of the axis are visible including the line, the tick marks, the labels, and the title. You can also specify the label format (a printf style format).
This class decides what font size to use and how to locate the labels. It also decides how to create reasonable tick marks and labels. The number of labels and the range of values may not match the number specified, but should be close.
Labels are drawn on the "right" side of the axis. The "right" side is the side of the axis on the right as you move from Position to Position2. The way the labels and title line up with the axis and tick marks depends on whether the line is considered horizontal or vertical.
The vtkActor2D instance variables Position and Position2 are instances of vtkCoordinate. Note that the Position2 is an absolute position in that class (it was by default relative to Position in vtkActor2D).
What this means is that you can specify the axis in a variety of coordinate systems. Also, the axis does not have to be either horizontal or vertical. The tick marks are created so that they are perpendicular to the axis.
Set the text property/attributes of the title and the labels through the vtkTextProperty objects associated to this actor.
- See also
- vtkCubeAxesActor2D can be used to create axes in world coordinate space.
-
vtkActor2D vtkTextMapper vtkPolyDataMapper2D vtkScalarBarActor vtkCoordinate vtkTextProperty
- Tests:
- vtkAxisActor2D (Tests)
Definition at line 72 of file vtkAxisActor2D.h.