66#include "vtkRenderingAnnotationModule.h"
119 vtkSetVector2Macro(Range,
double);
120 vtkGetVectorMacro(Range,
double, 2);
128 void SetBounds(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
137 vtkSetStringMacro(LabelFormat);
138 vtkGetStringMacro(LabelFormat);
149 vtkSetMacro(UseTextActor3D,
int);
150 vtkGetMacro(UseTextActor3D,
int);
167 vtkGetStringMacro(Title);
175 vtkGetStringMacro(Exponent);
182 vtkSetMacro(MajorTickSize,
double);
183 vtkGetMacro(MajorTickSize,
double);
190 vtkSetMacro(MinorTickSize,
double);
191 vtkGetMacro(MinorTickSize,
double);
196 VTK_TICKS_INSIDE = 0,
197 VTK_TICKS_OUTSIDE = 1,
255 vtkSetMacro(ExponentVisibility,
bool);
256 vtkGetMacro(ExponentVisibility,
bool);
257 vtkBooleanMacro(ExponentVisibility,
bool);
264 vtkSetMacro(LastMajorTickPointCorrection,
bool);
265 vtkGetMacro(LastMajorTickPointCorrection,
bool);
266 vtkBooleanMacro(LastMajorTickPointCorrection,
bool);
272 VTK_ALIGN_BOTTOM = 1,
273 VTK_ALIGN_POINT1 = 2,
283 vtkGetMacro(TitleAlignLocation,
int);
292 vtkGetMacro(ExponentLocation,
int);
387 vtkSetMacro(DrawGridlinesLocation,
int);
388 vtkGetMacro(DrawGridlinesLocation,
int);
403 vtkSetMacro(GridlineXLength,
double);
404 vtkGetMacro(GridlineXLength,
double);
405 vtkSetMacro(GridlineYLength,
double);
406 vtkGetMacro(GridlineYLength,
double);
407 vtkSetMacro(GridlineZLength,
double);
408 vtkGetMacro(GridlineZLength,
double);
431 vtkSetClampMacro(
AxisType,
int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
440 VTK_AXIS_POS_MINMIN = 0,
441 VTK_AXIS_POS_MINMAX = 1,
442 VTK_AXIS_POS_MAXMAX = 2,
443 VTK_AXIS_POS_MAXMIN = 3
450 vtkSetMacro(Log,
bool);
451 vtkGetMacro(Log,
bool);
452 vtkBooleanMacro(Log,
bool);
463 vtkSetClampMacro(
AxisPosition,
int, VTK_AXIS_POS_MINMIN, VTK_AXIS_POS_MAXMIN);
511 vtkSetMacro(MinorStart,
double);
512 vtkGetMacro(MinorStart,
double);
517 vtkSetMacro(DeltaMinor,
double);
518 vtkGetMacro(DeltaMinor,
double);
532 vtkSetMacro(MinorRangeStart,
double);
533 vtkGetMacro(MinorRangeStart,
double);
534 vtkSetMacro(MajorRangeStart,
double);
535 vtkGetMacro(MajorRangeStart,
double);
536 vtkSetMacro(DeltaRangeMinor,
double);
537 vtkGetMacro(DeltaRangeMinor,
double);
538 vtkSetMacro(DeltaRangeMajor,
double);
539 vtkGetMacro(DeltaRangeMajor,
double);
592 vtkGetMacro(NumberOfLabelsBuilt,
int);
619 vtkSetMacro(Use2DMode,
int);
620 vtkGetMacro(Use2DMode,
int);
627 vtkSetMacro(VerticalOffsetXTitle2D,
double);
628 vtkGetMacro(VerticalOffsetXTitle2D,
double);
635 vtkSetMacro(HorizontalOffsetYTitle2D,
double);
636 vtkGetMacro(HorizontalOffsetYTitle2D,
double);
643 vtkSetMacro(SaveTitlePosition,
int);
644 vtkGetMacro(SaveTitlePosition,
int);
651 vtkSetVector3Macro(AxisBaseForX,
double);
652 vtkGetVector3Macro(AxisBaseForX,
double);
659 vtkSetVector3Macro(AxisBaseForY,
double);
660 vtkGetVector3Macro(AxisBaseForY,
double);
667 vtkSetVector3Macro(AxisBaseForZ,
double);
668 vtkGetVector3Macro(AxisBaseForZ,
double);
675 vtkSetMacro(AxisOnOrigin,
int);
676 vtkGetMacro(AxisOnOrigin,
int);
683 vtkSetMacro(LabelOffset,
double);
684 vtkGetMacro(LabelOffset,
double);
685 vtkSetMacro(TitleOffset,
double);
686 vtkGetMacro(TitleOffset,
double);
687 vtkSetMacro(ExponentOffset,
double);
688 vtkGetMacro(ExponentOffset,
double);
689 vtkSetMacro(ScreenSize,
double);
690 vtkGetMacro(ScreenSize,
double);
754 double AxisBaseForX[3];
755 double AxisBaseForY[3];
756 double AxisBaseForZ[3];
762 void TransformBounds(
vtkViewport*,
double bnds[6]);
773 void RotateActor2DFromAxisProjection(
vtkTextActor* pActor2D);
791 void BuildTitle(
bool);
797 void BuildExponent(
bool force);
799 void BuildExponent2D(
vtkViewport* viewport,
bool force);
803 void SetAxisPointsAndLines(
void);
805 bool BuildTickPoints(
double p1[3],
double p2[3],
bool force);
808 void BuildMajorTicks(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
811 void BuildMajorTicksLog(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
814 void BuildMinorTicks(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
817 void BuildMinorTicksLog(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
819 void BuildAxisGridLines(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
821 bool TickVisibilityChanged(
void);
826 bool BoundsDisplayCoordinateChanged(
vtkViewport* viewport);
831 double MajorTickSize;
832 double MinorTickSize;
835 double MajorStart[3];
836 double DeltaMajor[3];
841 double MajorRangeStart;
842 double MinorRangeStart;
847 double DeltaRangeMinor;
852 double DeltaRangeMajor;
854 int LastAxisPosition;
856 int LastTickLocation;
857 double LastLabelStart;
901 vtkActor *AxisMajorTicksActor, *AxisMinorTicksActor;
923 int AxisHasZeroLength;
937 double VerticalOffsetXTitle2D;
943 double HorizontalOffsetYTitle2D;
951 int SaveTitlePosition;
956 double TitleConstantPosition[2];
963 double LastMinDisplayCoordinate[3];
964 double LastMaxDisplayCoordinate[3];
965 double TickVector[3];
974 double ExponentOffset;
represents an object (geometry & properties) in a rendered scene
Create an axis with tick marks and labels.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int LastDrawGridlinesLocation
int LastMinorTicksVisible
void SetAxisTypeToZ(void)
Set/Get the type of this axis.
virtual void SetPoint2(double x, double y, double z)
Specify the position of the second point defining the axis.
vtkTypeBool LabelVisibility
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
void SetAxisPositionToMinMin(void)
virtual void SetPoint2(double x[3])
Specify the position of the second point defining the axis.
void SetDeltaMajor(int axis, double value)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkTypeBool TitleVisibility
void SetAxisMainLineProperty(vtkProperty *)
Get/Set main line axis actor property.
virtual double * GetPoint1()
Specify the position of the first point defining the axis.
vtkProperty * GetGridlinesProperty()
Get/Set gridlines actor property (outer grid lines)
vtkTypeBool DrawGridpolys
void SetBounds(const double bounds[6])
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
int RenderOverlay(vtkViewport *viewport) override
Draw the axis.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Draw the axis.
double ComputeMaxLabelLength(const double[3])
void SetTickLocationToOutside(void)
double GetMajorStart(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkTypeBool DrawInnerGridlines
void SetGridlinesProperty(vtkProperty *)
Get/Set gridlines actor property (outer grid lines)
void SetLabelScale(int labelIndex, const double scale)
void SetTitle(const char *t)
Set/Get the title of the axis actor,.
vtkProperty * GetGridpolysProperty()
Get/Set gridPolys actor property (grid quads)
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the axis labels text property.
vtkAxisFollower ** GetLabelActors()
Get label actors responsigle for drawing label text.
virtual void SetExponentLocation(int location)
Get/Set the location of the Detached Exponent related to the axis.
virtual vtkCoordinate * GetPoint2Coordinate()
Specify the position of the second point defining the axis.
vtkProperty * GetInnerGridlinesProperty()
Get/Set inner gridlines actor property.
bool LastMajorTickPointCorrection
double GetDeltaMajor(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
virtual void SetPoint1(double x[3])
Specify the position of the first point defining the axis.
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
vtkTypeBool DrawGridlines
void SetInnerGridlinesProperty(vtkProperty *)
Get/Set inner gridlines actor property.
vtkProperty * GetAxisMajorTicksProperty()
Get/Set axis actor property (axis and its ticks)
void SetAxisMajorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
int TitleAlignLocation
Hold the alignment property of the title related to the axis.
void BuildAxis(vtkViewport *viewport, bool)
void GetBounds(double bounds[6])
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
virtual double * GetPoint2()
Specify the position of the second point defining the axis.
void SetAxisTypeToX(void)
Set/Get the type of this axis.
vtkTypeBool DrawGridlinesOnly
vtkTypeBool TickVisibility
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Draw the axis.
vtkTypeBool AxisVisibility
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
int LastDrawInnerGridlines
void SetAxisPositionToMaxMax(void)
double * GetBounds(void) override
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
virtual void SetTitleAlignLocation(int location)
Get/Set the alignment of the title related to the axis.
vtkProperty * GetAxisMainLineProperty()
Get/Set main line axis actor property.
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the axis title text property.
double ComputeTitleLength(const double[3])
void SetLabelScale(const double scale)
virtual vtkCoordinate * GetPoint1Coordinate()
Specify the position of the first point defining the axis.
virtual int RenderTranslucentGeometry(vtkViewport *viewport)
Draw the axis.
vtkProp3DAxisFollower ** GetLabelProps3D()
Get label actors responsigle for drawing label text.
void SetLabels(vtkStringArray *labels)
void SetTickLocationToInside(void)
vtkProperty * GetAxisMinorTicksProperty()
Get/Set axis actor property (axis and its ticks)
int TickLocation
The location of the ticks.
void SetAxisPositionToMinMax(void)
virtual void SetPoint1(double x, double y, double z)
Specify the position of the first point defining the axis.
void SetAxisMinorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
void SetAxisTypeToY(void)
Set/Get the type of this axis.
vtkTypeBool MinorTicksVisible
static vtkAxisActor * New()
Instantiate object.
void SetMajorStart(int axis, double value)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkProperty * GetAxisLinesProperty()
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
void SetTickLocationToBoth(void)
void SetExponent(const char *t)
Set/Get the common exponent of the labels values.
void SetTitleScale(const double scale)
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Draw the axis.
int DrawGridlinesLocation
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
void SetAxisPositionToMaxMin(void)
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
a virtual camera for 3D rendering
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a subclass of actor that always faces the camera
a simple class to control print indentation
represent and manipulate 3D points
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vt...
represent surface properties of a 2D image
represent surface properties of a geometric object
a vtkAbstractArray subclass for strings
An actor that displays text.
An actor that displays text.
represent text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)