37 #ifndef vtkLegendScaleActor_h
38 #define vtkLegendScaleActor_h
42 #include "vtkRenderingAnnotationModule.h"
46 VTK_ABI_NAMESPACE_BEGIN
85 vtkSetClampMacro(LabelMode,
int, DISTANCE, XY_COORDINATES);
86 vtkGetMacro(LabelMode,
int);
143 vtkGetMacro(RightBorderOffset,
int);
153 vtkGetMacro(TopBorderOffset,
int);
163 vtkGetMacro(LeftBorderOffset,
int);
173 vtkGetMacro(BottomBorderOffset,
int);
181 vtkSetClampMacro(CornerOffsetFactor,
double, 1.0, 10.0);
182 vtkGetMacro(CornerOffsetFactor,
double);
234 int LabelMode = DISTANCE;
235 int RightBorderOffset = 50;
236 int TopBorderOffset = 30;
237 int LeftBorderOffset = 50;
238 int BottomBorderOffset = 30;
239 double CornerOffsetFactor = 2.;
272 VTK_ABI_NAMESPACE_END
a actor that draws 2D data
Create an axis with tick marks and labels.
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
vtkNew< vtkTextProperty > LegendTitleProperty
vtkNew< vtkAxisActor2D > BottomAxis
vtkNew< vtkCoordinate > Coordinate
~vtkLegendScaleActor() override
vtkNew< vtkAxisActor2D > RightAxis
static vtkLegendScaleActor * New()
Instantiate the class.
void GetActors2D(vtkPropCollection *) override
Standard methods supporting the rendering process.
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 SetAdjustLabels(bool ajust)
Set the axes to adjust labels position to a "nice" one.
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 SetAxesTextProperty(vtkTextProperty *property)
Configuration forwarded to each axis.
void AllAxesOff()
Convenience method that turns all the axes either on or off.
void ReleaseGraphicsResources(vtkWindow *) override
Standard methods supporting the rendering process.
vtkNew< vtkPoints > LegendPoints
virtual void BuildRepresentation(vtkViewport *viewport)
Standard methods supporting the rendering process.
vtkNew< vtkTextProperty > LegendLabelProperty
vtkNew< vtkAxisActor2D > LeftAxis
vtkNew< vtkActor2D > LegendActor
void AllAnnotationsOn()
Convenience method that turns all the axes and the legend scale.
void SetLabelModeToXYCoordinates()
Specify the mode for labeling the scale axes.
void SetUseFontSizeFromProperty(bool sizeFromProp)
Set the axes to get font size from text property.
vtkNew< vtkPolyData > Legend
int RenderOverlay(vtkViewport *) override
Standard methods supporting the rendering process.
vtkNew< vtkPolyDataMapper2D > LegendMapper
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 text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow