47 #ifndef vtkLegendScaleActor_h
48 #define vtkLegendScaleActor_h
52 #include "vtkRenderingAnnotationModule.h"
56 VTK_ABI_NAMESPACE_BEGIN
88 XY_COORDINATES = COORDINATES
98 vtkSetClampMacro(LabelMode,
int, DISTANCE, COORDINATES);
99 vtkGetMacro(LabelMode,
int);
102 "SetLabelModeToCoordinates instead.")
103 void SetLabelModeToXYCoordinates() { this->SetLabelMode(XY_COORDINATES); }
156 vtkSetMacro(GridVisibility,
bool);
157 vtkGetMacro(GridVisibility,
bool);
158 vtkBooleanMacro(GridVisibility,
bool);
168 vtkGetMacro(RightBorderOffset,
int);
178 vtkGetMacro(TopBorderOffset,
int);
188 vtkGetMacro(LeftBorderOffset,
int);
198 vtkGetMacro(BottomBorderOffset,
int);
206 vtkSetClampMacro(CornerOffsetFactor,
double, 1.0, 10.0);
207 vtkGetMacro(CornerOffsetFactor,
double);
248 vtkSetVector3Macro(Origin,
double);
249 vtkGetVector3Macro(Origin,
double);
288 "This does not respect the number of labels. Please use SetSnapToGrid instead.")
289 void SetAdjustLabels(
bool adjust);
296 void SetSnapToGrid(
bool snap);
326 int LabelMode = DISTANCE;
327 int RightBorderOffset = 50;
328 int TopBorderOffset = 30;
329 int LeftBorderOffset = 50;
330 int BottomBorderOffset = 30;
331 double CornerOffsetFactor = 2.;
342 bool GridVisibility = false;
375 double Origin[3] = { 0, 0, 0 };
378 VTK_ABI_NAMESPACE_END
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
annotate the render window with scale and distance information
void SetPrecision(int val)
Get/set the numerical precision to use for axis labels, default is 2.
vtkProperty2D * GetAxesProperty()
Return the property used for the right axis which should be the same as the other ones if set using S...
static vtkLegendScaleActor * New()
Instantiate the class.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
void AllAnnotationsOff()
Convenience method that turns all the axes and the legend scale.
void SetLabelModeToDistance()
Specify the mode for labeling the scale axes.
void AllAxesOn()
Convenience method that turns all the axes either on or off.
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,...
void AllAxesOff()
Convenience method that turns all the axes either on or off.
void SetAxesProperty(vtkProperty2D *property)
Set the 2D property for both axis and grid.
int GetPrecision()
Get/set the numerical precision to use for axis labels, default is 2.
void SetNumberOfHorizontalLabels(int val)
Get/set the number of ticks (and labels) for the horizontal axis, default is 5.
void AllAnnotationsOn()
Convenience method that turns all the axes and the legend scale.
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.
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.
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
abstract superclass for all actors, volumes and annotations
represent surface properties of a 2D image
represent text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_DEPRECATED_IN_9_4_0(reason)