VTK  9.2.6
vtkAxisActor.h
Go to the documentation of this file.
1/*=========================================================================
2Program: Visualization Toolkit
3Module: vtkAxisActor.h
4Language: C++
5
6Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8This software is distributed WITHOUT ANY WARRANTY; without even
9the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10PURPOSE. See the above copyright notice for more information.
11=========================================================================*/
62#ifndef vtkAxisActor_h
63#define vtkAxisActor_h
64
65#include "vtkActor.h"
66#include "vtkRenderingAnnotationModule.h" // For export macro
67
68class vtkAxisFollower;
69class vtkCamera;
70class vtkCoordinate;
71class vtkFollower;
72class vtkPoints;
73class vtkPolyData;
76class vtkProperty2D;
77class vtkStringArray;
78class vtkTextActor;
79class vtkTextActor3D;
80class vtkTextProperty;
81class vtkVectorText;
82
83class VTKRENDERINGANNOTATION_EXPORT vtkAxisActor : public vtkActor
84{
85public:
86 vtkTypeMacro(vtkAxisActor, vtkActor);
87 void PrintSelf(ostream& os, vtkIndent indent) override;
88
92 static vtkAxisActor* New();
93
95
99 virtual void SetPoint1(double x[3]) { this->SetPoint1(x[0], x[1], x[2]); }
100 virtual void SetPoint1(double x, double y, double z);
101 virtual double* GetPoint1();
103
105
109 virtual void SetPoint2(double x[3]) { this->SetPoint2(x[0], x[1], x[2]); }
110 virtual void SetPoint2(double x, double y, double z);
111 virtual double* GetPoint2();
113
115
119 vtkSetVector2Macro(Range, double);
120 vtkGetVectorMacro(Range, double, 2);
122
124
127 void SetBounds(const double bounds[6]);
128 void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
129 double* GetBounds(void) VTK_SIZEHINT(6) override;
130 void GetBounds(double bounds[6]);
132
134
137 vtkSetStringMacro(LabelFormat);
138 vtkGetStringMacro(LabelFormat);
140
142
149 vtkSetMacro(UseTextActor3D, int);
150 vtkGetMacro(UseTextActor3D, int);
152
154
157 vtkSetMacro(MinorTicksVisible, vtkTypeBool);
158 vtkGetMacro(MinorTicksVisible, vtkTypeBool);
159 vtkBooleanMacro(MinorTicksVisible, vtkTypeBool);
161
163
166 void SetTitle(const char* t);
167 vtkGetStringMacro(Title);
169
171
174 void SetExponent(const char* t);
175 vtkGetStringMacro(Exponent);
177
179
182 vtkSetMacro(MajorTickSize, double);
183 vtkGetMacro(MajorTickSize, double);
185
187
190 vtkSetMacro(MinorTickSize, double);
191 vtkGetMacro(MinorTickSize, double);
193
195 {
196 VTK_TICKS_INSIDE = 0,
197 VTK_TICKS_OUTSIDE = 1,
198 VTK_TICKS_BOTH = 2
199 };
200
202
207 vtkSetClampMacro(TickLocation, int, VTK_TICKS_INSIDE, VTK_TICKS_BOTH);
208 vtkGetMacro(TickLocation, int);
210
211 void SetTickLocationToInside(void) { this->SetTickLocation(VTK_TICKS_INSIDE); }
212 void SetTickLocationToOutside(void) { this->SetTickLocation(VTK_TICKS_OUTSIDE); }
213 void SetTickLocationToBoth(void) { this->SetTickLocation(VTK_TICKS_BOTH); }
214
216
219 vtkSetMacro(AxisVisibility, vtkTypeBool);
220 vtkGetMacro(AxisVisibility, vtkTypeBool);
221 vtkBooleanMacro(AxisVisibility, vtkTypeBool);
223
225
228 vtkSetMacro(TickVisibility, vtkTypeBool);
229 vtkGetMacro(TickVisibility, vtkTypeBool);
230 vtkBooleanMacro(TickVisibility, vtkTypeBool);
232
234
237 vtkSetMacro(LabelVisibility, vtkTypeBool);
238 vtkGetMacro(LabelVisibility, vtkTypeBool);
239 vtkBooleanMacro(LabelVisibility, vtkTypeBool);
241
243
246 vtkSetMacro(TitleVisibility, vtkTypeBool);
247 vtkGetMacro(TitleVisibility, vtkTypeBool);
248 vtkBooleanMacro(TitleVisibility, vtkTypeBool);
250
252
255 vtkSetMacro(ExponentVisibility, bool);
256 vtkGetMacro(ExponentVisibility, bool);
257 vtkBooleanMacro(ExponentVisibility, bool);
259
261
264 vtkSetMacro(LastMajorTickPointCorrection, bool);
265 vtkGetMacro(LastMajorTickPointCorrection, bool);
266 vtkBooleanMacro(LastMajorTickPointCorrection, bool);
268
270 {
271 VTK_ALIGN_TOP = 0,
272 VTK_ALIGN_BOTTOM = 1,
273 VTK_ALIGN_POINT1 = 2,
274 VTK_ALIGN_POINT2 = 3
275 };
276
278
282 virtual void SetTitleAlignLocation(int location);
283 vtkGetMacro(TitleAlignLocation, int);
285
287
291 virtual void SetExponentLocation(int location);
292 vtkGetMacro(ExponentLocation, int);
294
296
300 vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
302
304
308 vtkGetObjectMacro(LabelTextProperty, vtkTextProperty);
310
312
318
320
326
328
334
336
342
344
350
352
358
360
366
368
371 vtkSetMacro(DrawGridlines, vtkTypeBool);
372 vtkGetMacro(DrawGridlines, vtkTypeBool);
373 vtkBooleanMacro(DrawGridlines, vtkTypeBool);
375
377
382 vtkSetMacro(DrawGridlinesOnly, vtkTypeBool);
383 vtkGetMacro(DrawGridlinesOnly, vtkTypeBool);
384 vtkBooleanMacro(DrawGridlinesOnly, vtkTypeBool);
386
387 vtkSetMacro(DrawGridlinesLocation, int);
388 vtkGetMacro(DrawGridlinesLocation, int);
389
391
394 vtkSetMacro(DrawInnerGridlines, vtkTypeBool);
395 vtkGetMacro(DrawInnerGridlines, vtkTypeBool);
396 vtkBooleanMacro(DrawInnerGridlines, vtkTypeBool);
398
400
403 vtkSetMacro(GridlineXLength, double);
404 vtkGetMacro(GridlineXLength, double);
405 vtkSetMacro(GridlineYLength, double);
406 vtkGetMacro(GridlineYLength, double);
407 vtkSetMacro(GridlineZLength, double);
408 vtkGetMacro(GridlineZLength, double);
410
412
415 vtkSetMacro(DrawGridpolys, vtkTypeBool);
416 vtkGetMacro(DrawGridpolys, vtkTypeBool);
417 vtkBooleanMacro(DrawGridpolys, vtkTypeBool);
419
421 {
422 VTK_AXIS_TYPE_X = 0,
423 VTK_AXIS_TYPE_Y = 1,
424 VTK_AXIS_TYPE_Z = 2
425 };
426
428
431 vtkSetClampMacro(AxisType, int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
432 vtkGetMacro(AxisType, int);
433 void SetAxisTypeToX(void) { this->SetAxisType(VTK_AXIS_TYPE_X); }
434 void SetAxisTypeToY(void) { this->SetAxisType(VTK_AXIS_TYPE_Y); }
435 void SetAxisTypeToZ(void) { this->SetAxisType(VTK_AXIS_TYPE_Z); }
437
439 {
440 VTK_AXIS_POS_MINMIN = 0,
441 VTK_AXIS_POS_MINMAX = 1,
442 VTK_AXIS_POS_MAXMAX = 2,
443 VTK_AXIS_POS_MAXMIN = 3
444 };
445
447
450 vtkSetMacro(Log, bool);
451 vtkGetMacro(Log, bool);
452 vtkBooleanMacro(Log, bool);
454
456
463 vtkSetClampMacro(AxisPosition, int, VTK_AXIS_POS_MINMIN, VTK_AXIS_POS_MAXMIN);
464 vtkGetMacro(AxisPosition, int);
466
467 void SetAxisPositionToMinMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMIN); }
468 void SetAxisPositionToMinMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMAX); }
469 void SetAxisPositionToMaxMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMAX); }
470 void SetAxisPositionToMaxMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMIN); }
471
473
477 virtual void SetCamera(vtkCamera*);
478 vtkGetObjectMacro(Camera, vtkCamera);
480
482
485 int RenderOpaqueGeometry(vtkViewport* viewport) override;
488 int RenderOverlay(vtkViewport* viewport) override;
491
498
499 double ComputeMaxLabelLength(const double[3]);
500 double ComputeTitleLength(const double[3]);
501
502 void SetLabelScale(const double scale);
503 void SetLabelScale(int labelIndex, const double scale);
504 void SetTitleScale(const double scale);
505
507
511 vtkSetMacro(MinorStart, double);
512 vtkGetMacro(MinorStart, double);
513 double GetMajorStart(int axis);
514 void SetMajorStart(int axis, double value);
515 // vtkSetMacro(MajorStart, double);
516 // vtkGetMacro(MajorStart, double);
517 vtkSetMacro(DeltaMinor, double);
518 vtkGetMacro(DeltaMinor, double);
519 double GetDeltaMajor(int axis);
520 void SetDeltaMajor(int axis, double value);
521 // vtkSetMacro(DeltaMajor, double);
522 // vtkGetMacro(DeltaMajor, double);
524
526
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);
541
543
544 void BuildAxis(vtkViewport* viewport, bool);
545
547
551 vtkGetObjectMacro(TitleActor, vtkAxisFollower);
553
555
558 vtkGetObjectMacro(ExponentActor, vtkAxisFollower);
560
564 inline vtkAxisFollower** GetLabelActors() { return this->LabelActors; }
565
567
571 vtkGetObjectMacro(TitleProp3D, vtkProp3DAxisFollower);
573
577 inline vtkProp3DAxisFollower** GetLabelProps3D() { return this->LabelProps3D; }
578
580
584 vtkGetObjectMacro(ExponentProp3D, vtkProp3DAxisFollower);
586
588
592 vtkGetMacro(NumberOfLabelsBuilt, int);
594
596
600 vtkSetMacro(CalculateTitleOffset, vtkTypeBool);
601 vtkGetMacro(CalculateTitleOffset, vtkTypeBool);
602 vtkBooleanMacro(CalculateTitleOffset, vtkTypeBool);
604
606
610 vtkSetMacro(CalculateLabelOffset, vtkTypeBool);
611 vtkGetMacro(CalculateLabelOffset, vtkTypeBool);
612 vtkBooleanMacro(CalculateLabelOffset, vtkTypeBool);
614
616
619 vtkSetMacro(Use2DMode, int);
620 vtkGetMacro(Use2DMode, int);
622
624
627 vtkSetMacro(VerticalOffsetXTitle2D, double);
628 vtkGetMacro(VerticalOffsetXTitle2D, double);
630
632
635 vtkSetMacro(HorizontalOffsetYTitle2D, double);
636 vtkGetMacro(HorizontalOffsetYTitle2D, double);
638
640
643 vtkSetMacro(SaveTitlePosition, int);
644 vtkGetMacro(SaveTitlePosition, int);
646
648
651 vtkSetVector3Macro(AxisBaseForX, double);
652 vtkGetVector3Macro(AxisBaseForX, double);
654
656
659 vtkSetVector3Macro(AxisBaseForY, double);
660 vtkGetVector3Macro(AxisBaseForY, double);
662
664
667 vtkSetVector3Macro(AxisBaseForZ, double);
668 vtkGetVector3Macro(AxisBaseForZ, double);
670
672
675 vtkSetMacro(AxisOnOrigin, int);
676 vtkGetMacro(AxisOnOrigin, int);
678
680
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);
692
693protected:
695 ~vtkAxisActor() override;
696
697 char* Title;
698 char* Exponent;
699 double Range[2];
700 double LastRange[2];
706
713
719
725
729 int DrawGridlinesLocation; // 0: all | 1: closest | 2: farest
730 int LastDrawGridlinesLocation; // 0: all | 1: closest | 2: farest
734
737
740
748
749 bool Log;
752
753 // coordinate system for axisAxtor, relative to world coordinates
754 double AxisBaseForX[3];
755 double AxisBaseForY[3];
756 double AxisBaseForZ[3];
757
758private:
759 vtkAxisActor(const vtkAxisActor&) = delete;
760 void operator=(const vtkAxisActor&) = delete;
761
762 void TransformBounds(vtkViewport*, double bnds[6]);
763
764 void BuildLabels(vtkViewport*, bool);
765 void BuildLabels2D(vtkViewport*, bool);
766 void SetLabelPositions(vtkViewport*, bool);
767 void SetLabelPositions2D(vtkViewport*, bool);
768
773 void RotateActor2DFromAxisProjection(vtkTextActor* pActor2D);
774
778 void InitTitle();
779
783 void InitExponent();
784
791 void BuildTitle(bool);
792
797 void BuildExponent(bool force);
798
799 void BuildExponent2D(vtkViewport* viewport, bool force);
800
801 void BuildTitle2D(vtkViewport* viewport, bool);
802
803 void SetAxisPointsAndLines(void);
804
805 bool BuildTickPoints(double p1[3], double p2[3], bool force);
806
807 // Build major ticks for linear scale.
808 void BuildMajorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
809
810 // Build major ticks for logarithmic scale.
811 void BuildMajorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
812
813 // Build minor ticks for linear scale.
814 void BuildMinorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
815
816 // Build minor ticks for logarithmic scale enabled
817 void BuildMinorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
818
819 void BuildAxisGridLines(double p1[3], double p2[3], double localCoordSys[3][3]);
820
821 bool TickVisibilityChanged(void);
822 vtkProperty* NewTitleProperty();
823 vtkProperty2D* NewTitleProperty2D();
824 vtkProperty* NewLabelProperty();
825
826 bool BoundsDisplayCoordinateChanged(vtkViewport* viewport);
827
828 vtkCoordinate* Point1Coordinate;
829 vtkCoordinate* Point2Coordinate;
830
831 double MajorTickSize;
832 double MinorTickSize;
833
834 // For each axis (for the inner gridline generation)
835 double MajorStart[3];
836 double DeltaMajor[3];
837 double MinorStart;
838 double DeltaMinor;
839
840 // For the ticks, w.r.t to the set range
841 double MajorRangeStart;
842 double MinorRangeStart;
843
847 double DeltaRangeMinor;
848
852 double DeltaRangeMajor;
853
854 int LastAxisPosition;
855 int LastAxisType;
856 int LastTickLocation;
857 double LastLabelStart;
858
859 vtkPoints* MinorTickPts;
860 vtkPoints* MajorTickPts;
861 vtkPoints* GridlinePts;
862 vtkPoints* InnerGridlinePts;
863 vtkPoints* GridpolyPts;
864
865 vtkVectorText* TitleVector;
866 vtkPolyDataMapper* TitleMapper;
867 vtkAxisFollower* TitleActor;
868 vtkTextActor* TitleActor2D;
869 vtkProp3DAxisFollower* TitleProp3D;
870 vtkTextActor3D* TitleActor3D;
871 vtkTextProperty* TitleTextProperty;
872
874
877 vtkVectorText* ExponentVector;
878 vtkPolyDataMapper* ExponentMapper;
879 vtkAxisFollower* ExponentActor;
880 vtkTextActor* ExponentActor2D;
881 vtkProp3DAxisFollower* ExponentProp3D;
882 vtkTextActor3D* ExponentActor3D;
884
885 vtkVectorText** LabelVectors;
886 vtkPolyDataMapper** LabelMappers;
887 vtkAxisFollower** LabelActors;
888 vtkProp3DAxisFollower** LabelProps3D;
889 vtkTextActor** LabelActors2D;
890 vtkTextActor3D** LabelActors3D;
891 vtkTextProperty* LabelTextProperty;
892
893 // Main line axis
894 vtkPolyData* AxisLines;
895 vtkPolyDataMapper* AxisLinesMapper;
896 vtkActor* AxisLinesActor;
897
898 // Ticks of the axis
899 vtkPolyData *AxisMajorTicks, *AxisMinorTicks;
900 vtkPolyDataMapper *AxisMajorTicksMapper, *AxisMinorTicksMapper;
901 vtkActor *AxisMajorTicksActor, *AxisMinorTicksActor;
902
903 vtkPolyData* Gridlines;
904 vtkPolyDataMapper* GridlinesMapper;
905 vtkActor* GridlinesActor;
906 vtkPolyData* InnerGridlines;
907 vtkPolyDataMapper* InnerGridlinesMapper;
908 vtkActor* InnerGridlinesActor;
909 vtkPolyData* Gridpolys;
910 vtkPolyDataMapper* GridpolysMapper;
911 vtkActor* GridpolysActor;
912
913 vtkCamera* Camera;
914 vtkTimeStamp BuildTime;
915 vtkTimeStamp BuildTickPointsTime;
916 vtkTimeStamp BoundsTime;
917 vtkTimeStamp LabelBuildTime;
918 vtkTimeStamp TitleTextTime;
919 vtkTimeStamp ExponentTextTime;
920
921 int AxisOnOrigin;
922
923 int AxisHasZeroLength;
924
925 vtkTypeBool CalculateTitleOffset;
926 vtkTypeBool CalculateLabelOffset;
927
931 int Use2DMode;
932
937 double VerticalOffsetXTitle2D;
938
943 double HorizontalOffsetYTitle2D;
944
951 int SaveTitlePosition;
952
956 double TitleConstantPosition[2];
957
961 bool NeedBuild2D;
962
963 double LastMinDisplayCoordinate[3];
964 double LastMaxDisplayCoordinate[3];
965 double TickVector[3];
966
968
971 double ScreenSize;
972 double LabelOffset;
973 double TitleOffset;
974 double ExponentOffset;
976};
977
978#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:61
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
double GridlineZLength
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.
~vtkAxisActor() override
double ComputeMaxLabelLength(const double[3])
int NumberOfLabelsBuilt
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...
double GridlineYLength
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.
double GridlineXLength
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.
char * LabelFormat
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)
bool ExponentVisibility
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
Definition vtkCamera.h:61
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:53
a simple class to control print indentation
Definition vtkIndent.h:49
represent and manipulate 3D points
Definition vtkPoints.h:49
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
Definition vtkProperty.h:77
a vtkAbstractArray subclass for strings
An actor that displays text.
An actor that displays text.
represent text properties.
record modification and/or execution time
create polygonal text
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_SIZEHINT(...)