 |
VTK
9.0.1
|
Go to the documentation of this file.
58 #ifndef vtkAxisActor2D_h
59 #define vtkAxisActor2D_h
62 #include "vtkRenderingAnnotationModule.h"
110 vtkGetVectorMacro(
Range,
double, 2);
130 vtkGetMacro(RulerDistance,
double);
144 vtkSetClampMacro(NumberOfLabels,
int, 2, VTK_MAX_LABELS);
145 vtkGetMacro(NumberOfLabels,
int);
153 vtkSetStringMacro(LabelFormat);
154 vtkGetStringMacro(LabelFormat);
171 this->UpdateAdjustedRange();
172 return this->AdjustedRange;
176 this->UpdateAdjustedRange();
177 _arg1 = this->AdjustedRange[0];
178 _arg2 = this->AdjustedRange[1];
183 this->UpdateAdjustedRange();
184 return this->AdjustedNumberOfLabels;
192 vtkSetStringMacro(Title);
193 vtkGetStringMacro(Title);
217 vtkSetClampMacro(TickLength,
int, 0, 100);
218 vtkGetMacro(TickLength,
int);
226 vtkSetClampMacro(NumberOfMinorTicks,
int, 0, 20);
227 vtkGetMacro(NumberOfMinorTicks,
int);
235 vtkSetClampMacro(MinorTickLength,
int, 0, 100);
236 vtkGetMacro(MinorTickLength,
int);
245 vtkSetClampMacro(TickOffset,
int, 0, 100);
246 vtkGetMacro(TickOffset,
int);
290 vtkSetMacro(TitlePosition,
double);
291 vtkGetMacro(TitlePosition,
double);
300 vtkSetClampMacro(FontFactor,
double, 0.1, 2.0);
301 vtkGetMacro(FontFactor,
double);
309 vtkSetClampMacro(LabelFactor,
double, 0.1, 2.0);
310 vtkGetMacro(LabelFactor,
double);
345 double inRange[2],
double outRange[2],
int inNumTicks,
int& outNumTicks,
double& interval);
356 int nbOfMappers,
int* targetSize,
double factor,
int* stringSize);
406 double AdjustedRange[2];
416 int LastPosition2[2];
419 int LastMaxLabelSize[2];
virtual void SetPoint2(double x[2])
auto Range(IterablePtr iterable, Options &&... opts) -> typename detail::IterableTraits< typename detail::StripPointers< IterablePtr >::type >::RangeType
Generate an iterable STL proxy object for a VTK container.
static vtkAxisActor2D * New()
Instantiate object.
virtual void SetPosition2(float x[2])
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the title text property.
vtkPolyDataMapper2D * AxisMapper
vtkTextProperty * LabelTextProperty
vtkTextMapper * TitleMapper
draw vtkPolyData onto the image plane
~vtkAxisActor2D() override
vtkTypeBool LabelVisibility
virtual vtkCoordinate * GetPoint2Coordinate()
Specify the position of the second point defining the axis.
virtual float * GetPosition2()
virtual vtkCoordinate * GetPositionCoordinate()
Get the PositionCoordinate instance of vtkCoordinate.
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.
vtkTypeBool UseFontSizeFromProperty
record modification and/or execution time
int RenderOverlay(vtkViewport *viewport) override
Draw the axis.
int AdjustedNumberOfLabels
virtual void SetPoint1(double x, double y)
static void SetOffsetPosition(double xTick[3], double theta, int stringWidth, int stringHeight, int offset, vtkActor2D *actor)
virtual void UpdateAdjustedRange()
vtkTypeBool TickVisibility
virtual double * GetAdjustedRange()
static double ComputeStringOffset(double width, double height, double theta)
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]).
window superclass for vtkRenderWindow
vtkTypeBool AxisVisibility
virtual double * GetPoint1()
vtkTimeStamp AdjustedRangeBuildTime
vtkTextProperty * TitleTextProperty
virtual vtkCoordinate * GetPosition2Coordinate()
Access the Position2 instance variable.
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the labels text property.
virtual void GetAdjustedRange(double &_arg1, double &_arg2)
a simple class to control print indentation
virtual int GetAdjustedNumberOfLabels()
vtkTypeBool TitleVisibility
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
abstract specification for Viewports
represent text properties.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
virtual double * GetPoint2()
virtual float * GetPosition()
abstract superclass for all actors, volumes and annotations
virtual void SetPoint2(double x, double y)
virtual void SetPosition(float x[2])
a actor that draws 2D data
void ShallowCopy(vtkProp *prop) override
Shallow copy of an axis actor.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
virtual void SetPoint1(double x[2])
virtual void GetAdjustedRange(double _arg[2])
concrete dataset represents vertices, lines, polygons, and triangle strips
Create an axis with tick marks and labels.
vtkActor2D ** LabelActors
vtkTextMapper ** LabelMappers
int SizeFontRelativeToAxis
virtual void BuildAxis(vtkViewport *viewport)
virtual vtkCoordinate * GetPoint1Coordinate()
Specify the position of the first point defining the axis.
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.