28 #ifndef vtkLegendScaleActor_h
29 #define vtkLegendScaleActor_h
32 #include "vtkRenderingAnnotationModule.h"
37 VTK_ABI_NAMESPACE_BEGIN
69 XY_COORDINATES = COORDINATES
79 vtkSetClampMacro(LabelMode,
int, DISTANCE, COORDINATES);
80 vtkGetMacro(LabelMode,
int);
101 vtkBooleanMacro(BottomAxisVisibility,
vtkTypeBool);
126 void AllAnnotationsOn();
127 void AllAnnotationsOff();
134 vtkSetMacro(GridVisibility,
bool);
135 vtkGetMacro(GridVisibility,
bool);
136 vtkBooleanMacro(GridVisibility,
bool);
145 vtkSetClampMacro(RightBorderOffset,
int, 5,
VTK_INT_MAX);
146 vtkGetMacro(RightBorderOffset,
int);
155 vtkSetClampMacro(TopBorderOffset,
int, 5,
VTK_INT_MAX);
156 vtkGetMacro(TopBorderOffset,
int);
165 vtkSetClampMacro(LeftBorderOffset,
int, 5,
VTK_INT_MAX);
166 vtkGetMacro(LeftBorderOffset,
int);
175 vtkSetClampMacro(BottomBorderOffset,
int, 5,
VTK_INT_MAX);
176 vtkGetMacro(BottomBorderOffset,
int);
184 vtkSetClampMacro(CornerOffsetFactor,
double, 1.0, 10.0);
185 vtkGetMacro(CornerOffsetFactor,
double);
193 void SetNotation(
int notation);
201 void SetPrecision(
int val);
209 void SetNumberOfHorizontalLabels(
int val);
210 int GetNumberOfHorizontalLabels();
217 void SetNumberOfVerticalLabels(
int val);
218 int GetNumberOfVerticalLabels();
226 vtkSetVector3Macro(Origin,
double);
227 vtkGetVector3Macro(Origin,
double);
257 void SetUseFontSizeFromProperty(
bool sizeFromProp);
264 void SetSnapToGrid(
bool snap);
283 virtual void BuildRepresentation(
vtkViewport* viewport);
294 int LabelMode = DISTANCE;
295 int RightBorderOffset = 50;
296 int TopBorderOffset = 30;
297 int LeftBorderOffset = 50;
298 int BottomBorderOffset = 30;
299 double CornerOffsetFactor = 2.;
310 bool GridVisibility =
false;
343 double Origin[3] = { 0, 0, 0 };
346 VTK_ABI_NAMESPACE_END
vtkNew< vtkPolyDataMapper2D > LegendMapper
abstract superclass for all actors, volumes and annotations
abstract specification for Viewports
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual int RenderOverlay(vtkViewport *)
renders a 2D grid given pairs of point positions
a actor that draws 2D data
record modification and/or execution time
Create an axis with tick marks and labels.
vtkNew< vtkAxisActor2D > RightAxis
concrete dataset represents vertices, lines, polygons, and triangle strips
annotate the render window with scale and distance information
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
window superclass for vtkRenderWindow
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkActor2D > LegendActor
vtkNew< vtkTextProperty > LegendTitleProperty
a simple class to control print indentation
vtkNew< vtkPolyData > Legend
vtkNew< vtkPoints > LegendPoints
vtkNew< vtkAxisActor2D > BottomAxis
vtkNew< vtkTextProperty > LegendLabelProperty
represent text properties.
vtkNew< vtkCoordinate > Coordinate
void SetLabelModeToCoordinates()
Specify the mode for labeling the scale axes.
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
vtkNew< vtkAxisGridActorInternal > GridActor
void SetLabelModeToDistance()
Specify the mode for labeling the scale axes.
virtual void GetActors2D(vtkPropCollection *)
represent surface properties of a 2D image
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkNew< vtkPolyDataMapper2D > GridMapper
vtkNew< vtkAxisActor2D > TopAxis
vtkNew< vtkAxisActor2D > LeftAxis
draw vtkPolyData onto the image plane
represent and manipulate 3D points