28#ifndef vtkLegendScaleActor_h 
   29#define vtkLegendScaleActor_h 
   33#include "vtkRenderingAnnotationModule.h"  
   37VTK_ABI_NAMESPACE_BEGIN
 
   76  vtkSetClampMacro(LabelMode, 
int, DISTANCE, XY_COORDINATES);
 
   77  vtkGetMacro(LabelMode, 
int);
 
  134  vtkGetMacro(RightBorderOffset, 
int);
 
  144  vtkGetMacro(TopBorderOffset, 
int);
 
  154  vtkGetMacro(LeftBorderOffset, 
int);
 
  164  vtkGetMacro(BottomBorderOffset, 
int);
 
  172  vtkSetClampMacro(CornerOffsetFactor, 
double, 1.0, 10.0);
 
  173  vtkGetMacro(CornerOffsetFactor, 
double);
 
  225  int LabelMode = DISTANCE;
 
  226  int RightBorderOffset = 50;
 
  227  int TopBorderOffset = 30;
 
  228  int LeftBorderOffset = 50;
 
  229  int BottomBorderOffset = 30;
 
  230  double CornerOffsetFactor = 2.;
 
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
 
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
 
static vtkLegendScaleActor * New()
Instantiate the class.
 
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
 
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 text properties.
 
record modification and/or execution time
 
abstract specification for Viewports
 
window superclass for vtkRenderWindow