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);
352 static void ComputeRange(
double inRange[2],
366 static int SetMultipleFontSize(
vtkViewport *viewport,
379 vtkGetMacro(SizeFontRelativeToAxis,
int);
410 double AdjustedRange[2];
420 int LastPosition2[2];
423 int LastMaxLabelSize[2];
428 static double ComputeStringOffset(
double width,
double height,
double theta);
429 static void SetOffsetPosition(
double xTick[3],
double theta,
430 int stringHeight,
int stringWidth,
432 virtual void UpdateAdjustedRange();
abstract superclass for all actors, volumes and annotations
virtual void GetAdjustedRange(double _arg[2])
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
virtual void SetPosition(float x[2])
Get the PositionCoordinate instance of vtkCoordinate.
abstract specification for Viewports
virtual double * GetPoint1()
Specify the position of the first point defining the axis.
a actor that draws 2D data
record modification and/or execution time
vtkActor2D ** LabelActors
virtual vtkCoordinate * GetPositionCoordinate()
Get the PositionCoordinate instance of vtkCoordinate.
Create an axis with tick marks and labels.
vtkTextProperty * TitleTextProperty
virtual void SetPoint1(double x, double y)
Specify the position of the first point defining the axis.
int AdjustedNumberOfLabels
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void SetPoint2(double x, double y)
Specify the position of the second point defining the axis.
virtual int HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
virtual float * GetPosition2()
Access the Position2 instance variable.
virtual vtkCoordinate * GetPoint2Coordinate()
Specify the position of the second point defining the axis.
virtual void GetAdjustedRange(double &_arg1, double &_arg2)
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
virtual vtkCoordinate * GetPoint1Coordinate()
Specify the position of the first point defining the axis.
window superclass for vtkRenderWindow
virtual double * GetAdjustedRange()
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
vtkTimeStamp AdjustedRangeBuildTime
vtkPolyDataMapper2D * AxisMapper
virtual double * GetPoint2()
Specify the position of the second point defining the axis.
a simple class to control print indentation
vtkTextMapper * TitleMapper
static vtkActor2D * New()
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at la...
vtkTextMapper ** LabelMappers
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Draw the axis.
virtual void SetPosition2(float x[2])
Access the Position2 instance variable.
virtual float * GetPosition()
Get the PositionCoordinate instance of vtkCoordinate.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
virtual void SetPoint2(double x[2])
Specify the position of the second point defining the axis.
virtual vtkCoordinate * GetPosition2Coordinate()
Access the Position2 instance variable.
represent text properties.
vtkTextProperty * LabelTextProperty
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual void SetPoint1(double x[2])
Specify the position of the first point defining the axis.
virtual int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
virtual void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkActor2D.
virtual int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
int SizeFontRelativeToAxis
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int GetAdjustedNumberOfLabels()
Set/Get the flag that controls whether the labels and ticks are adjusted for "nice" numerical values ...
draw vtkPolyData onto the image plane
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.