61 #ifndef vtkAxisActor2D_h
62 #define vtkAxisActor2D_h
64 #include "vtkRenderingAnnotationModule.h"
114 vtkSetVector2Macro(Range,
double);
115 vtkGetVectorMacro(Range,
double,2);
125 vtkGetMacro(RulerMode,
int);
135 vtkGetMacro(RulerDistance,
double);
149 vtkSetClampMacro(NumberOfLabels,
int, 2, VTK_MAX_LABELS);
150 vtkGetMacro(NumberOfLabels,
int);
158 vtkSetStringMacro(LabelFormat);
172 vtkGetMacro(AdjustLabels,
int);
176 this->UpdateAdjustedRange();
177 return this->AdjustedRange;
181 this->UpdateAdjustedRange();
182 _arg1 = this->AdjustedRange[0];
183 _arg2 = this->AdjustedRange[1];
187 this->GetAdjustedRange(_arg[0], _arg[1]);
191 this->UpdateAdjustedRange();
192 return this->AdjustedNumberOfLabels;
200 vtkSetStringMacro(Title);
225 vtkSetClampMacro(TickLength,
int, 0, 100);
226 vtkGetMacro(TickLength,
int);
234 vtkSetClampMacro(NumberOfMinorTicks,
int, 0, 20);
235 vtkGetMacro(NumberOfMinorTicks,
int);
243 vtkSetClampMacro(MinorTickLength,
int, 0, 100);
244 vtkGetMacro(MinorTickLength,
int);
253 vtkSetClampMacro(TickOffset,
int, 0, 100);
254 vtkGetMacro(TickOffset,
int);
262 vtkGetMacro(AxisVisibility,
int);
271 vtkGetMacro(TickVisibility,
int);
280 vtkGetMacro(LabelVisibility,
int);
289 vtkGetMacro(TitleVisibility,
int);
299 vtkGetMacro(TitlePosition,
double);
308 vtkSetClampMacro(FontFactor,
double, 0.1, 2.0);
309 vtkGetMacro(FontFactor,
double);
317 vtkSetClampMacro(LabelFactor,
double, 0.1, 2.0);
318 vtkGetMacro(LabelFactor,
double);
379 vtkGetMacro(SizeFontRelativeToAxis,
int);
410 double AdjustedRange[2];
420 int LastPosition2[2];
423 int LastMaxLabelSize[2];
430 int stringHeight,
int stringWidth,
a actor that draws 2D data
virtual vtkCoordinate * GetPositionCoordinate()
Get the PositionCoordinate instance of vtkCoordinate.
virtual void SetPosition2(float x[2])
virtual vtkCoordinate * GetPosition2Coordinate()
Access the Position2 instance variable.
virtual float * GetPosition2()
virtual void SetPosition(float x[2])
virtual float * GetPosition()
Create an axis with tick marks and labels.
int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual void SetPoint1(double x[2])
vtkPolyDataMapper2D * AxisMapper
void ShallowCopy(vtkProp *prop)
Shallow copy of an axis actor.
vtkTextMapper * TitleMapper
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property.
virtual double * GetPoint2()
vtkActor2D ** LabelActors
int AdjustedNumberOfLabels
virtual void BuildAxis(vtkViewport *viewport)
static int SetMultipleFontSize(vtkViewport *viewport, vtkTextMapper **textMappers, int nbOfMappers, int *targetSize, double factor, int *stringSize)
General method to computes font size from a representative size on the viewport (given by size[2]).
vtkTextProperty * TitleTextProperty
virtual void SetPoint1(double x, double y)
static vtkAxisActor2D * New()
Instantiate object.
static void ComputeRange(double inRange[2], double outRange[2], int inNumTicks, int &outNumTicks, double &interval)
This method computes the range of the axis given an input range.
virtual vtkCoordinate * GetPoint1Coordinate()
Specify the position of the first point defining the axis.
virtual double * GetPoint1()
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
int RenderOverlay(vtkViewport *viewport)
Draw the axis.
vtkTimeStamp AdjustedRangeBuildTime
virtual void GetAdjustedRange(double _arg[2])
virtual double * GetAdjustedRange()
vtkTextMapper ** LabelMappers
static double ComputeStringOffset(double width, double height, double theta)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int SizeFontRelativeToAxis
virtual void SetPoint2(double x[2])
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the labels text property.
static void SetOffsetPosition(double xTick[3], double theta, int stringHeight, int stringWidth, int offset, vtkActor2D *actor)
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
virtual vtkCoordinate * GetPoint2Coordinate()
Specify the position of the second point defining the axis.
vtkTextProperty * LabelTextProperty
virtual int GetAdjustedNumberOfLabels()
virtual void GetAdjustedRange(double &_arg1, double &_arg2)
virtual void SetPoint2(double x, double y)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void UpdateAdjustedRange()
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a simple class to control print indentation
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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.