VTK  9.1.0
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=========================================================================*/
59#ifndef vtkAxisActor_h
60#define vtkAxisActor_h
61
62#include "vtkActor.h"
63#include "vtkRenderingAnnotationModule.h" // For export macro
64
65class vtkAxisFollower;
66class vtkCamera;
67class vtkCoordinate;
68class vtkFollower;
69class vtkPoints;
70class vtkPolyData;
73class vtkProperty2D;
74class vtkStringArray;
75class vtkTextActor;
76class vtkTextActor3D;
77class vtkTextProperty;
78class vtkVectorText;
79
80class VTKRENDERINGANNOTATION_EXPORT vtkAxisActor : public vtkActor
81{
82public:
83 vtkTypeMacro(vtkAxisActor, vtkActor);
84 void PrintSelf(ostream& os, vtkIndent indent) override;
85
89 static vtkAxisActor* New();
90
92
96 virtual void SetPoint1(double x[3]) { this->SetPoint1(x[0], x[1], x[2]); }
97 virtual void SetPoint1(double x, double y, double z);
98 virtual double* GetPoint1();
100
102
106 virtual void SetPoint2(double x[3]) { this->SetPoint2(x[0], x[1], x[2]); }
107 virtual void SetPoint2(double x, double y, double z);
108 virtual double* GetPoint2();
110
112
116 vtkSetVector2Macro(Range, double);
117 vtkGetVectorMacro(Range, double, 2);
119
121
124 void SetBounds(const double bounds[6]);
125 void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
126 double* GetBounds(void) VTK_SIZEHINT(6) override;
127 void GetBounds(double bounds[6]);
129
131
134 vtkSetStringMacro(LabelFormat);
135 vtkGetStringMacro(LabelFormat);
137
139
146 vtkSetMacro(UseTextActor3D, int);
147 vtkGetMacro(UseTextActor3D, int);
149
151
154 vtkSetMacro(MinorTicksVisible, vtkTypeBool);
155 vtkGetMacro(MinorTicksVisible, vtkTypeBool);
156 vtkBooleanMacro(MinorTicksVisible, vtkTypeBool);
158
160
163 void SetTitle(const char* t);
164 vtkGetStringMacro(Title);
166
168
171 void SetExponent(const char* t);
172 vtkGetStringMacro(Exponent);
174
176
179 vtkSetMacro(MajorTickSize, double);
180 vtkGetMacro(MajorTickSize, double);
182
184
187 vtkSetMacro(MinorTickSize, double);
188 vtkGetMacro(MinorTickSize, double);
190
192 {
193 VTK_TICKS_INSIDE = 0,
194 VTK_TICKS_OUTSIDE = 1,
195 VTK_TICKS_BOTH = 2
196 };
197
199
204 vtkSetClampMacro(TickLocation, int, VTK_TICKS_INSIDE, VTK_TICKS_BOTH);
205 vtkGetMacro(TickLocation, int);
207
208 void SetTickLocationToInside(void) { this->SetTickLocation(VTK_TICKS_INSIDE); }
209 void SetTickLocationToOutside(void) { this->SetTickLocation(VTK_TICKS_OUTSIDE); }
210 void SetTickLocationToBoth(void) { this->SetTickLocation(VTK_TICKS_BOTH); }
211
213
216 vtkSetMacro(AxisVisibility, vtkTypeBool);
217 vtkGetMacro(AxisVisibility, vtkTypeBool);
218 vtkBooleanMacro(AxisVisibility, vtkTypeBool);
220
222
225 vtkSetMacro(TickVisibility, vtkTypeBool);
226 vtkGetMacro(TickVisibility, vtkTypeBool);
227 vtkBooleanMacro(TickVisibility, vtkTypeBool);
229
231
234 vtkSetMacro(LabelVisibility, vtkTypeBool);
235 vtkGetMacro(LabelVisibility, vtkTypeBool);
236 vtkBooleanMacro(LabelVisibility, vtkTypeBool);
238
240
243 vtkSetMacro(TitleVisibility, vtkTypeBool);
244 vtkGetMacro(TitleVisibility, vtkTypeBool);
245 vtkBooleanMacro(TitleVisibility, vtkTypeBool);
247
249
252 vtkSetMacro(ExponentVisibility, bool);
253 vtkGetMacro(ExponentVisibility, bool);
254 vtkBooleanMacro(ExponentVisibility, bool);
256
258
261 vtkSetMacro(LastMajorTickPointCorrection, bool);
262 vtkGetMacro(LastMajorTickPointCorrection, bool);
263 vtkBooleanMacro(LastMajorTickPointCorrection, bool);
265
267 {
268 VTK_ALIGN_TOP = 0,
269 VTK_ALIGN_BOTTOM = 1,
270 VTK_ALIGN_POINT1 = 2,
271 VTK_ALIGN_POINT2 = 3
272 };
273
275
280 vtkGetMacro(TitleAlignLocation, int);
282
284
288 virtual void SetExponentLocation(int location);
289 vtkGetMacro(ExponentLocation, int);
291
293
297 vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
299
301
305 vtkGetObjectMacro(LabelTextProperty, vtkTextProperty);
307
309
315
317
323
325
331
333
339
341
347
349
355
357
363
365
368 vtkSetMacro(DrawGridlines, vtkTypeBool);
369 vtkGetMacro(DrawGridlines, vtkTypeBool);
370 vtkBooleanMacro(DrawGridlines, vtkTypeBool);
372
374
379 vtkSetMacro(DrawGridlinesOnly, vtkTypeBool);
380 vtkGetMacro(DrawGridlinesOnly, vtkTypeBool);
381 vtkBooleanMacro(DrawGridlinesOnly, vtkTypeBool);
383
384 vtkSetMacro(DrawGridlinesLocation, int);
385 vtkGetMacro(DrawGridlinesLocation, int);
386
388
391 vtkSetMacro(DrawInnerGridlines, vtkTypeBool);
392 vtkGetMacro(DrawInnerGridlines, vtkTypeBool);
393 vtkBooleanMacro(DrawInnerGridlines, vtkTypeBool);
395
397
400 vtkSetMacro(GridlineXLength, double);
401 vtkGetMacro(GridlineXLength, double);
402 vtkSetMacro(GridlineYLength, double);
403 vtkGetMacro(GridlineYLength, double);
404 vtkSetMacro(GridlineZLength, double);
405 vtkGetMacro(GridlineZLength, double);
407
409
412 vtkSetMacro(DrawGridpolys, vtkTypeBool);
413 vtkGetMacro(DrawGridpolys, vtkTypeBool);
414 vtkBooleanMacro(DrawGridpolys, vtkTypeBool);
416
418 {
419 VTK_AXIS_TYPE_X = 0,
420 VTK_AXIS_TYPE_Y = 1,
421 VTK_AXIS_TYPE_Z = 2
422 };
423
425
428 vtkSetClampMacro(AxisType, int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
429 vtkGetMacro(AxisType, int);
430 void SetAxisTypeToX(void) { this->SetAxisType(VTK_AXIS_TYPE_X); }
431 void SetAxisTypeToY(void) { this->SetAxisType(VTK_AXIS_TYPE_Y); }
432 void SetAxisTypeToZ(void) { this->SetAxisType(VTK_AXIS_TYPE_Z); }
434
436 {
437 VTK_AXIS_POS_MINMIN = 0,
438 VTK_AXIS_POS_MINMAX = 1,
439 VTK_AXIS_POS_MAXMAX = 2,
440 VTK_AXIS_POS_MAXMIN = 3
441 };
442
444
447 vtkSetMacro(Log, bool);
448 vtkGetMacro(Log, bool);
449 vtkBooleanMacro(Log, bool);
451
453
460 vtkSetClampMacro(AxisPosition, int, VTK_AXIS_POS_MINMIN, VTK_AXIS_POS_MAXMIN);
461 vtkGetMacro(AxisPosition, int);
463
464 void SetAxisPositionToMinMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMIN); }
465 void SetAxisPositionToMinMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMAX); }
466 void SetAxisPositionToMaxMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMAX); }
467 void SetAxisPositionToMaxMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMIN); }
468
470
474 virtual void SetCamera(vtkCamera*);
475 vtkGetObjectMacro(Camera, vtkCamera);
477
479
482 int RenderOpaqueGeometry(vtkViewport* viewport) override;
485 int RenderOverlay(vtkViewport* viewport) override;
488
495
496 double ComputeMaxLabelLength(const double[3]);
497 double ComputeTitleLength(const double[3]);
498
499 void SetLabelScale(const double scale);
500 void SetLabelScale(int labelIndex, const double scale);
501 void SetTitleScale(const double scale);
502
504
508 vtkSetMacro(MinorStart, double);
509 vtkGetMacro(MinorStart, double);
510 double GetMajorStart(int axis);
511 void SetMajorStart(int axis, double value);
512 // vtkSetMacro(MajorStart, double);
513 // vtkGetMacro(MajorStart, double);
514 vtkSetMacro(DeltaMinor, double);
515 vtkGetMacro(DeltaMinor, double);
516 double GetDeltaMajor(int axis);
517 void SetDeltaMajor(int axis, double value);
518 // vtkSetMacro(DeltaMajor, double);
519 // vtkGetMacro(DeltaMajor, double);
521
523
529 vtkSetMacro(MinorRangeStart, double);
530 vtkGetMacro(MinorRangeStart, double);
531 vtkSetMacro(MajorRangeStart, double);
532 vtkGetMacro(MajorRangeStart, double);
533 vtkSetMacro(DeltaRangeMinor, double);
534 vtkGetMacro(DeltaRangeMinor, double);
535 vtkSetMacro(DeltaRangeMajor, double);
536 vtkGetMacro(DeltaRangeMajor, double);
538
540
541 void BuildAxis(vtkViewport* viewport, bool);
542
544
548 vtkGetObjectMacro(TitleActor, vtkAxisFollower);
550
552
555 vtkGetObjectMacro(ExponentActor, vtkAxisFollower);
557
561 inline vtkAxisFollower** GetLabelActors() { return this->LabelActors; }
562
564
568 vtkGetObjectMacro(TitleProp3D, vtkProp3DAxisFollower);
570
574 inline vtkProp3DAxisFollower** GetLabelProps3D() { return this->LabelProps3D; }
575
577
581 vtkGetObjectMacro(ExponentProp3D, vtkProp3DAxisFollower);
583
585
589 vtkGetMacro(NumberOfLabelsBuilt, int);
591
593
597 vtkSetMacro(CalculateTitleOffset, vtkTypeBool);
598 vtkGetMacro(CalculateTitleOffset, vtkTypeBool);
599 vtkBooleanMacro(CalculateTitleOffset, vtkTypeBool);
601
603
607 vtkSetMacro(CalculateLabelOffset, vtkTypeBool);
608 vtkGetMacro(CalculateLabelOffset, vtkTypeBool);
609 vtkBooleanMacro(CalculateLabelOffset, vtkTypeBool);
611
613
616 vtkSetMacro(Use2DMode, int);
617 vtkGetMacro(Use2DMode, int);
619
621
624 vtkSetMacro(VerticalOffsetXTitle2D, double);
625 vtkGetMacro(VerticalOffsetXTitle2D, double);
627
629
632 vtkSetMacro(HorizontalOffsetYTitle2D, double);
633 vtkGetMacro(HorizontalOffsetYTitle2D, double);
635
637
640 vtkSetMacro(SaveTitlePosition, int);
641 vtkGetMacro(SaveTitlePosition, int);
643
645
648 vtkSetVector3Macro(AxisBaseForX, double);
649 vtkGetVector3Macro(AxisBaseForX, double);
651
653
656 vtkSetVector3Macro(AxisBaseForY, double);
657 vtkGetVector3Macro(AxisBaseForY, double);
659
661
664 vtkSetVector3Macro(AxisBaseForZ, double);
665 vtkGetVector3Macro(AxisBaseForZ, double);
667
669
672 vtkSetMacro(AxisOnOrigin, int);
673 vtkGetMacro(AxisOnOrigin, int);
675
677
680 vtkSetMacro(LabelOffset, double);
681 vtkGetMacro(LabelOffset, double);
682 vtkSetMacro(TitleOffset, double);
683 vtkGetMacro(TitleOffset, double);
684 vtkSetMacro(ExponentOffset, double);
685 vtkGetMacro(ExponentOffset, double);
686 vtkSetMacro(ScreenSize, double);
687 vtkGetMacro(ScreenSize, double);
689
690protected:
692 ~vtkAxisActor() override;
693
694 char* Title;
695 char* Exponent;
696 double Range[2];
697 double LastRange[2];
703
710
716
722
726 int DrawGridlinesLocation; // 0: all | 1: closest | 2: farest
727 int LastDrawGridlinesLocation; // 0: all | 1: closest | 2: farest
731
734
737
745
746 bool Log;
749
750 // coordinate system for axisAxtor, relative to world coordinates
751 double AxisBaseForX[3];
752 double AxisBaseForY[3];
753 double AxisBaseForZ[3];
754
755private:
756 vtkAxisActor(const vtkAxisActor&) = delete;
757 void operator=(const vtkAxisActor&) = delete;
758
759 void TransformBounds(vtkViewport*, double bnds[6]);
760
761 void BuildLabels(vtkViewport*, bool);
762 void BuildLabels2D(vtkViewport*, bool);
763 void SetLabelPositions(vtkViewport*, bool);
764 void SetLabelPositions2D(vtkViewport*, bool);
765
770 void RotateActor2DFromAxisProjection(vtkTextActor* pActor2D);
771
775 void InitTitle();
776
780 void InitExponent();
781
788 void BuildTitle(bool);
789
794 void BuildExponent(bool force);
795
796 void BuildExponent2D(vtkViewport* viewport, bool force);
797
798 void BuildTitle2D(vtkViewport* viewport, bool);
799
800 void SetAxisPointsAndLines(void);
801
802 bool BuildTickPoints(double p1[3], double p2[3], bool force);
803
804 // Build major ticks for linear scale.
805 void BuildMajorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
806
807 // Build major ticks for logarithmic scale.
808 void BuildMajorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
809
810 // Build minor ticks for linear scale.
811 void BuildMinorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
812
813 // Build minor ticks for logarithmic scale enabled
814 void BuildMinorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
815
816 void BuildAxisGridLines(double p1[3], double p2[3], double localCoordSys[3][3]);
817
818 bool TickVisibilityChanged(void);
819 vtkProperty* NewTitleProperty();
820 vtkProperty2D* NewTitleProperty2D();
821 vtkProperty* NewLabelProperty();
822
823 bool BoundsDisplayCoordinateChanged(vtkViewport* viewport);
824
825 vtkCoordinate* Point1Coordinate;
826 vtkCoordinate* Point2Coordinate;
827
828 double MajorTickSize;
829 double MinorTickSize;
830
831 // For each axis (for the inner gridline generation)
832 double MajorStart[3];
833 double DeltaMajor[3];
834 double MinorStart;
835 double DeltaMinor;
836
837 // For the ticks, w.r.t to the set range
838 double MajorRangeStart;
839 double MinorRangeStart;
840
844 double DeltaRangeMinor;
845
849 double DeltaRangeMajor;
850
851 int LastAxisPosition;
852 int LastAxisType;
853 int LastTickLocation;
854 double LastLabelStart;
855
856 vtkPoints* MinorTickPts;
857 vtkPoints* MajorTickPts;
858 vtkPoints* GridlinePts;
859 vtkPoints* InnerGridlinePts;
860 vtkPoints* GridpolyPts;
861
862 vtkVectorText* TitleVector;
863 vtkPolyDataMapper* TitleMapper;
864 vtkAxisFollower* TitleActor;
865 vtkTextActor* TitleActor2D;
866 vtkProp3DAxisFollower* TitleProp3D;
867 vtkTextActor3D* TitleActor3D;
868 vtkTextProperty* TitleTextProperty;
869
871
874 vtkVectorText* ExponentVector;
875 vtkPolyDataMapper* ExponentMapper;
876 vtkAxisFollower* ExponentActor;
877 vtkTextActor* ExponentActor2D;
878 vtkProp3DAxisFollower* ExponentProp3D;
879 vtkTextActor3D* ExponentActor3D;
881
882 vtkVectorText** LabelVectors;
883 vtkPolyDataMapper** LabelMappers;
884 vtkAxisFollower** LabelActors;
885 vtkProp3DAxisFollower** LabelProps3D;
886 vtkTextActor** LabelActors2D;
887 vtkTextActor3D** LabelActors3D;
888 vtkTextProperty* LabelTextProperty;
889
890 // Main line axis
891 vtkPolyData* AxisLines;
892 vtkPolyDataMapper* AxisLinesMapper;
893 vtkActor* AxisLinesActor;
894
895 // Ticks of the axis
896 vtkPolyData *AxisMajorTicks, *AxisMinorTicks;
897 vtkPolyDataMapper *AxisMajorTicksMapper, *AxisMinorTicksMapper;
898 vtkActor *AxisMajorTicksActor, *AxisMinorTicksActor;
899
900 vtkPolyData* Gridlines;
901 vtkPolyDataMapper* GridlinesMapper;
902 vtkActor* GridlinesActor;
903 vtkPolyData* InnerGridlines;
904 vtkPolyDataMapper* InnerGridlinesMapper;
905 vtkActor* InnerGridlinesActor;
906 vtkPolyData* Gridpolys;
907 vtkPolyDataMapper* GridpolysMapper;
908 vtkActor* GridpolysActor;
909
910 vtkCamera* Camera;
911 vtkTimeStamp BuildTime;
912 vtkTimeStamp BuildTickPointsTime;
913 vtkTimeStamp BoundsTime;
914 vtkTimeStamp LabelBuildTime;
915 vtkTimeStamp TitleTextTime;
916 vtkTimeStamp ExponentTextTime;
917
918 int AxisOnOrigin;
919
920 int AxisHasZeroLength;
921
922 vtkTypeBool CalculateTitleOffset;
923 vtkTypeBool CalculateLabelOffset;
924
928 int Use2DMode;
929
934 double VerticalOffsetXTitle2D;
935
940 double HorizontalOffsetYTitle2D;
941
948 int SaveTitlePosition;
949
953 double TitleConstantPosition[2];
954
958 bool NeedBuild2D;
959
960 double LastMinDisplayCoordinate[3];
961 double LastMaxDisplayCoordinate[3];
962 double TickVector[3];
963
965
968 double ScreenSize;
969 double LabelOffset;
970 double TitleOffset;
971 double ExponentOffset;
973};
974
975#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:55
Create an axis with tick marks and labels.
Definition: vtkAxisActor.h:81
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int LastDrawGridlinesLocation
Definition: vtkAxisActor.h:727
double GridlineZLength
Definition: vtkAxisActor.h:730
int LastMinorTicksVisible
Definition: vtkAxisActor.h:702
void SetAxisTypeToZ(void)
Set/Get the type of this axis.
Definition: vtkAxisActor.h:432
virtual void SetPoint2(double x, double y, double z)
Specify the position of the second point defining the axis.
vtkTypeBool LabelVisibility
Definition: vtkAxisActor.h:741
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
void SetAxisPositionToMinMin(void)
Definition: vtkAxisActor.h:464
virtual void SetPoint2(double x[3])
Specify the position of the second point defining the axis.
Definition: vtkAxisActor.h:106
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
Definition: vtkAxisActor.h:742
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
Definition: vtkAxisActor.h:735
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
Definition: vtkAxisActor.h:700
void SetTickLocationToOutside(void)
Definition: vtkAxisActor.h:209
double GetMajorStart(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
double GridlineYLength
Definition: vtkAxisActor.h:729
vtkTypeBool DrawInnerGridlines
Definition: vtkAxisActor.h:732
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.
Definition: vtkAxisActor.h:561
double GridlineXLength
Definition: vtkAxisActor.h:728
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
Definition: vtkAxisActor.h:698
bool LastMajorTickPointCorrection
Definition: vtkAxisActor.h:744
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.
Definition: vtkAxisActor.h:96
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
vtkTypeBool DrawGridlines
Definition: vtkAxisActor.h:723
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.
Definition: vtkAxisActor.h:715
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.
Definition: vtkAxisActor.h:430
vtkTypeBool DrawGridlinesOnly
Definition: vtkAxisActor.h:724
vtkTypeBool TickVisibility
Definition: vtkAxisActor.h:739
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
Definition: vtkAxisActor.h:738
char * Exponent
Definition: vtkAxisActor.h:695
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
Definition: vtkAxisActor.h:721
int LastDrawInnerGridlines
Definition: vtkAxisActor.h:733
void SetAxisPositionToMaxMax(void)
Definition: vtkAxisActor.h:466
bool ExponentVisibility
Definition: vtkAxisActor.h:743
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)
int LastDrawGridpolys
Definition: vtkAxisActor.h:736
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.
Definition: vtkAxisActor.h:574
void SetLabels(vtkStringArray *labels)
void SetTickLocationToInside(void)
Definition: vtkAxisActor.h:208
vtkProperty * GetAxisMinorTicksProperty()
Get/Set axis actor property (axis and its ticks)
int LastTickVisibility
Definition: vtkAxisActor.h:740
int TickLocation
The location of the ticks.
Definition: vtkAxisActor.h:709
void SetAxisPositionToMinMax(void)
Definition: vtkAxisActor.h:465
int LastDrawGridlines
Definition: vtkAxisActor.h:725
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.
Definition: vtkAxisActor.h:431
vtkTypeBool MinorTicksVisible
Definition: vtkAxisActor.h:701
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)
Definition: vtkAxisActor.h:210
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
Definition: vtkAxisActor.h:726
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
void SetAxisPositionToMaxMin(void)
Definition: vtkAxisActor.h:467
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:55
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:86
a subclass of actor that always faces the camera
Definition: vtkFollower.h:50
a simple class to control print indentation
Definition: vtkIndent.h:43
represent and manipulate 3D points
Definition: vtkPoints.h:43
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:95
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
Definition: vtkProperty2D.h:47
represent surface properties of a geometric object
Definition: vtkProperty.h:71
a vtkAbstractArray subclass for strings
An actor that displays text.
An actor that displays text.
Definition: vtkTextActor.h:60
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:42
create polygonal text
Definition: vtkVectorText.h:51
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:45
@ location
Definition: vtkX3D.h:412
@ value
Definition: vtkX3D.h:226
@ scale
Definition: vtkX3D.h:235
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.
Definition: vtkRange.h:85
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_SIZEHINT(...)