 |
VTK
9.1.0
|
Go to the documentation of this file.
69 #ifndef vtkAxisActor_h
70 #define vtkAxisActor_h
73 #include "vtkRenderingAnnotationModule.h"
127 vtkGetVectorMacro(
Range,
double, 2);
135 void SetBounds(
double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax);
144 vtkSetStringMacro(LabelFormat);
145 vtkGetStringMacro(LabelFormat);
156 vtkSetMacro(UseTextActor3D,
int);
157 vtkGetMacro(UseTextActor3D,
int);
174 vtkGetStringMacro(Title);
182 vtkGetStringMacro(Exponent);
189 vtkSetMacro(MajorTickSize,
double);
190 vtkGetMacro(MajorTickSize,
double);
197 vtkSetMacro(MinorTickSize,
double);
198 vtkGetMacro(MinorTickSize,
double);
203 VTK_TICKS_INSIDE = 0,
204 VTK_TICKS_OUTSIDE = 1,
262 vtkSetMacro(ExponentVisibility,
bool);
263 vtkGetMacro(ExponentVisibility,
bool);
264 vtkBooleanMacro(ExponentVisibility,
bool);
271 vtkSetMacro(LastMajorTickPointCorrection,
bool);
272 vtkGetMacro(LastMajorTickPointCorrection,
bool);
273 vtkBooleanMacro(LastMajorTickPointCorrection,
bool);
279 VTK_ALIGN_BOTTOM = 1,
280 VTK_ALIGN_POINT1 = 2,
290 vtkGetMacro(TitleAlignLocation,
int);
299 vtkGetMacro(ExponentLocation,
int);
394 vtkSetMacro(DrawGridlinesLocation,
int);
395 vtkGetMacro(DrawGridlinesLocation,
int);
410 vtkSetMacro(GridlineXLength,
double);
411 vtkGetMacro(GridlineXLength,
double);
412 vtkSetMacro(GridlineYLength,
double);
413 vtkGetMacro(GridlineYLength,
double);
414 vtkSetMacro(GridlineZLength,
double);
415 vtkGetMacro(GridlineZLength,
double);
438 vtkSetClampMacro(
AxisType,
int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
447 VTK_AXIS_POS_MINMIN = 0,
448 VTK_AXIS_POS_MINMAX = 1,
449 VTK_AXIS_POS_MAXMAX = 2,
450 VTK_AXIS_POS_MAXMIN = 3
457 vtkSetMacro(Log,
bool);
458 vtkGetMacro(Log,
bool);
459 vtkBooleanMacro(Log,
bool);
470 vtkSetClampMacro(
AxisPosition,
int, VTK_AXIS_POS_MINMIN, VTK_AXIS_POS_MAXMIN);
518 vtkSetMacro(MinorStart,
double);
519 vtkGetMacro(MinorStart,
double);
524 vtkSetMacro(DeltaMinor,
double);
525 vtkGetMacro(DeltaMinor,
double);
539 vtkSetMacro(MinorRangeStart,
double);
540 vtkGetMacro(MinorRangeStart,
double);
541 vtkSetMacro(MajorRangeStart,
double);
542 vtkGetMacro(MajorRangeStart,
double);
543 vtkSetMacro(DeltaRangeMinor,
double);
544 vtkGetMacro(DeltaRangeMinor,
double);
545 vtkSetMacro(DeltaRangeMajor,
double);
546 vtkGetMacro(DeltaRangeMajor,
double);
599 vtkGetMacro(NumberOfLabelsBuilt,
int);
626 vtkSetMacro(Use2DMode,
int);
627 vtkGetMacro(Use2DMode,
int);
634 vtkSetMacro(VerticalOffsetXTitle2D,
double);
635 vtkGetMacro(VerticalOffsetXTitle2D,
double);
642 vtkSetMacro(HorizontalOffsetYTitle2D,
double);
643 vtkGetMacro(HorizontalOffsetYTitle2D,
double);
650 vtkSetMacro(SaveTitlePosition,
int);
651 vtkGetMacro(SaveTitlePosition,
int);
658 vtkSetVector3Macro(AxisBaseForX,
double);
659 vtkGetVector3Macro(AxisBaseForX,
double);
666 vtkSetVector3Macro(AxisBaseForY,
double);
667 vtkGetVector3Macro(AxisBaseForY,
double);
674 vtkSetVector3Macro(AxisBaseForZ,
double);
675 vtkGetVector3Macro(AxisBaseForZ,
double);
682 vtkSetMacro(AxisOnOrigin,
int);
683 vtkGetMacro(AxisOnOrigin,
int);
690 vtkSetMacro(LabelOffset,
double);
691 vtkGetMacro(LabelOffset,
double);
692 vtkSetMacro(TitleOffset,
double);
693 vtkGetMacro(TitleOffset,
double);
694 vtkSetMacro(ExponentOffset,
double);
695 vtkGetMacro(ExponentOffset,
double);
696 vtkSetMacro(ScreenSize,
double);
697 vtkGetMacro(ScreenSize,
double);
761 double AxisBaseForX[3];
762 double AxisBaseForY[3];
763 double AxisBaseForZ[3];
769 void TransformBounds(
vtkViewport*,
double bnds[6]);
780 void RotateActor2DFromAxisProjection(
vtkTextActor* pActor2D);
798 void BuildTitle(
bool);
804 void BuildExponent(
bool force);
806 void BuildExponent2D(
vtkViewport* viewport,
bool force);
810 void SetAxisPointsAndLines(
void);
812 bool BuildTickPoints(
double p1[3],
double p2[3],
bool force);
815 void BuildMajorTicks(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
818 void BuildMajorTicksLog(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
821 void BuildMinorTicks(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
824 void BuildMinorTicksLog(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
826 void BuildAxisGridLines(
double p1[3],
double p2[3],
double localCoordSys[3][3]);
828 bool TickVisibilityChanged(
void);
833 bool BoundsDisplayCoordinateChanged(
vtkViewport* viewport);
838 double MajorTickSize;
839 double MinorTickSize;
842 double MajorStart[3];
843 double DeltaMajor[3];
848 double MajorRangeStart;
849 double MinorRangeStart;
854 double DeltaRangeMinor;
859 double DeltaRangeMajor;
861 int LastAxisPosition;
863 int LastTickLocation;
864 double LastLabelStart;
908 vtkActor *AxisMajorTicksActor, *AxisMinorTicksActor;
930 int AxisHasZeroLength;
944 double VerticalOffsetXTitle2D;
950 double HorizontalOffsetYTitle2D;
958 int SaveTitlePosition;
963 double TitleConstantPosition[2];
970 double LastMinDisplayCoordinate[3];
971 double LastMaxDisplayCoordinate[3];
972 double TickVector[3];
981 double ExponentOffset;
map vtkPolyData to graphics primitives
represent and manipulate 3D points
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.
void SetTitleScale(const double scale)
virtual void SetExponentLocation(int location)
Get/Set the location of the Detached Exponent related to the axis.
a subclass of actor that always faces the camera
void SetAxisMajorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
void SetAxisMinorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
Create an axis with tick marks and labels.
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).
vtkProp3DAxisFollower ** GetLabelProps3D()
Get label actors responsigle for drawing label text.
void SetBounds(const double bounds[6])
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
void SetTickLocationToInside(void)
void GetBounds(double bounds[6])
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
int TickLocation
The location of the ticks.
An actor that displays text.
void SetLabelScale(int labelIndex, const double scale)
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
record modification and/or execution time
int DrawGridlinesLocation
vtkTypeBool HasTranslucentPolygonalGeometry() override
Draw the axis.
static vtkAxisActor * New()
Instantiate object.
void SetAxisTypeToY(void)
Set/Get the type of this axis.
int LastMinorTicksVisible
virtual vtkCoordinate * GetPoint1Coordinate()
Specify the position of the first point defining the axis.
double ComputeMaxLabelLength(const double[3])
vtkTypeBool LabelVisibility
virtual vtkCoordinate * GetPoint2Coordinate()
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...
int RenderOpaqueGeometry(vtkViewport *viewport) override
Draw the axis.
bool LastMajorTickPointCorrection
vtkTypeBool DrawGridlinesOnly
void SetTitle(const char *t)
Set/Get the title of the axis actor,.
window superclass for vtkRenderWindow
vtkProperty * GetAxisLinesProperty()
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
double * GetBounds(void) override
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkTypeBool DrawGridlines
int RenderOverlay(vtkViewport *viewport) override
Draw the axis.
#define VTK_SIZEHINT(...)
vtkProperty * GetGridpolysProperty()
Get/Set gridPolys actor property (grid quads)
double ComputeTitleLength(const double[3])
vtkProperty * GetInnerGridlinesProperty()
Get/Set inner gridlines actor property.
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
represents an object (geometry & properties) in a rendered scene
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
An actor that displays text.
a simple class to control print indentation
a virtual camera for 3D rendering
virtual void SetTitleAlignLocation(int location)
Get/Set the alignment of the title related to the axis.
void SetGridlinesProperty(vtkProperty *)
Get/Set gridlines actor property (outer grid lines)
void SetExponent(const char *t)
Set/Get the common exponent of the labels values.
void SetAxisTypeToX(void)
Set/Get the type of this axis.
vtkProperty * GetAxisMainLineProperty()
Get/Set main line axis actor property.
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
virtual void SetPoint2(double x, double y, double z)
Specify the position of the second point defining the axis.
int TitleAlignLocation
Hold the alignment property of the title related to the axis.
double GetMajorStart(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkProperty * GetAxisMinorTicksProperty()
Get/Set axis actor property (axis and its ticks)
void SetAxisPositionToMaxMin(void)
void BuildAxis(vtkViewport *viewport, bool)
void SetAxisTypeToZ(void)
Set/Get the type of this axis.
int LastDrawGridlinesLocation
abstract specification for Viewports
virtual double * GetPoint2()
Specify the position of the second point defining the axis.
vtkAxisFollower ** GetLabelActors()
Get label actors responsigle for drawing label text.
void SetTickLocationToBoth(void)
represent text properties.
void SetTickLocationToOutside(void)
represent surface properties of a 2D image
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
void SetAxisPositionToMaxMax(void)
vtkTypeBool DrawGridpolys
vtkTypeBool TickVisibility
void SetMajorStart(int axis, double value)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
void SetLabels(vtkStringArray *labels)
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Draw the axis.
vtkTypeBool DrawInnerGridlines
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the axis labels text property.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void SetPoint1(double x[3])
Specify the position of the first point defining the axis.
vtkTypeBool MinorTicksVisible
a vtkAbstractArray subclass for strings
vtkProperty * GetAxisMajorTicksProperty()
Get/Set axis actor property (axis and its ticks)
void SetAxisPositionToMinMax(void)
vtkProperty * GetGridlinesProperty()
Get/Set gridlines actor property (outer grid lines)
void SetAxisMainLineProperty(vtkProperty *)
Get/Set main line axis actor property.
represent surface properties of a geometric object
virtual void SetPoint1(double x, double y, double z)
Specify the position of the first point defining the axis.
vtkTypeBool TitleVisibility
void SetLabelScale(const double scale)
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the axis title text property.
a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vt...
void SetAxisPositionToMinMin(void)
virtual double * GetPoint1()
Specify the position of the first point defining the axis.
int LastDrawInnerGridlines
virtual void SetPoint2(double x[3])
Specify the position of the second point defining the axis.
vtkTypeBool AxisVisibility
double GetDeltaMajor(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
void SetInnerGridlinesProperty(vtkProperty *)
Get/Set inner gridlines actor property.
virtual int RenderTranslucentGeometry(vtkViewport *viewport)
Draw the axis.