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=========================================================================*/
72#ifndef vtkAxisActor_h
73#define vtkAxisActor_h
74
75#include "vtkActor.h"
76#include "vtkRenderingAnnotationModule.h" // For export macro
77
78class vtkAxisFollower;
79class vtkCamera;
80class vtkCoordinate;
81class vtkFollower;
82class vtkPoints;
83class vtkPolyData;
86class vtkProperty2D;
87class vtkStringArray;
88class vtkTextActor;
89class vtkTextActor3D;
90class vtkTextProperty;
91class vtkVectorText;
92
93class VTKRENDERINGANNOTATION_EXPORT vtkAxisActor : public vtkActor
94{
95public:
96 vtkTypeMacro(vtkAxisActor, vtkActor);
97 void PrintSelf(ostream& os, vtkIndent indent) override;
98
102 static vtkAxisActor* New();
103
105
109 virtual void SetPoint1(double x[3]) { this->SetPoint1(x[0], x[1], x[2]); }
110 virtual void SetPoint1(double x, double y, double z);
111 virtual double* GetPoint1();
113
115
119 virtual void SetPoint2(double x[3]) { this->SetPoint2(x[0], x[1], x[2]); }
120 virtual void SetPoint2(double x, double y, double z);
121 virtual double* GetPoint2();
123
125
129 vtkSetVector2Macro(Range, double);
130 vtkGetVectorMacro(Range, double, 2);
132
134
137 void SetBounds(const double bounds[6]);
138 void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
139 double* GetBounds(void) VTK_SIZEHINT(6) override;
140 void GetBounds(double bounds[6]);
142
144
147 vtkSetStringMacro(LabelFormat);
148 vtkGetStringMacro(LabelFormat);
150
152
159 vtkSetMacro(UseTextActor3D, int);
160 vtkGetMacro(UseTextActor3D, int);
162
164
167 vtkSetMacro(MinorTicksVisible, vtkTypeBool);
168 vtkGetMacro(MinorTicksVisible, vtkTypeBool);
169 vtkBooleanMacro(MinorTicksVisible, vtkTypeBool);
171
173
176 void SetTitle(const char* t);
177 vtkGetStringMacro(Title);
179
181
184 void SetExponent(const char* t);
185 vtkGetStringMacro(Exponent);
187
189
192 vtkSetMacro(MajorTickSize, double);
193 vtkGetMacro(MajorTickSize, double);
195
197
200 vtkSetMacro(MinorTickSize, double);
201 vtkGetMacro(MinorTickSize, double);
203
205 {
206 VTK_TICKS_INSIDE = 0,
207 VTK_TICKS_OUTSIDE = 1,
208 VTK_TICKS_BOTH = 2
209 };
210
212
217 vtkSetClampMacro(TickLocation, int, VTK_TICKS_INSIDE, VTK_TICKS_BOTH);
218 vtkGetMacro(TickLocation, int);
220
221 void SetTickLocationToInside(void) { this->SetTickLocation(VTK_TICKS_INSIDE); }
222 void SetTickLocationToOutside(void) { this->SetTickLocation(VTK_TICKS_OUTSIDE); }
223 void SetTickLocationToBoth(void) { this->SetTickLocation(VTK_TICKS_BOTH); }
224
226
229 vtkSetMacro(AxisVisibility, vtkTypeBool);
230 vtkGetMacro(AxisVisibility, vtkTypeBool);
231 vtkBooleanMacro(AxisVisibility, vtkTypeBool);
233
235
238 vtkSetMacro(TickVisibility, vtkTypeBool);
239 vtkGetMacro(TickVisibility, vtkTypeBool);
240 vtkBooleanMacro(TickVisibility, vtkTypeBool);
242
244
247 vtkSetMacro(LabelVisibility, vtkTypeBool);
248 vtkGetMacro(LabelVisibility, vtkTypeBool);
249 vtkBooleanMacro(LabelVisibility, vtkTypeBool);
251
253
256 vtkSetMacro(TitleVisibility, vtkTypeBool);
257 vtkGetMacro(TitleVisibility, vtkTypeBool);
258 vtkBooleanMacro(TitleVisibility, vtkTypeBool);
260
262
265 vtkSetMacro(ExponentVisibility, bool);
266 vtkGetMacro(ExponentVisibility, bool);
267 vtkBooleanMacro(ExponentVisibility, bool);
269
271
274 vtkSetMacro(LastMajorTickPointCorrection, bool);
275 vtkGetMacro(LastMajorTickPointCorrection, bool);
276 vtkBooleanMacro(LastMajorTickPointCorrection, bool);
278
280 {
281 VTK_ALIGN_TOP = 0,
282 VTK_ALIGN_BOTTOM = 1,
283 VTK_ALIGN_POINT1 = 2,
284 VTK_ALIGN_POINT2 = 3
285 };
286
288
293 vtkGetMacro(TitleAlignLocation, int);
295
297
301 virtual void SetExponentLocation(int location);
302 vtkGetMacro(ExponentLocation, int);
304
306
310 vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
312
314
318 vtkGetObjectMacro(LabelTextProperty, vtkTextProperty);
320
322
328
330
336
338
344
346
352
354
360
362
368
370
376
378
381 vtkSetMacro(DrawGridlines, vtkTypeBool);
382 vtkGetMacro(DrawGridlines, vtkTypeBool);
383 vtkBooleanMacro(DrawGridlines, vtkTypeBool);
385
387
392 vtkSetMacro(DrawGridlinesOnly, vtkTypeBool);
393 vtkGetMacro(DrawGridlinesOnly, vtkTypeBool);
394 vtkBooleanMacro(DrawGridlinesOnly, vtkTypeBool);
396
397 vtkSetMacro(DrawGridlinesLocation, int);
398 vtkGetMacro(DrawGridlinesLocation, int);
399
401
404 vtkSetMacro(DrawInnerGridlines, vtkTypeBool);
405 vtkGetMacro(DrawInnerGridlines, vtkTypeBool);
406 vtkBooleanMacro(DrawInnerGridlines, vtkTypeBool);
408
410
413 vtkSetMacro(GridlineXLength, double);
414 vtkGetMacro(GridlineXLength, double);
415 vtkSetMacro(GridlineYLength, double);
416 vtkGetMacro(GridlineYLength, double);
417 vtkSetMacro(GridlineZLength, double);
418 vtkGetMacro(GridlineZLength, double);
420
422
425 vtkSetMacro(DrawGridpolys, vtkTypeBool);
426 vtkGetMacro(DrawGridpolys, vtkTypeBool);
427 vtkBooleanMacro(DrawGridpolys, vtkTypeBool);
429
431 {
432 VTK_AXIS_TYPE_X = 0,
433 VTK_AXIS_TYPE_Y = 1,
434 VTK_AXIS_TYPE_Z = 2
435 };
436
438
441 vtkSetClampMacro(AxisType, int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
442 vtkGetMacro(AxisType, int);
443 void SetAxisTypeToX(void) { this->SetAxisType(VTK_AXIS_TYPE_X); }
444 void SetAxisTypeToY(void) { this->SetAxisType(VTK_AXIS_TYPE_Y); }
445 void SetAxisTypeToZ(void) { this->SetAxisType(VTK_AXIS_TYPE_Z); }
447
449 {
450 VTK_AXIS_POS_MINMIN = 0,
451 VTK_AXIS_POS_MINMAX = 1,
452 VTK_AXIS_POS_MAXMAX = 2,
453 VTK_AXIS_POS_MAXMIN = 3
454 };
455
457
460 vtkSetMacro(Log, bool);
461 vtkGetMacro(Log, bool);
462 vtkBooleanMacro(Log, bool);
464
466
473 vtkSetClampMacro(AxisPosition, int, VTK_AXIS_POS_MINMIN, VTK_AXIS_POS_MAXMIN);
474 vtkGetMacro(AxisPosition, int);
476
477 void SetAxisPositionToMinMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMIN); }
478 void SetAxisPositionToMinMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMAX); }
479 void SetAxisPositionToMaxMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMAX); }
480 void SetAxisPositionToMaxMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMIN); }
481
483
487 virtual void SetCamera(vtkCamera*);
488 vtkGetObjectMacro(Camera, vtkCamera);
490
492
495 int RenderOpaqueGeometry(vtkViewport* viewport) override;
498 int RenderOverlay(vtkViewport* viewport) override;
501
508
509 double ComputeMaxLabelLength(const double[3]);
510 double ComputeTitleLength(const double[3]);
511
512 void SetLabelScale(const double scale);
513 void SetLabelScale(int labelIndex, const double scale);
514 void SetTitleScale(const double scale);
515
517
521 vtkSetMacro(MinorStart, double);
522 vtkGetMacro(MinorStart, double);
523 double GetMajorStart(int axis);
524 void SetMajorStart(int axis, double value);
525 // vtkSetMacro(MajorStart, double);
526 // vtkGetMacro(MajorStart, double);
527 vtkSetMacro(DeltaMinor, double);
528 vtkGetMacro(DeltaMinor, double);
529 double GetDeltaMajor(int axis);
530 void SetDeltaMajor(int axis, double value);
531 // vtkSetMacro(DeltaMajor, double);
532 // vtkGetMacro(DeltaMajor, double);
534
536
542 vtkSetMacro(MinorRangeStart, double);
543 vtkGetMacro(MinorRangeStart, double);
544 vtkSetMacro(MajorRangeStart, double);
545 vtkGetMacro(MajorRangeStart, double);
546 vtkSetMacro(DeltaRangeMinor, double);
547 vtkGetMacro(DeltaRangeMinor, double);
548 vtkSetMacro(DeltaRangeMajor, double);
549 vtkGetMacro(DeltaRangeMajor, double);
551
553
554 void BuildAxis(vtkViewport* viewport, bool);
555
557
561 vtkGetObjectMacro(TitleActor, vtkAxisFollower);
563
565
568 vtkGetObjectMacro(ExponentActor, vtkAxisFollower);
570
574 inline vtkAxisFollower** GetLabelActors() { return this->LabelActors; }
575
577
581 vtkGetObjectMacro(TitleProp3D, vtkProp3DAxisFollower);
583
587 inline vtkProp3DAxisFollower** GetLabelProps3D() { return this->LabelProps3D; }
588
590
594 vtkGetObjectMacro(ExponentProp3D, vtkProp3DAxisFollower);
596
598
602 vtkGetMacro(NumberOfLabelsBuilt, int);
604
606
610 vtkSetMacro(CalculateTitleOffset, vtkTypeBool);
611 vtkGetMacro(CalculateTitleOffset, vtkTypeBool);
612 vtkBooleanMacro(CalculateTitleOffset, vtkTypeBool);
614
616
620 vtkSetMacro(CalculateLabelOffset, vtkTypeBool);
621 vtkGetMacro(CalculateLabelOffset, vtkTypeBool);
622 vtkBooleanMacro(CalculateLabelOffset, vtkTypeBool);
624
626
629 vtkSetMacro(Use2DMode, int);
630 vtkGetMacro(Use2DMode, int);
632
634
637 vtkSetMacro(VerticalOffsetXTitle2D, double);
638 vtkGetMacro(VerticalOffsetXTitle2D, double);
640
642
645 vtkSetMacro(HorizontalOffsetYTitle2D, double);
646 vtkGetMacro(HorizontalOffsetYTitle2D, double);
648
650
653 vtkSetMacro(SaveTitlePosition, int);
654 vtkGetMacro(SaveTitlePosition, int);
656
658
661 vtkSetVector3Macro(AxisBaseForX, double);
662 vtkGetVector3Macro(AxisBaseForX, double);
664
666
669 vtkSetVector3Macro(AxisBaseForY, double);
670 vtkGetVector3Macro(AxisBaseForY, double);
672
674
677 vtkSetVector3Macro(AxisBaseForZ, double);
678 vtkGetVector3Macro(AxisBaseForZ, double);
680
682
685 vtkSetMacro(AxisOnOrigin, int);
686 vtkGetMacro(AxisOnOrigin, int);
688
690
693 vtkSetMacro(LabelOffset, double);
694 vtkGetMacro(LabelOffset, double);
695 vtkSetMacro(TitleOffset, double);
696 vtkGetMacro(TitleOffset, double);
697 vtkSetMacro(ExponentOffset, double);
698 vtkGetMacro(ExponentOffset, double);
699 vtkSetMacro(ScreenSize, double);
700 vtkGetMacro(ScreenSize, double);
702
703protected:
705 ~vtkAxisActor() override;
706
707 char* Title;
708 char* Exponent;
709 double Range[2];
710 double LastRange[2];
716
723
729
735
739 int DrawGridlinesLocation; // 0: all | 1: closest | 2: farest
740 int LastDrawGridlinesLocation; // 0: all | 1: closest | 2: farest
744
747
750
758
759 bool Log;
762
763 // coordinate system for axisAxtor, relative to world coordinates
764 double AxisBaseForX[3];
765 double AxisBaseForY[3];
766 double AxisBaseForZ[3];
767
768private:
769 vtkAxisActor(const vtkAxisActor&) = delete;
770 void operator=(const vtkAxisActor&) = delete;
771
772 void TransformBounds(vtkViewport*, double bnds[6]);
773
774 void BuildLabels(vtkViewport*, bool);
775 void BuildLabels2D(vtkViewport*, bool);
776 void SetLabelPositions(vtkViewport*, bool);
777 void SetLabelPositions2D(vtkViewport*, bool);
778
783 void RotateActor2DFromAxisProjection(vtkTextActor* pActor2D);
784
788 void InitTitle();
789
793 void InitExponent();
794
801 void BuildTitle(bool);
802
807 void BuildExponent(bool force);
808
809 void BuildExponent2D(vtkViewport* viewport, bool force);
810
811 void BuildTitle2D(vtkViewport* viewport, bool);
812
813 void SetAxisPointsAndLines(void);
814
815 bool BuildTickPoints(double p1[3], double p2[3], bool force);
816
817 // Build major ticks for linear scale.
818 void BuildMajorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
819
820 // Build major ticks for logarithmic scale.
821 void BuildMajorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
822
823 // Build minor ticks for linear scale.
824 void BuildMinorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
825
826 // Build minor ticks for logarithmic scale enabled
827 void BuildMinorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
828
829 void BuildAxisGridLines(double p1[3], double p2[3], double localCoordSys[3][3]);
830
831 bool TickVisibilityChanged(void);
832 vtkProperty* NewTitleProperty();
833 vtkProperty2D* NewTitleProperty2D();
834 vtkProperty* NewLabelProperty();
835
836 bool BoundsDisplayCoordinateChanged(vtkViewport* viewport);
837
838 vtkCoordinate* Point1Coordinate;
839 vtkCoordinate* Point2Coordinate;
840
841 double MajorTickSize;
842 double MinorTickSize;
843
844 // For each axis (for the inner gridline generation)
845 double MajorStart[3];
846 double DeltaMajor[3];
847 double MinorStart;
848 double DeltaMinor;
849
850 // For the ticks, w.r.t to the set range
851 double MajorRangeStart;
852 double MinorRangeStart;
853
857 double DeltaRangeMinor;
858
862 double DeltaRangeMajor;
863
864 int LastAxisPosition;
865 int LastAxisType;
866 int LastTickLocation;
867 double LastLabelStart;
868
869 vtkPoints* MinorTickPts;
870 vtkPoints* MajorTickPts;
871 vtkPoints* GridlinePts;
872 vtkPoints* InnerGridlinePts;
873 vtkPoints* GridpolyPts;
874
875 vtkVectorText* TitleVector;
876 vtkPolyDataMapper* TitleMapper;
877 vtkAxisFollower* TitleActor;
878 vtkTextActor* TitleActor2D;
879 vtkProp3DAxisFollower* TitleProp3D;
880 vtkTextActor3D* TitleActor3D;
881 vtkTextProperty* TitleTextProperty;
882
884
887 vtkVectorText* ExponentVector;
888 vtkPolyDataMapper* ExponentMapper;
889 vtkAxisFollower* ExponentActor;
890 vtkTextActor* ExponentActor2D;
891 vtkProp3DAxisFollower* ExponentProp3D;
892 vtkTextActor3D* ExponentActor3D;
894
895 vtkVectorText** LabelVectors;
896 vtkPolyDataMapper** LabelMappers;
897 vtkAxisFollower** LabelActors;
898 vtkProp3DAxisFollower** LabelProps3D;
899 vtkTextActor** LabelActors2D;
900 vtkTextActor3D** LabelActors3D;
901 vtkTextProperty* LabelTextProperty;
902
903 // Main line axis
904 vtkPolyData* AxisLines;
905 vtkPolyDataMapper* AxisLinesMapper;
906 vtkActor* AxisLinesActor;
907
908 // Ticks of the axis
909 vtkPolyData *AxisMajorTicks, *AxisMinorTicks;
910 vtkPolyDataMapper *AxisMajorTicksMapper, *AxisMinorTicksMapper;
911 vtkActor *AxisMajorTicksActor, *AxisMinorTicksActor;
912
913 vtkPolyData* Gridlines;
914 vtkPolyDataMapper* GridlinesMapper;
915 vtkActor* GridlinesActor;
916 vtkPolyData* InnerGridlines;
917 vtkPolyDataMapper* InnerGridlinesMapper;
918 vtkActor* InnerGridlinesActor;
919 vtkPolyData* Gridpolys;
920 vtkPolyDataMapper* GridpolysMapper;
921 vtkActor* GridpolysActor;
922
923 vtkCamera* Camera;
924 vtkTimeStamp BuildTime;
925 vtkTimeStamp BuildTickPointsTime;
926 vtkTimeStamp BoundsTime;
927 vtkTimeStamp LabelBuildTime;
928 vtkTimeStamp TitleTextTime;
929 vtkTimeStamp ExponentTextTime;
930
931 int AxisOnOrigin;
932
933 int AxisHasZeroLength;
934
935 vtkTypeBool CalculateTitleOffset;
936 vtkTypeBool CalculateLabelOffset;
937
941 int Use2DMode;
942
947 double VerticalOffsetXTitle2D;
948
953 double HorizontalOffsetYTitle2D;
954
961 int SaveTitlePosition;
962
966 double TitleConstantPosition[2];
967
971 bool NeedBuild2D;
972
973 double LastMinDisplayCoordinate[3];
974 double LastMaxDisplayCoordinate[3];
975 double TickVector[3];
976
978
981 double ScreenSize;
982 double LabelOffset;
983 double TitleOffset;
984 double ExponentOffset;
986};
987
988#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:161
Create an axis with tick marks and labels.
Definition: vtkAxisActor.h:94
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int LastDrawGridlinesLocation
Definition: vtkAxisActor.h:740
double GridlineZLength
Definition: vtkAxisActor.h:743
int LastMinorTicksVisible
Definition: vtkAxisActor.h:715
void SetAxisTypeToZ(void)
Set/Get the type of this axis.
Definition: vtkAxisActor.h:445
virtual void SetPoint2(double x, double y, double z)
Specify the position of the second point defining the axis.
vtkTypeBool LabelVisibility
Definition: vtkAxisActor.h:754
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
void SetAxisPositionToMinMin(void)
Definition: vtkAxisActor.h:477
virtual void SetPoint2(double x[3])
Specify the position of the second point defining the axis.
Definition: vtkAxisActor.h:119
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:755
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:748
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:713
void SetTickLocationToOutside(void)
Definition: vtkAxisActor.h:222
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:742
vtkTypeBool DrawInnerGridlines
Definition: vtkAxisActor.h:745
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:574
double GridlineXLength
Definition: vtkAxisActor.h:741
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:711
bool LastMajorTickPointCorrection
Definition: vtkAxisActor.h:757
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:109
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
vtkTypeBool DrawGridlines
Definition: vtkAxisActor.h:736
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:728
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:443
vtkTypeBool DrawGridlinesOnly
Definition: vtkAxisActor.h:737
vtkTypeBool TickVisibility
Definition: vtkAxisActor.h:752
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:751
char * Exponent
Definition: vtkAxisActor.h:708
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
Definition: vtkAxisActor.h:734
int LastDrawInnerGridlines
Definition: vtkAxisActor.h:746
void SetAxisPositionToMaxMax(void)
Definition: vtkAxisActor.h:479
bool ExponentVisibility
Definition: vtkAxisActor.h:756
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:749
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:587
void SetLabels(vtkStringArray *labels)
void SetTickLocationToInside(void)
Definition: vtkAxisActor.h:221
vtkProperty * GetAxisMinorTicksProperty()
Get/Set axis actor property (axis and its ticks)
int LastTickVisibility
Definition: vtkAxisActor.h:753
int TickLocation
The location of the ticks.
Definition: vtkAxisActor.h:722
void SetAxisPositionToMinMax(void)
Definition: vtkAxisActor.h:478
int LastDrawGridlines
Definition: vtkAxisActor.h:738
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:444
vtkTypeBool MinorTicksVisible
Definition: vtkAxisActor.h:714
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:223
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:739
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
void SetAxisPositionToMaxMin(void)
Definition: vtkAxisActor.h:480
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:161
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:123
a simple class to control print indentation
Definition: vtkIndent.h:119
represent and manipulate 3D points
Definition: vtkPoints.h:149
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
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:177
a vtkAbstractArray subclass for strings
An actor that displays text.
An actor that displays text.
Definition: vtkTextActor.h:166
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:55
create polygonal text
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
@ 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(...)