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=========================================================================*/
69#ifndef vtkAxisActor_h
70#define vtkAxisActor_h
71
72#include "vtkActor.h"
73#include "vtkRenderingAnnotationModule.h" // For export macro
74
75class vtkAxisFollower;
76class vtkCamera;
77class vtkCoordinate;
78class vtkFollower;
79class vtkPoints;
80class vtkPolyData;
83class vtkProperty2D;
84class vtkStringArray;
85class vtkTextActor;
86class vtkTextActor3D;
87class vtkTextProperty;
88class vtkVectorText;
89
90class VTKRENDERINGANNOTATION_EXPORT vtkAxisActor : public vtkActor
91{
92public:
93 vtkTypeMacro(vtkAxisActor, vtkActor);
94 void PrintSelf(ostream& os, vtkIndent indent) override;
95
99 static vtkAxisActor* New();
100
102
106 virtual void SetPoint1(double x[3]) { this->SetPoint1(x[0], x[1], x[2]); }
107 virtual void SetPoint1(double x, double y, double z);
108 virtual double* GetPoint1();
110
112
116 virtual void SetPoint2(double x[3]) { this->SetPoint2(x[0], x[1], x[2]); }
117 virtual void SetPoint2(double x, double y, double z);
118 virtual double* GetPoint2();
120
122
126 vtkSetVector2Macro(Range, double);
127 vtkGetVectorMacro(Range, double, 2);
129
131
134 void SetBounds(const double bounds[6]);
135 void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
136 double* GetBounds(void) VTK_SIZEHINT(6) override;
137 void GetBounds(double bounds[6]);
139
141
144 vtkSetStringMacro(LabelFormat);
145 vtkGetStringMacro(LabelFormat);
147
149
156 vtkSetMacro(UseTextActor3D, int);
157 vtkGetMacro(UseTextActor3D, int);
159
161
164 vtkSetMacro(MinorTicksVisible, vtkTypeBool);
165 vtkGetMacro(MinorTicksVisible, vtkTypeBool);
166 vtkBooleanMacro(MinorTicksVisible, vtkTypeBool);
168
170
173 void SetTitle(const char* t);
174 vtkGetStringMacro(Title);
176
178
181 void SetExponent(const char* t);
182 vtkGetStringMacro(Exponent);
184
186
189 vtkSetMacro(MajorTickSize, double);
190 vtkGetMacro(MajorTickSize, double);
192
194
197 vtkSetMacro(MinorTickSize, double);
198 vtkGetMacro(MinorTickSize, double);
200
202 {
203 VTK_TICKS_INSIDE = 0,
204 VTK_TICKS_OUTSIDE = 1,
205 VTK_TICKS_BOTH = 2
206 };
207
209
214 vtkSetClampMacro(TickLocation, int, VTK_TICKS_INSIDE, VTK_TICKS_BOTH);
215 vtkGetMacro(TickLocation, int);
217
218 void SetTickLocationToInside(void) { this->SetTickLocation(VTK_TICKS_INSIDE); }
219 void SetTickLocationToOutside(void) { this->SetTickLocation(VTK_TICKS_OUTSIDE); }
220 void SetTickLocationToBoth(void) { this->SetTickLocation(VTK_TICKS_BOTH); }
221
223
226 vtkSetMacro(AxisVisibility, vtkTypeBool);
227 vtkGetMacro(AxisVisibility, vtkTypeBool);
228 vtkBooleanMacro(AxisVisibility, vtkTypeBool);
230
232
235 vtkSetMacro(TickVisibility, vtkTypeBool);
236 vtkGetMacro(TickVisibility, vtkTypeBool);
237 vtkBooleanMacro(TickVisibility, vtkTypeBool);
239
241
244 vtkSetMacro(LabelVisibility, vtkTypeBool);
245 vtkGetMacro(LabelVisibility, vtkTypeBool);
246 vtkBooleanMacro(LabelVisibility, vtkTypeBool);
248
250
253 vtkSetMacro(TitleVisibility, vtkTypeBool);
254 vtkGetMacro(TitleVisibility, vtkTypeBool);
255 vtkBooleanMacro(TitleVisibility, vtkTypeBool);
257
259
262 vtkSetMacro(ExponentVisibility, bool);
263 vtkGetMacro(ExponentVisibility, bool);
264 vtkBooleanMacro(ExponentVisibility, bool);
266
268
271 vtkSetMacro(LastMajorTickPointCorrection, bool);
272 vtkGetMacro(LastMajorTickPointCorrection, bool);
273 vtkBooleanMacro(LastMajorTickPointCorrection, bool);
275
277 {
278 VTK_ALIGN_TOP = 0,
279 VTK_ALIGN_BOTTOM = 1,
280 VTK_ALIGN_POINT1 = 2,
281 VTK_ALIGN_POINT2 = 3
282 };
283
285
289 virtual void SetTitleAlignLocation(int location);
290 vtkGetMacro(TitleAlignLocation, int);
292
294
298 virtual void SetExponentLocation(int location);
299 vtkGetMacro(ExponentLocation, int);
301
303
307 vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
309
311
315 vtkGetObjectMacro(LabelTextProperty, vtkTextProperty);
317
319
325
327
333
335
341
343
349
351
357
359
365
367
373
375
378 vtkSetMacro(DrawGridlines, vtkTypeBool);
379 vtkGetMacro(DrawGridlines, vtkTypeBool);
380 vtkBooleanMacro(DrawGridlines, vtkTypeBool);
382
384
389 vtkSetMacro(DrawGridlinesOnly, vtkTypeBool);
390 vtkGetMacro(DrawGridlinesOnly, vtkTypeBool);
391 vtkBooleanMacro(DrawGridlinesOnly, vtkTypeBool);
393
394 vtkSetMacro(DrawGridlinesLocation, int);
395 vtkGetMacro(DrawGridlinesLocation, int);
396
398
401 vtkSetMacro(DrawInnerGridlines, vtkTypeBool);
402 vtkGetMacro(DrawInnerGridlines, vtkTypeBool);
403 vtkBooleanMacro(DrawInnerGridlines, vtkTypeBool);
405
407
410 vtkSetMacro(GridlineXLength, double);
411 vtkGetMacro(GridlineXLength, double);
412 vtkSetMacro(GridlineYLength, double);
413 vtkGetMacro(GridlineYLength, double);
414 vtkSetMacro(GridlineZLength, double);
415 vtkGetMacro(GridlineZLength, double);
417
419
422 vtkSetMacro(DrawGridpolys, vtkTypeBool);
423 vtkGetMacro(DrawGridpolys, vtkTypeBool);
424 vtkBooleanMacro(DrawGridpolys, vtkTypeBool);
426
428 {
429 VTK_AXIS_TYPE_X = 0,
430 VTK_AXIS_TYPE_Y = 1,
431 VTK_AXIS_TYPE_Z = 2
432 };
433
435
438 vtkSetClampMacro(AxisType, int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
439 vtkGetMacro(AxisType, int);
440 void SetAxisTypeToX(void) { this->SetAxisType(VTK_AXIS_TYPE_X); }
441 void SetAxisTypeToY(void) { this->SetAxisType(VTK_AXIS_TYPE_Y); }
442 void SetAxisTypeToZ(void) { this->SetAxisType(VTK_AXIS_TYPE_Z); }
444
446 {
447 VTK_AXIS_POS_MINMIN = 0,
448 VTK_AXIS_POS_MINMAX = 1,
449 VTK_AXIS_POS_MAXMAX = 2,
450 VTK_AXIS_POS_MAXMIN = 3
451 };
452
454
457 vtkSetMacro(Log, bool);
458 vtkGetMacro(Log, bool);
459 vtkBooleanMacro(Log, bool);
461
463
470 vtkSetClampMacro(AxisPosition, int, VTK_AXIS_POS_MINMIN, VTK_AXIS_POS_MAXMIN);
471 vtkGetMacro(AxisPosition, int);
473
474 void SetAxisPositionToMinMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMIN); }
475 void SetAxisPositionToMinMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMAX); }
476 void SetAxisPositionToMaxMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMAX); }
477 void SetAxisPositionToMaxMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMIN); }
478
480
484 virtual void SetCamera(vtkCamera*);
485 vtkGetObjectMacro(Camera, vtkCamera);
487
489
492 int RenderOpaqueGeometry(vtkViewport* viewport) override;
495 int RenderOverlay(vtkViewport* viewport) override;
498
505
506 double ComputeMaxLabelLength(const double[3]);
507 double ComputeTitleLength(const double[3]);
508
509 void SetLabelScale(const double scale);
510 void SetLabelScale(int labelIndex, const double scale);
511 void SetTitleScale(const double scale);
512
514
518 vtkSetMacro(MinorStart, double);
519 vtkGetMacro(MinorStart, double);
520 double GetMajorStart(int axis);
521 void SetMajorStart(int axis, double value);
522 // vtkSetMacro(MajorStart, double);
523 // vtkGetMacro(MajorStart, double);
524 vtkSetMacro(DeltaMinor, double);
525 vtkGetMacro(DeltaMinor, double);
526 double GetDeltaMajor(int axis);
527 void SetDeltaMajor(int axis, double value);
528 // vtkSetMacro(DeltaMajor, double);
529 // vtkGetMacro(DeltaMajor, double);
531
533
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);
548
550
551 void BuildAxis(vtkViewport* viewport, bool);
552
554
558 vtkGetObjectMacro(TitleActor, vtkAxisFollower);
560
562
565 vtkGetObjectMacro(ExponentActor, vtkAxisFollower);
567
571 inline vtkAxisFollower** GetLabelActors() { return this->LabelActors; }
572
574
578 vtkGetObjectMacro(TitleProp3D, vtkProp3DAxisFollower);
580
584 inline vtkProp3DAxisFollower** GetLabelProps3D() { return this->LabelProps3D; }
585
587
591 vtkGetObjectMacro(ExponentProp3D, vtkProp3DAxisFollower);
593
595
599 vtkGetMacro(NumberOfLabelsBuilt, int);
601
603
607 vtkSetMacro(CalculateTitleOffset, vtkTypeBool);
608 vtkGetMacro(CalculateTitleOffset, vtkTypeBool);
609 vtkBooleanMacro(CalculateTitleOffset, vtkTypeBool);
611
613
617 vtkSetMacro(CalculateLabelOffset, vtkTypeBool);
618 vtkGetMacro(CalculateLabelOffset, vtkTypeBool);
619 vtkBooleanMacro(CalculateLabelOffset, vtkTypeBool);
621
623
626 vtkSetMacro(Use2DMode, int);
627 vtkGetMacro(Use2DMode, int);
629
631
634 vtkSetMacro(VerticalOffsetXTitle2D, double);
635 vtkGetMacro(VerticalOffsetXTitle2D, double);
637
639
642 vtkSetMacro(HorizontalOffsetYTitle2D, double);
643 vtkGetMacro(HorizontalOffsetYTitle2D, double);
645
647
650 vtkSetMacro(SaveTitlePosition, int);
651 vtkGetMacro(SaveTitlePosition, int);
653
655
658 vtkSetVector3Macro(AxisBaseForX, double);
659 vtkGetVector3Macro(AxisBaseForX, double);
661
663
666 vtkSetVector3Macro(AxisBaseForY, double);
667 vtkGetVector3Macro(AxisBaseForY, double);
669
671
674 vtkSetVector3Macro(AxisBaseForZ, double);
675 vtkGetVector3Macro(AxisBaseForZ, double);
677
679
682 vtkSetMacro(AxisOnOrigin, int);
683 vtkGetMacro(AxisOnOrigin, int);
685
687
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);
699
700protected:
702 ~vtkAxisActor() override;
703
704 char* Title;
705 char* Exponent;
706 double Range[2];
707 double LastRange[2];
713
720
726
732
736 int DrawGridlinesLocation; // 0: all | 1: closest | 2: farest
737 int LastDrawGridlinesLocation; // 0: all | 1: closest | 2: farest
741
744
747
755
756 bool Log;
759
760 // coordinate system for axisAxtor, relative to world coordinates
761 double AxisBaseForX[3];
762 double AxisBaseForY[3];
763 double AxisBaseForZ[3];
764
765private:
766 vtkAxisActor(const vtkAxisActor&) = delete;
767 void operator=(const vtkAxisActor&) = delete;
768
769 void TransformBounds(vtkViewport*, double bnds[6]);
770
771 void BuildLabels(vtkViewport*, bool);
772 void BuildLabels2D(vtkViewport*, bool);
773 void SetLabelPositions(vtkViewport*, bool);
774 void SetLabelPositions2D(vtkViewport*, bool);
775
780 void RotateActor2DFromAxisProjection(vtkTextActor* pActor2D);
781
785 void InitTitle();
786
790 void InitExponent();
791
798 void BuildTitle(bool);
799
804 void BuildExponent(bool force);
805
806 void BuildExponent2D(vtkViewport* viewport, bool force);
807
808 void BuildTitle2D(vtkViewport* viewport, bool);
809
810 void SetAxisPointsAndLines(void);
811
812 bool BuildTickPoints(double p1[3], double p2[3], bool force);
813
814 // Build major ticks for linear scale.
815 void BuildMajorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
816
817 // Build major ticks for logarithmic scale.
818 void BuildMajorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
819
820 // Build minor ticks for linear scale.
821 void BuildMinorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
822
823 // Build minor ticks for logarithmic scale enabled
824 void BuildMinorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
825
826 void BuildAxisGridLines(double p1[3], double p2[3], double localCoordSys[3][3]);
827
828 bool TickVisibilityChanged(void);
829 vtkProperty* NewTitleProperty();
830 vtkProperty2D* NewTitleProperty2D();
831 vtkProperty* NewLabelProperty();
832
833 bool BoundsDisplayCoordinateChanged(vtkViewport* viewport);
834
835 vtkCoordinate* Point1Coordinate;
836 vtkCoordinate* Point2Coordinate;
837
838 double MajorTickSize;
839 double MinorTickSize;
840
841 // For each axis (for the inner gridline generation)
842 double MajorStart[3];
843 double DeltaMajor[3];
844 double MinorStart;
845 double DeltaMinor;
846
847 // For the ticks, w.r.t to the set range
848 double MajorRangeStart;
849 double MinorRangeStart;
850
854 double DeltaRangeMinor;
855
859 double DeltaRangeMajor;
860
861 int LastAxisPosition;
862 int LastAxisType;
863 int LastTickLocation;
864 double LastLabelStart;
865
866 vtkPoints* MinorTickPts;
867 vtkPoints* MajorTickPts;
868 vtkPoints* GridlinePts;
869 vtkPoints* InnerGridlinePts;
870 vtkPoints* GridpolyPts;
871
872 vtkVectorText* TitleVector;
873 vtkPolyDataMapper* TitleMapper;
874 vtkAxisFollower* TitleActor;
875 vtkTextActor* TitleActor2D;
876 vtkProp3DAxisFollower* TitleProp3D;
877 vtkTextActor3D* TitleActor3D;
878 vtkTextProperty* TitleTextProperty;
879
881
884 vtkVectorText* ExponentVector;
885 vtkPolyDataMapper* ExponentMapper;
886 vtkAxisFollower* ExponentActor;
887 vtkTextActor* ExponentActor2D;
888 vtkProp3DAxisFollower* ExponentProp3D;
889 vtkTextActor3D* ExponentActor3D;
891
892 vtkVectorText** LabelVectors;
893 vtkPolyDataMapper** LabelMappers;
894 vtkAxisFollower** LabelActors;
895 vtkProp3DAxisFollower** LabelProps3D;
896 vtkTextActor** LabelActors2D;
897 vtkTextActor3D** LabelActors3D;
898 vtkTextProperty* LabelTextProperty;
899
900 // Main line axis
901 vtkPolyData* AxisLines;
902 vtkPolyDataMapper* AxisLinesMapper;
903 vtkActor* AxisLinesActor;
904
905 // Ticks of the axis
906 vtkPolyData *AxisMajorTicks, *AxisMinorTicks;
907 vtkPolyDataMapper *AxisMajorTicksMapper, *AxisMinorTicksMapper;
908 vtkActor *AxisMajorTicksActor, *AxisMinorTicksActor;
909
910 vtkPolyData* Gridlines;
911 vtkPolyDataMapper* GridlinesMapper;
912 vtkActor* GridlinesActor;
913 vtkPolyData* InnerGridlines;
914 vtkPolyDataMapper* InnerGridlinesMapper;
915 vtkActor* InnerGridlinesActor;
916 vtkPolyData* Gridpolys;
917 vtkPolyDataMapper* GridpolysMapper;
918 vtkActor* GridpolysActor;
919
920 vtkCamera* Camera;
921 vtkTimeStamp BuildTime;
922 vtkTimeStamp BuildTickPointsTime;
923 vtkTimeStamp BoundsTime;
924 vtkTimeStamp LabelBuildTime;
925 vtkTimeStamp TitleTextTime;
926 vtkTimeStamp ExponentTextTime;
927
928 int AxisOnOrigin;
929
930 int AxisHasZeroLength;
931
932 vtkTypeBool CalculateTitleOffset;
933 vtkTypeBool CalculateLabelOffset;
934
938 int Use2DMode;
939
944 double VerticalOffsetXTitle2D;
945
950 double HorizontalOffsetYTitle2D;
951
958 int SaveTitlePosition;
959
963 double TitleConstantPosition[2];
964
968 bool NeedBuild2D;
969
970 double LastMinDisplayCoordinate[3];
971 double LastMaxDisplayCoordinate[3];
972 double TickVector[3];
973
975
978 double ScreenSize;
979 double LabelOffset;
980 double TitleOffset;
981 double ExponentOffset;
983};
984
985#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
Create an axis with tick marks and labels.
Definition: vtkAxisActor.h:91
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int LastDrawGridlinesLocation
Definition: vtkAxisActor.h:737
double GridlineZLength
Definition: vtkAxisActor.h:740
int LastMinorTicksVisible
Definition: vtkAxisActor.h:712
void SetAxisTypeToZ(void)
Set/Get the type of this axis.
Definition: vtkAxisActor.h:442
virtual void SetPoint2(double x, double y, double z)
Specify the position of the second point defining the axis.
vtkTypeBool LabelVisibility
Definition: vtkAxisActor.h:751
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
void SetAxisPositionToMinMin(void)
Definition: vtkAxisActor.h:474
virtual void SetPoint2(double x[3])
Specify the position of the second point defining the axis.
Definition: vtkAxisActor.h:116
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:752
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:745
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:710
void SetTickLocationToOutside(void)
Definition: vtkAxisActor.h:219
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:739
vtkTypeBool DrawInnerGridlines
Definition: vtkAxisActor.h:742
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:571
double GridlineXLength
Definition: vtkAxisActor.h:738
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:708
bool LastMajorTickPointCorrection
Definition: vtkAxisActor.h:754
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:106
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
vtkTypeBool DrawGridlines
Definition: vtkAxisActor.h:733
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:725
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:440
vtkTypeBool DrawGridlinesOnly
Definition: vtkAxisActor.h:734
vtkTypeBool TickVisibility
Definition: vtkAxisActor.h:749
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:748
char * Exponent
Definition: vtkAxisActor.h:705
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
Definition: vtkAxisActor.h:731
int LastDrawInnerGridlines
Definition: vtkAxisActor.h:743
void SetAxisPositionToMaxMax(void)
Definition: vtkAxisActor.h:476
bool ExponentVisibility
Definition: vtkAxisActor.h:753
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:746
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:584
void SetLabels(vtkStringArray *labels)
void SetTickLocationToInside(void)
Definition: vtkAxisActor.h:218
vtkProperty * GetAxisMinorTicksProperty()
Get/Set axis actor property (axis and its ticks)
int LastTickVisibility
Definition: vtkAxisActor.h:750
int TickLocation
The location of the ticks.
Definition: vtkAxisActor.h:719
void SetAxisPositionToMinMax(void)
Definition: vtkAxisActor.h:475
int LastDrawGridlines
Definition: vtkAxisActor.h:735
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:441
vtkTypeBool MinorTicksVisible
Definition: vtkAxisActor.h:711
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:220
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:736
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
void SetAxisPositionToMaxMin(void)
Definition: vtkAxisActor.h:477
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:155
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:120
a simple class to control print indentation
Definition: vtkIndent.h:113
represent and manipulate 3D points
Definition: vtkPoints.h:143
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
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:171
a vtkAbstractArray subclass for strings
An actor that displays text.
An actor that displays text.
Definition: vtkTextActor.h:160
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:52
create polygonal text
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_SIZEHINT(...)