47#ifndef vtkLegendScaleActor_h
48#define vtkLegendScaleActor_h
51#include "vtkRenderingAnnotationModule.h"
56VTK_ABI_NAMESPACE_BEGIN
245 vtkSetVector3Macro(Origin,
double);
246 vtkGetVector3Macro(Origin,
double);
362 double Origin[3] = { 0, 0, 0 };
a actor that draws 2D data
Create an axis with tick marks and labels.
renders a 2D grid given pairs of point positions
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a simple class to control print indentation
vtkNew< vtkTextProperty > LegendTitleProperty
vtkNew< vtkAxisActor2D > BottomAxis
vtkTypeBool LegendVisibility
void SetPrecision(int val)
Get/set the numerical precision to use for axis labels, default is 2.
vtkNew< vtkCoordinate > Coordinate
~vtkLegendScaleActor() override
vtkNew< vtkAxisActor2D > RightAxis
void GetActors2D(vtkPropCollection *) override
Standard methods supporting the rendering process.
vtkTypeBool TopAxisVisibility
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
vtkNew< vtkTextMapper > LabelMappers[6]
void AllAnnotationsOff()
Convenience method that turns all the axes and the legend scale.
vtkTypeBool RightAxisVisibility
vtkNew< vtkAxisGridActorInternal > GridActor
virtual void SetLabelMode(int)
Specify the mode for labeling the scale axes.
vtkProperty2D * GetAxesProperty()
Return the property used for the right axis which should be the same as the other ones if set using S...
void SetLabelModeToDistance()
Specify the mode for labeling the scale axes.
void AllAxesOn()
Convenience method that turns all the axes either on or off.
int RenderOpaqueGeometry(vtkViewport *) override
Standard methods supporting the rendering process.
vtkNew< vtkAxisActor2D > TopAxis
void SetNumberOfVerticalLabels(int val)
Get/set the number of ticks (and labels) for the vertical axis, default is 5.
void SetAxesTextProperty(vtkTextProperty *property)
Configuration forwarded to each axis.
int GetNotation()
Get/set the numerical notation for axes labels: standard, scientific or mixed (0, 1,...
vtkNew< vtkPolyDataMapper2D > GridMapper
void AllAxesOff()
Convenience method that turns all the axes either on or off.
void ReleaseGraphicsResources(vtkWindow *) override
Standard methods supporting the rendering process.
void SetAxesProperty(vtkProperty2D *property)
Set the 2D property for both axis and grid.
vtkTypeBool BottomAxisVisibility
vtkNew< vtkPoints > LegendPoints
int GetPrecision()
Get/set the numerical precision to use for axis labels, default is 2.
virtual void BuildRepresentation(vtkViewport *viewport)
Standard methods supporting the rendering process.
vtkNew< vtkTextProperty > LegendLabelProperty
vtkTypeBool LeftAxisVisibility
static vtkLegendScaleActor * New()
Instantiate the class.
vtkNew< vtkActor2D > LabelActors[6]
vtkNew< vtkAxisActor2D > LeftAxis
void SetNumberOfHorizontalLabels(int val)
Get/set the number of ticks (and labels) for the horizontal axis, default is 5.
vtkNew< vtkActor2D > LegendActor
void AllAnnotationsOn()
Convenience method that turns all the axes and the legend scale.
void SetSnapToGrid(bool snap)
If on, labels are positioned on rounded values.
void SetUseFontSizeFromProperty(bool sizeFromProp)
Set the axes to get font size from text property.
int GetNumberOfHorizontalLabels()
Get/set the number of ticks (and labels) for the horizontal axis, default is 5.
vtkNew< vtkPolyData > Legend
double CornerOffsetFactor
int RenderOverlay(vtkViewport *) override
Standard methods supporting the rendering process.
void SetNotation(int notation)
Get/set the numerical notation for axes labels: standard, scientific or mixed (0, 1,...
int GetNumberOfVerticalLabels()
Get/set the number of ticks (and labels) for the vertical axis, default is 5.
void SetLabelModeToCoordinates()
Specify the mode for labeling the scale axes.
vtkNew< vtkPolyDataMapper2D > LegendMapper
Allocate and hold a VTK object.
represent and manipulate 3D points
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a 2D image
represent text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow