VTK  9.4.20251007
vtkAxisActor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
43
44#ifndef vtkAxisActor_h
45#define vtkAxisActor_h
46
47#include "vtkActor.h"
48#include "vtkDeprecation.h" // For deprecation macro
49#include "vtkNew.h" // For vtkNew
50#include "vtkRenderingAnnotationModule.h" // For export macro
51#include "vtkSmartPointer.h" // For vtkSmartPointer
52#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
53
54VTK_ABI_NAMESPACE_BEGIN
55class vtkAxisFollower;
56class vtkCamera;
57class vtkCoordinate;
58class vtkFollower;
59class vtkPoints;
60class vtkPolyData;
63class vtkProperty2D;
64class vtkStringArray;
65class vtkTextActor;
66class vtkTextActor3D;
67class vtkTextProperty;
68class vtkVectorText;
69
70class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkAxisActor : public vtkActor
71{
72public:
73 vtkTypeMacro(vtkAxisActor, vtkActor);
74 void PrintSelf(ostream& os, vtkIndent indent) override;
75
79 static vtkAxisActor* New();
80
82
86 virtual void SetPoint1(double x[3]) { this->SetPoint1(x[0], x[1], x[2]); }
87 virtual void SetPoint1(double x, double y, double z);
88 virtual double* GetPoint1();
90
92
96 virtual void SetPoint2(double x[3]) { this->SetPoint2(x[0], x[1], x[2]); }
97 virtual void SetPoint2(double x, double y, double z);
98 virtual double* GetPoint2();
100
102
107 vtkSetVector2Macro(Range, double);
108 vtkGetVectorMacro(Range, double, 2);
110
112
116 void SetBounds(const double bounds[6]);
117 void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
118 double* GetBounds() VTK_SIZEHINT(6) override;
119 void GetBounds(double bounds[6]);
121
123
126 vtkSetStringMacro(LabelFormat);
127 vtkGetStringMacro(LabelFormat);
129
131
138 vtkSetMacro(UseTextActor3D, bool);
139 vtkGetMacro(UseTextActor3D, bool);
141
143
147 vtkSetMacro(MinorTicksVisible, bool);
148 vtkGetMacro(MinorTicksVisible, bool);
149 vtkBooleanMacro(MinorTicksVisible, bool);
151
153
156 void SetTitle(const char* t);
157 vtkGetStringMacro(Title);
159
161
164 void SetExponent(const char* t);
165 vtkGetStringMacro(Exponent);
167
169
173 vtkSetMacro(MajorTickSize, double);
174 vtkGetMacro(MajorTickSize, double);
176
178
182 vtkSetMacro(MinorTickSize, double);
183 vtkGetMacro(MinorTickSize, double);
185
192
194
201 vtkGetMacro(TickLocation, int);
203
207
209
213 vtkSetMacro(AxisVisibility, bool);
214 vtkGetMacro(AxisVisibility, bool);
215 vtkBooleanMacro(AxisVisibility, bool);
217
219
223 vtkSetMacro(TickVisibility, bool);
224 vtkGetMacro(TickVisibility, bool);
225 vtkBooleanMacro(TickVisibility, bool);
227
229
233 vtkSetMacro(LabelVisibility, bool);
234 vtkGetMacro(LabelVisibility, bool);
235 vtkBooleanMacro(LabelVisibility, bool);
237
239
243 vtkSetMacro(TitleVisibility, bool);
244 vtkGetMacro(TitleVisibility, bool);
245 vtkBooleanMacro(TitleVisibility, bool);
247
249
253 vtkSetMacro(ExponentVisibility, bool);
254 vtkGetMacro(ExponentVisibility, bool);
255 vtkBooleanMacro(ExponentVisibility, bool);
257
259
265 vtkBooleanMacro(LastMajorTickPointCorrection, bool);
267
275
277
282 virtual void SetTitleAlignLocation(int location);
283 vtkGetMacro(TitleAlignLocation, int);
285
287
292 virtual void SetExponentLocation(int location);
293 vtkGetMacro(ExponentLocation, int);
295
297
303
305
311
313
319
321
327
329
335
337
343
345
351
353
359
361
367
369
373 vtkSetMacro(DrawGridlines, bool);
374 vtkGetMacro(DrawGridlines, bool);
375 vtkBooleanMacro(DrawGridlines, bool);
377
379
385 vtkSetMacro(DrawGridlinesOnly, bool);
386 vtkGetMacro(DrawGridlinesOnly, bool);
387 vtkBooleanMacro(DrawGridlinesOnly, bool);
389
390 vtkSetMacro(DrawGridlinesLocation, int);
391 vtkGetMacro(DrawGridlinesLocation, int);
392
394
398 vtkSetMacro(DrawInnerGridlines, bool);
399 vtkGetMacro(DrawInnerGridlines, bool);
400 vtkBooleanMacro(DrawInnerGridlines, bool);
402
404
408 vtkSetMacro(GridlineXLength, double);
409 vtkGetMacro(GridlineXLength, double);
410 vtkSetMacro(GridlineYLength, double);
411 vtkGetMacro(GridlineYLength, double);
412 vtkSetMacro(GridlineZLength, double);
413 vtkGetMacro(GridlineZLength, double);
415
417
421 vtkSetMacro(DrawGridpolys, bool);
422 vtkGetMacro(DrawGridpolys, bool);
423 vtkBooleanMacro(DrawGridpolys, bool);
425
432
434
438 vtkSetClampMacro(AxisType, int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
439 vtkGetMacro(AxisType, int);
444
452
454
458 vtkSetMacro(Log, bool);
459 vtkGetMacro(Log, bool);
460 vtkBooleanMacro(Log, bool);
462
464
473 vtkGetMacro(AxisPosition, int);
475
480
482
486 virtual void SetCamera(vtkCamera*);
489
491
494 int RenderOpaqueGeometry(vtkViewport* viewport) override;
497 int RenderOverlay(vtkViewport* viewport) override;
500
507
508 double ComputeMaxLabelLength(const double[3]);
509 double ComputeTitleLength(const double[3]);
510
511 void SetLabelScale(double scale);
512 void SetLabelScale(int labelIndex, double scale);
513 void SetTitleScale(double scale);
514
516
520 vtkSetMacro(MinorStart, double);
521 vtkGetMacro(MinorStart, double);
522 double GetMajorStart(int axis);
523 void SetMajorStart(int axis, double value);
524 vtkSetMacro(DeltaMinor, double);
525 vtkGetMacro(DeltaMinor, double);
526 double GetDeltaMajor(int axis);
527 void SetDeltaMajor(int axis, double value);
529
531
537 vtkSetMacro(MinorRangeStart, double);
538 vtkGetMacro(MinorRangeStart, double);
539 vtkSetMacro(MajorRangeStart, double);
540 vtkGetMacro(MajorRangeStart, double);
542
544
548 vtkSetMacro(DeltaRangeMinor, double);
549 vtkGetMacro(DeltaRangeMinor, double);
550 vtkSetMacro(DeltaRangeMajor, double);
551 vtkGetMacro(DeltaRangeMajor, double);
553
555
556 void BuildAxis(vtkViewport* viewport, bool);
557
559
563 vtkGetObjectMacro(TitleActor, vtkAxisFollower);
565
567
570 vtkGetObjectMacro(ExponentActor, vtkAxisFollower);
572
576 inline vtkAxisFollower** GetLabelActors() { return this->LabelActors; }
577
579
583 vtkGetObjectMacro(TitleProp3D, vtkProp3DAxisFollower);
585
589 inline vtkProp3DAxisFollower** GetLabelProps3D() { return this->LabelProps3D; }
590
592
596 vtkGetObjectMacro(ExponentProp3D, vtkProp3DAxisFollower);
598
600
604 vtkGetMacro(NumberOfLabelsBuilt, int);
606
608
612 vtkSetMacro(CalculateTitleOffset, bool);
613 vtkGetMacro(CalculateTitleOffset, bool);
614 vtkBooleanMacro(CalculateTitleOffset, bool);
616
618
622 vtkSetMacro(CalculateLabelOffset, bool);
623 vtkGetMacro(CalculateLabelOffset, bool);
624 vtkBooleanMacro(CalculateLabelOffset, bool);
626
628
632 vtkSetMacro(Use2DMode, bool);
633 vtkGetMacro(Use2DMode, bool);
635
637
641 vtkSetMacro(VerticalOffsetXTitle2D, double);
642 vtkGetMacro(VerticalOffsetXTitle2D, double);
644
646
650 vtkSetMacro(HorizontalOffsetYTitle2D, double);
651 vtkGetMacro(HorizontalOffsetYTitle2D, double);
653
655
659 vtkSetMacro(SaveTitlePosition, int);
660 vtkGetMacro(SaveTitlePosition, int);
662
664
668 vtkSetVector3Macro(AxisBaseForX, double);
669 vtkGetVector3Macro(AxisBaseForX, double);
671
673
677 vtkSetVector3Macro(AxisBaseForY, double);
678 vtkGetVector3Macro(AxisBaseForY, double);
680
682
686 vtkSetVector3Macro(AxisBaseForZ, double);
687 vtkGetVector3Macro(AxisBaseForZ, double);
689
691
695 vtkSetMacro(AxisOnOrigin, bool);
696 vtkGetMacro(AxisOnOrigin, bool);
698
700
704 vtkSetMacro(ScreenSize, double);
705 vtkGetMacro(ScreenSize, double);
707
709
713 vtkSetMacro(LabelOffset, double);
714 vtkGetMacro(LabelOffset, double);
716
718
722 vtkSetMacro(ExponentOffset, double);
723 vtkGetMacro(ExponentOffset, double);
725
727
734 VTK_DEPRECATED_IN_9_3_0("Use SetTitleOffset(double, double) as it's now a 2d vector")
735 void SetTitleOffset(double titleOffsetY);
736 VTK_DEPRECATED_IN_9_3_0("Use GetTitleOffset(double&, double&) as it's now a 2d vector")
738 vtkSetVector2Macro(TitleOffset, double);
739 // TODO: Replace getter with macro once deprecated one is removed
740 void GetTitleOffset(double& titleOffsetX, double& titleOffsetY);
742
743protected:
745 ~vtkAxisActor() override;
746
747 char* Title = nullptr;
748 char* Exponent = nullptr;
749 char* LabelFormat = nullptr;
750 double Range[2] = { 0.0, 1.0 };
751 double LastRange[2] = { -1.0, -1.0 };
752 bool UseTextActor3D = false;
754 bool MinorTicksVisible = true;
756
763
769
775
776 bool DrawGridlines = false;
777 bool DrawGridlinesOnly = false;
778 bool LastDrawGridlines = false;
779 int DrawGridlinesLocation = 0; // 0: all | 1: closest | 2: furthest
780 int LastDrawGridlinesLocation = 0; // 0: all | 1: closest | 2: furthest
781 double GridlineXLength = 1.0;
782 double GridlineYLength = 1.0;
783 double GridlineZLength = 1.0;
784
785 bool DrawInnerGridlines = false;
787
788 bool DrawGridpolys = false;
789 bool LastDrawGridpolys = false;
790
791 bool AxisVisibility = true;
792 bool TickVisibility = true;
794 bool LabelVisibility = true;
795 bool TitleVisibility = true;
796 bool ExponentVisibility = false;
798
799 bool Log = false;
802
803 // coordinate system for axisAxtor, relative to world coordinates
804 double AxisBaseForX[3] = { 1.0, 0.0, 0.0 };
805 double AxisBaseForY[3] = { 0.0, 1.0, 0.0 };
806 double AxisBaseForZ[3] = { 0.0, 0.0, 1.0 };
807
808private:
809 vtkAxisActor(const vtkAxisActor&) = delete;
810 void operator=(const vtkAxisActor&) = delete;
811
812 void TransformBounds(vtkViewport*, double bnds[6]);
813
814 void BuildLabels(vtkViewport*, bool);
815 void BuildLabels2D(vtkViewport*, bool);
816 void SetLabelPositions(vtkViewport*, bool);
817 void SetLabelPositions2D(vtkViewport*, bool);
818
823 void RotateActor2DFromAxisProjection(vtkTextActor* pActor2D);
824
828 void InitTitle();
829
833 void InitExponent();
834
841 void BuildTitle(bool);
842
847 void BuildExponent(bool force);
848
849 void BuildExponent2D(vtkViewport* viewport, bool force);
850
851 void BuildTitle2D(vtkViewport* viewport, bool);
852
853 void SetAxisPointsAndLines();
854
855 bool BuildTickPoints(double p1[3], double p2[3], bool force);
856
857 // Build major ticks for linear scale.
858 void BuildMajorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
859
860 // Build major ticks for logarithmic scale.
861 void BuildMajorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
862
863 // Build minor ticks for linear scale.
864 void BuildMinorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
865
866 // Build minor ticks for logarithmic scale enabled
867 void BuildMinorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
868
869 void BuildAxisGridLines(double p1[3], double p2[3], double localCoordSys[3][3]);
870
871 bool TickVisibilityChanged();
872 vtkProperty* NewTitleProperty();
873 vtkProperty2D* NewTitleProperty2D();
874 vtkProperty* NewLabelProperty();
875
876 bool BoundsDisplayCoordinateChanged(vtkViewport* viewport);
877
878 vtkNew<vtkCoordinate> Point1Coordinate;
879 vtkNew<vtkCoordinate> Point2Coordinate;
880
881 double MajorTickSize = 1.0;
882 double MinorTickSize = 0.5;
883
884 // For each axis (for the inner gridline generation)
885 double MajorStart[3] = { 0.0, 0.0, 0.0 };
886 double DeltaMajor[3] = { 1.0, 1.0, 1.0 };
887 double MinorStart = 0.0;
888 double DeltaMinor = 1.0;
889
890 // For the ticks, w.r.t to the set range
891 double MajorRangeStart = 0.0;
892 double MinorRangeStart = 0.0;
893
897 double DeltaRangeMinor = 1.0;
898
902 double DeltaRangeMajor = 1.0;
903
904 int LastAxisPosition = -1;
905 int LastTickLocation = -1;
906
907 vtkNew<vtkPoints> MinorTickPts;
908 vtkNew<vtkPoints> MajorTickPts;
909 vtkNew<vtkPoints> GridlinePts;
910 vtkNew<vtkPoints> InnerGridlinePts;
911 vtkNew<vtkPoints> GridpolyPts;
912
913 vtkNew<vtkVectorText> TitleVector;
914 vtkNew<vtkPolyDataMapper> TitleMapper;
915 vtkNew<vtkAxisFollower> TitleActor;
916 vtkNew<vtkTextActor> TitleActor2D;
917 vtkNew<vtkProp3DAxisFollower> TitleProp3D;
918 vtkNew<vtkTextActor3D> TitleActor3D;
919 vtkSmartPointer<vtkTextProperty> TitleTextProperty;
920
922
925 vtkNew<vtkVectorText> ExponentVector;
926 vtkNew<vtkPolyDataMapper> ExponentMapper;
927 vtkNew<vtkAxisFollower> ExponentActor;
928 vtkNew<vtkTextActor> ExponentActor2D;
929 vtkNew<vtkProp3DAxisFollower> ExponentProp3D;
930 vtkNew<vtkTextActor3D> ExponentActor3D;
932
933 vtkSmartPointer<vtkVectorText>* LabelVectors = nullptr;
934 vtkSmartPointer<vtkPolyDataMapper>* LabelMappers = nullptr;
935 vtkAxisFollower** LabelActors = nullptr;
936 vtkProp3DAxisFollower** LabelProps3D = nullptr;
937 vtkSmartPointer<vtkTextActor>* LabelActors2D = nullptr;
938 vtkSmartPointer<vtkTextActor3D>* LabelActors3D = nullptr;
939 vtkSmartPointer<vtkTextProperty> LabelTextProperty;
940
941 // Main line axis
942 vtkNew<vtkPolyData> AxisLines;
943 vtkNew<vtkPolyDataMapper> AxisLinesMapper;
944 vtkNew<vtkActor> AxisLinesActor;
945
946 // Ticks of the axis
947 vtkNew<vtkPolyData> AxisMajorTicks, AxisMinorTicks;
948 vtkNew<vtkPolyDataMapper> AxisMajorTicksMapper, AxisMinorTicksMapper;
949 vtkNew<vtkActor> AxisMajorTicksActor, AxisMinorTicksActor;
950
951 vtkNew<vtkPolyData> Gridlines;
952 vtkNew<vtkPolyDataMapper> GridlinesMapper;
953 vtkNew<vtkActor> GridlinesActor;
954 vtkNew<vtkPolyData> InnerGridlines;
955 vtkNew<vtkPolyDataMapper> InnerGridlinesMapper;
956 vtkNew<vtkActor> InnerGridlinesActor;
957 vtkNew<vtkPolyData> Gridpolys;
958 vtkNew<vtkPolyDataMapper> GridpolysMapper;
959 vtkNew<vtkActor> GridpolysActor;
960
961 vtkSmartPointer<vtkCamera> Camera;
962 vtkTimeStamp BuildTime;
963 vtkTimeStamp BuildTickPointsTime;
964 vtkTimeStamp BoundsTime;
965 vtkTimeStamp LabelBuildTime;
966 vtkTimeStamp TitleTextTime;
967 vtkTimeStamp ExponentTextTime;
968
969 bool AxisOnOrigin = false;
970
971 bool AxisHasZeroLength = false;
972
973 bool CalculateTitleOffset = false;
974 bool CalculateLabelOffset = false;
975
979 bool Use2DMode = false;
980
985 double VerticalOffsetXTitle2D = -40;
986
991 double HorizontalOffsetYTitle2D = -50;
992
999 int SaveTitlePosition = 0;
1000
1004 double TitleConstantPosition[2] = { 0.0, 0.0 };
1005
1009 bool NeedBuild2D = false;
1010
1011 double LastMinDisplayCoordinate[3] = { 0.0, 0.0, 0.0 };
1012 double LastMaxDisplayCoordinate[3] = { 0.0, 0.0, 0.0 };
1013 double TickVector[3] = { 0.0, 0.0, 0.0 };
1014
1018 double ScreenSize = 10.0;
1019
1021
1024 double LabelOffset = 30.0;
1025 double TitleOffset[2] = { 20.0, 20.0 };
1026 double ExponentOffset = 20.0;
1028};
1029
1030VTK_ABI_NAMESPACE_END
1031#endif
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.
void SetTickLocationToBoth()
int LastDrawGridlinesLocation
double GridlineZLength
bool DrawGridlinesOnly
void SetAxisPositionToMinMax()
virtual void SetPoint2(double x, double y, double z)
Specify the position of the second point defining the axis.
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
bool LastMinorTicksVisible
bool LastTickVisibility
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...
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)
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])
int NumberOfLabelsBuilt
double GetMajorStart(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
double GridlineYLength
void SetGridlinesProperty(vtkProperty *)
Get/Set gridlines actor property (outer grid lines)
void SetAxisTypeToZ()
Set/Get the type of this axis.
void SetTitle(const char *t)
Set/Get the title of the axis actor.
double AxisBaseForY[3]
vtkProperty * GetGridpolysProperty()
Get/Set gridPolys actor property (grid quads)
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the axis labels text property.
bool MinorTicksVisible
vtkAxisFollower ** GetLabelActors()
Get label actors responsigle for drawing label text.
double GridlineXLength
double Range[2]
virtual void SetExponentLocation(int location)
Get/Set the location of the Detached Exponent related to the axis.
vtkCamera * GetCamera()
Set/Get the camera for this axis.
virtual vtkCoordinate * GetPoint2Coordinate()
Specify the position of the second point defining the axis.
vtkProperty * GetInnerGridlinesProperty()
Get/Set inner gridlines actor property.
char * LabelFormat
double AxisBaseForZ[3]
void SetAxisPositionToMinMin()
bool LastMajorTickPointCorrection
bool LastDrawInnerGridlines
double GetDeltaMajor(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
double * GetBounds() override
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void SetTitleOffset(double titleOffsetY)
Set/Get the 2D-offsets used to position title texts.
vtkTextProperty * GetLabelTextProperty()
Set/Get the axis labels text property.
void SetLabelScale(int labelIndex, double scale)
virtual void SetPoint1(double x[3])
Specify the position of the first point defining the axis.
double AxisBaseForX[3]
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
void SetInnerGridlinesProperty(vtkProperty *)
Get/Set inner gridlines actor property.
double GetTitleOffset()
Set/Get the 2D-offsets used to position title texts.
vtkProperty * GetAxisMajorTicksProperty()
Get/Set axis actor property (axis and its ticks)
void SetAxisMajorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
void SetLabelScale(double scale)
void SetTickLocationToOutside()
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)
virtual double * GetPoint2()
Specify the position of the second point defining the axis.
void SetAxisTypeToY()
Set/Get the type of this axis.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Draw the axis.
virtual void SetAxisType(int)
Set/Get the type of this axis.
virtual void SetAxisPosition(int)
Set/Get the position of this axis (in relation to an an assumed bounding box).
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
void SetAxisTypeToX()
Set/Get the type of this axis.
virtual void SetTickLocation(int)
Set/Get the location of the ticks.
bool LastDrawGridlines
bool ExponentVisibility
bool LastDrawGridpolys
void SetTitleScale(double scale)
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 SetAxisPositionToMaxMin()
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 SetTickLocationToInside()
void SetLabels(vtkStringArray *labels)
vtkProperty * GetAxisMinorTicksProperty()
Get/Set axis actor property (axis and its ticks)
bool DrawInnerGridlines
double LastRange[2]
vtkTextProperty * GetTitleTextProperty()
Set/Get the axis title text property.
void SetAxisPositionToMaxMax()
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)
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 SetExponent(const char *t)
Set/Get the common exponent of the labels values.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Draw the axis.
int DrawGridlinesLocation
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
a virtual camera for 3D rendering
Definition vtkCamera.h:42
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a subclass of actor that always faces the camera
Definition vtkFollower.h:33
a simple class to control print indentation
Definition vtkIndent.h:29
Allocate and hold a VTK object.
Definition vtkNew.h:58
represent and manipulate 3D points
Definition vtkPoints.h:30
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:72
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
Definition vtkProperty.h:60
a vtkAbstractArray subclass for strings
An actor that displays text.
An actor that displays text.
represent text properties.
create polygonal text
abstract specification for Viewports
Definition vtkViewport.h:46
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_DEPRECATED_IN_9_3_0(reason)
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO