VTK  9.0.2
vtkAxisActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 Program: Visualization Toolkit
3 Module: vtkAxisActor.h
4 Language: C++
5 
6 Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 This software is distributed WITHOUT ANY WARRANTY; without even
9 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 PURPOSE. See the above copyright notice for more information.
11 =========================================================================*/
50 #ifndef vtkAxisActor_h
51 #define vtkAxisActor_h
52 
53 #include "vtkActor.h"
54 #include "vtkRenderingAnnotationModule.h" // For export macro
55 
56 class vtkAxisFollower;
57 class vtkCamera;
58 class vtkCoordinate;
59 class vtkFollower;
60 class vtkPoints;
61 class vtkPolyData;
62 class vtkPolyDataMapper;
64 class vtkProperty2D;
65 class vtkStringArray;
66 class vtkTextActor;
67 class vtkTextActor3D;
68 class vtkTextProperty;
69 class vtkVectorText;
70 
71 class VTKRENDERINGANNOTATION_EXPORT vtkAxisActor : public vtkActor
72 {
73 public:
74  vtkTypeMacro(vtkAxisActor, vtkActor);
75  void PrintSelf(ostream& os, vtkIndent indent) override;
76 
80  static vtkAxisActor* New();
81 
83 
87  virtual void SetPoint1(double x[3]) { this->SetPoint1(x[0], x[1], x[2]); }
88  virtual void SetPoint1(double x, double y, double z);
89  virtual double* GetPoint1();
91 
93 
97  virtual void SetPoint2(double x[3]) { this->SetPoint2(x[0], x[1], x[2]); }
98  virtual void SetPoint2(double x, double y, double z);
99  virtual double* GetPoint2();
101 
103 
107  vtkSetVector2Macro(Range, double);
108  vtkGetVectorMacro(Range, double, 2);
110 
112 
115  void SetBounds(const double bounds[6]);
116  void SetBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
117  double* GetBounds(void) VTK_SIZEHINT(6) override;
118  void GetBounds(double bounds[6]);
120 
122 
125  vtkSetStringMacro(LabelFormat);
126  vtkGetStringMacro(LabelFormat);
128 
130 
137  vtkSetMacro(UseTextActor3D, int);
138  vtkGetMacro(UseTextActor3D, int);
140 
142 
145  vtkSetMacro(MinorTicksVisible, vtkTypeBool);
146  vtkGetMacro(MinorTicksVisible, vtkTypeBool);
147  vtkBooleanMacro(MinorTicksVisible, vtkTypeBool);
149 
151 
154  void SetTitle(const char* t);
155  vtkGetStringMacro(Title);
157 
159 
162  void SetExponent(const char* t);
163  vtkGetStringMacro(Exponent);
165 
167 
170  vtkSetMacro(MajorTickSize, double);
171  vtkGetMacro(MajorTickSize, double);
173 
175 
178  vtkSetMacro(MinorTickSize, double);
179  vtkGetMacro(MinorTickSize, double);
181 
183  {
184  VTK_TICKS_INSIDE = 0,
185  VTK_TICKS_OUTSIDE = 1,
186  VTK_TICKS_BOTH = 2
187  };
188 
190 
195  vtkSetClampMacro(TickLocation, int, VTK_TICKS_INSIDE, VTK_TICKS_BOTH);
196  vtkGetMacro(TickLocation, int);
198 
199  void SetTickLocationToInside(void) { this->SetTickLocation(VTK_TICKS_INSIDE); }
200  void SetTickLocationToOutside(void) { this->SetTickLocation(VTK_TICKS_OUTSIDE); }
201  void SetTickLocationToBoth(void) { this->SetTickLocation(VTK_TICKS_BOTH); }
202 
204 
207  vtkSetMacro(AxisVisibility, vtkTypeBool);
208  vtkGetMacro(AxisVisibility, vtkTypeBool);
209  vtkBooleanMacro(AxisVisibility, vtkTypeBool);
211 
213 
216  vtkSetMacro(TickVisibility, vtkTypeBool);
217  vtkGetMacro(TickVisibility, vtkTypeBool);
218  vtkBooleanMacro(TickVisibility, vtkTypeBool);
220 
222 
225  vtkSetMacro(LabelVisibility, vtkTypeBool);
226  vtkGetMacro(LabelVisibility, vtkTypeBool);
227  vtkBooleanMacro(LabelVisibility, vtkTypeBool);
229 
231 
234  vtkSetMacro(TitleVisibility, vtkTypeBool);
235  vtkGetMacro(TitleVisibility, vtkTypeBool);
236  vtkBooleanMacro(TitleVisibility, vtkTypeBool);
238 
240 
243  vtkSetMacro(ExponentVisibility, bool);
244  vtkGetMacro(ExponentVisibility, bool);
245  vtkBooleanMacro(ExponentVisibility, bool);
247 
249 
252  vtkSetMacro(LastMajorTickPointCorrection, bool);
253  vtkGetMacro(LastMajorTickPointCorrection, bool);
254  vtkBooleanMacro(LastMajorTickPointCorrection, bool);
256 
258  {
259  VTK_ALIGN_TOP = 0,
260  VTK_ALIGN_BOTTOM = 1,
261  VTK_ALIGN_POINT1 = 2,
262  VTK_ALIGN_POINT2 = 3
263  };
264 
266 
270  virtual void SetTitleAlignLocation(int location);
271  vtkGetMacro(TitleAlignLocation, int);
273 
275 
279  virtual void SetExponentLocation(int location);
280  vtkGetMacro(ExponentLocation, int);
282 
284 
288  vtkGetObjectMacro(TitleTextProperty, vtkTextProperty);
290 
292 
296  vtkGetObjectMacro(LabelTextProperty, vtkTextProperty);
298 
300 
306 
308 
314 
316 
322 
324 
330 
332 
338 
340 
346 
348 
354 
356 
359  vtkSetMacro(DrawGridlines, vtkTypeBool);
360  vtkGetMacro(DrawGridlines, vtkTypeBool);
361  vtkBooleanMacro(DrawGridlines, vtkTypeBool);
363 
365 
370  vtkSetMacro(DrawGridlinesOnly, vtkTypeBool);
371  vtkGetMacro(DrawGridlinesOnly, vtkTypeBool);
372  vtkBooleanMacro(DrawGridlinesOnly, vtkTypeBool);
374 
375  vtkSetMacro(DrawGridlinesLocation, int);
376  vtkGetMacro(DrawGridlinesLocation, int);
377 
379 
382  vtkSetMacro(DrawInnerGridlines, vtkTypeBool);
383  vtkGetMacro(DrawInnerGridlines, vtkTypeBool);
384  vtkBooleanMacro(DrawInnerGridlines, vtkTypeBool);
386 
388 
391  vtkSetMacro(GridlineXLength, double);
392  vtkGetMacro(GridlineXLength, double);
393  vtkSetMacro(GridlineYLength, double);
394  vtkGetMacro(GridlineYLength, double);
395  vtkSetMacro(GridlineZLength, double);
396  vtkGetMacro(GridlineZLength, double);
398 
400 
403  vtkSetMacro(DrawGridpolys, vtkTypeBool);
404  vtkGetMacro(DrawGridpolys, vtkTypeBool);
405  vtkBooleanMacro(DrawGridpolys, vtkTypeBool);
407 
408  enum AxisType
409  {
410  VTK_AXIS_TYPE_X = 0,
411  VTK_AXIS_TYPE_Y = 1,
412  VTK_AXIS_TYPE_Z = 2
413  };
414 
416 
419  vtkSetClampMacro(AxisType, int, VTK_AXIS_TYPE_X, VTK_AXIS_TYPE_Z);
420  vtkGetMacro(AxisType, int);
421  void SetAxisTypeToX(void) { this->SetAxisType(VTK_AXIS_TYPE_X); }
422  void SetAxisTypeToY(void) { this->SetAxisType(VTK_AXIS_TYPE_Y); }
423  void SetAxisTypeToZ(void) { this->SetAxisType(VTK_AXIS_TYPE_Z); }
425 
427  {
428  VTK_AXIS_POS_MINMIN = 0,
429  VTK_AXIS_POS_MINMAX = 1,
430  VTK_AXIS_POS_MAXMAX = 2,
431  VTK_AXIS_POS_MAXMIN = 3
432  };
433 
435 
438  vtkSetMacro(Log, bool);
439  vtkGetMacro(Log, bool);
440  vtkBooleanMacro(Log, bool);
442 
444 
451  vtkSetClampMacro(AxisPosition, int, VTK_AXIS_POS_MINMIN, VTK_AXIS_POS_MAXMIN);
452  vtkGetMacro(AxisPosition, int);
454 
455  void SetAxisPositionToMinMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMIN); }
456  void SetAxisPositionToMinMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MINMAX); }
457  void SetAxisPositionToMaxMax(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMAX); }
458  void SetAxisPositionToMaxMin(void) { this->SetAxisPosition(VTK_AXIS_POS_MAXMIN); }
459 
461 
465  virtual void SetCamera(vtkCamera*);
466  vtkGetObjectMacro(Camera, vtkCamera);
468 
470 
473  int RenderOpaqueGeometry(vtkViewport* viewport) override;
474  virtual int RenderTranslucentGeometry(vtkViewport* viewport);
476  int RenderOverlay(vtkViewport* viewport) override;
479 
486 
487  double ComputeMaxLabelLength(const double[3]);
488  double ComputeTitleLength(const double[3]);
489 
490  void SetLabelScale(const double scale);
491  void SetLabelScale(int labelIndex, const double scale);
492  void SetTitleScale(const double scale);
493 
495 
499  vtkSetMacro(MinorStart, double);
500  vtkGetMacro(MinorStart, double);
501  double GetMajorStart(int axis);
502  void SetMajorStart(int axis, double value);
503  // vtkSetMacro(MajorStart, double);
504  // vtkGetMacro(MajorStart, double);
505  vtkSetMacro(DeltaMinor, double);
506  vtkGetMacro(DeltaMinor, double);
507  double GetDeltaMajor(int axis);
508  void SetDeltaMajor(int axis, double value);
509  // vtkSetMacro(DeltaMajor, double);
510  // vtkGetMacro(DeltaMajor, double);
512 
514 
520  vtkSetMacro(MinorRangeStart, double);
521  vtkGetMacro(MinorRangeStart, double);
522  vtkSetMacro(MajorRangeStart, double);
523  vtkGetMacro(MajorRangeStart, double);
524  vtkSetMacro(DeltaRangeMinor, double);
525  vtkGetMacro(DeltaRangeMinor, double);
526  vtkSetMacro(DeltaRangeMajor, double);
527  vtkGetMacro(DeltaRangeMajor, double);
529 
530  void SetLabels(vtkStringArray* labels);
531 
532  void BuildAxis(vtkViewport* viewport, bool);
533 
535 
539  vtkGetObjectMacro(TitleActor, vtkAxisFollower);
541 
543 
546  vtkGetObjectMacro(ExponentActor, vtkAxisFollower);
548 
552  inline vtkAxisFollower** GetLabelActors() { return this->LabelActors; }
553 
555 
559  vtkGetObjectMacro(TitleProp3D, vtkProp3DAxisFollower);
561 
565  inline vtkProp3DAxisFollower** GetLabelProps3D() { return this->LabelProps3D; }
566 
568 
572  vtkGetObjectMacro(ExponentProp3D, vtkProp3DAxisFollower);
574 
576 
580  vtkGetMacro(NumberOfLabelsBuilt, int);
582 
584 
588  vtkSetMacro(CalculateTitleOffset, vtkTypeBool);
589  vtkGetMacro(CalculateTitleOffset, vtkTypeBool);
590  vtkBooleanMacro(CalculateTitleOffset, vtkTypeBool);
592 
594 
598  vtkSetMacro(CalculateLabelOffset, vtkTypeBool);
599  vtkGetMacro(CalculateLabelOffset, vtkTypeBool);
600  vtkBooleanMacro(CalculateLabelOffset, vtkTypeBool);
602 
604 
607  vtkSetMacro(Use2DMode, int);
608  vtkGetMacro(Use2DMode, int);
610 
612 
615  vtkSetMacro(VerticalOffsetXTitle2D, double);
616  vtkGetMacro(VerticalOffsetXTitle2D, double);
618 
620 
623  vtkSetMacro(HorizontalOffsetYTitle2D, double);
624  vtkGetMacro(HorizontalOffsetYTitle2D, double);
626 
628 
631  vtkSetMacro(SaveTitlePosition, int);
632  vtkGetMacro(SaveTitlePosition, int);
634 
636 
639  vtkSetVector3Macro(AxisBaseForX, double);
640  vtkGetVector3Macro(AxisBaseForX, double);
642 
644 
647  vtkSetVector3Macro(AxisBaseForY, double);
648  vtkGetVector3Macro(AxisBaseForY, double);
650 
652 
655  vtkSetVector3Macro(AxisBaseForZ, double);
656  vtkGetVector3Macro(AxisBaseForZ, double);
658 
660 
663  vtkSetMacro(AxisOnOrigin, int);
664  vtkGetMacro(AxisOnOrigin, int);
666 
668 
671  vtkSetMacro(LabelOffset, double);
672  vtkGetMacro(LabelOffset, double);
673  vtkSetMacro(TitleOffset, double);
674  vtkGetMacro(TitleOffset, double);
675  vtkSetMacro(ExponentOffset, double);
676  vtkGetMacro(ExponentOffset, double);
677  vtkSetMacro(ScreenSize, double);
678  vtkGetMacro(ScreenSize, double);
680 
681 protected:
683  ~vtkAxisActor() override;
684 
685  char* Title;
686  char* Exponent;
687  double Range[2];
688  double LastRange[2];
689  char* LabelFormat;
694 
701 
707 
713 
717  int DrawGridlinesLocation; // 0: all | 1: closest | 2: farest
718  int LastDrawGridlinesLocation; // 0: all | 1: closest | 2: farest
722 
725 
728 
736 
737  bool Log;
738  int AxisType;
740 
741  // coordinate system for axisAxtor, relative to world coordinates
742  double AxisBaseForX[3];
743  double AxisBaseForY[3];
744  double AxisBaseForZ[3];
745 
746 private:
747  vtkAxisActor(const vtkAxisActor&) = delete;
748  void operator=(const vtkAxisActor&) = delete;
749 
750  void TransformBounds(vtkViewport*, double bnds[6]);
751 
752  void BuildLabels(vtkViewport*, bool);
753  void BuildLabels2D(vtkViewport*, bool);
754  void SetLabelPositions(vtkViewport*, bool);
755  void SetLabelPositions2D(vtkViewport*, bool);
756 
761  void RotateActor2DFromAxisProjection(vtkTextActor* pActor2D);
762 
766  void InitTitle();
767 
771  void InitExponent();
772 
779  void BuildTitle(bool);
780 
785  void BuildExponent(bool force);
786 
787  void BuildExponent2D(vtkViewport* viewport, bool force);
788 
789  void BuildTitle2D(vtkViewport* viewport, bool);
790 
791  void SetAxisPointsAndLines(void);
792 
793  bool BuildTickPoints(double p1[3], double p2[3], bool force);
794 
795  // Build major ticks for linear scale.
796  void BuildMajorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
797 
798  // Build major ticks for logarithmic scale.
799  void BuildMajorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
800 
801  // Build minor ticks for linear scale.
802  void BuildMinorTicks(double p1[3], double p2[3], double localCoordSys[3][3]);
803 
804  // Build minor ticks for logarithmic scale enabled
805  void BuildMinorTicksLog(double p1[3], double p2[3], double localCoordSys[3][3]);
806 
807  void BuildAxisGridLines(double p1[3], double p2[3], double localCoordSys[3][3]);
808 
809  bool TickVisibilityChanged(void);
810  vtkProperty* NewTitleProperty();
811  vtkProperty2D* NewTitleProperty2D();
812  vtkProperty* NewLabelProperty();
813 
814  bool BoundsDisplayCoordinateChanged(vtkViewport* viewport);
815 
816  vtkCoordinate* Point1Coordinate;
817  vtkCoordinate* Point2Coordinate;
818 
819  double MajorTickSize;
820  double MinorTickSize;
821 
822  // For each axis (for the inner gridline generation)
823  double MajorStart[3];
824  double DeltaMajor[3];
825  double MinorStart;
826  double DeltaMinor;
827 
828  // For the ticks, w.r.t to the set range
829  double MajorRangeStart;
830  double MinorRangeStart;
831 
835  double DeltaRangeMinor;
836 
840  double DeltaRangeMajor;
841 
842  int LastAxisPosition;
843  int LastAxisType;
844  int LastTickLocation;
845  double LastLabelStart;
846 
847  vtkPoints* MinorTickPts;
848  vtkPoints* MajorTickPts;
849  vtkPoints* GridlinePts;
850  vtkPoints* InnerGridlinePts;
851  vtkPoints* GridpolyPts;
852 
853  vtkVectorText* TitleVector;
854  vtkPolyDataMapper* TitleMapper;
855  vtkAxisFollower* TitleActor;
856  vtkTextActor* TitleActor2D;
857  vtkProp3DAxisFollower* TitleProp3D;
858  vtkTextActor3D* TitleActor3D;
859  vtkTextProperty* TitleTextProperty;
860 
862 
865  vtkVectorText* ExponentVector;
866  vtkPolyDataMapper* ExponentMapper;
867  vtkAxisFollower* ExponentActor;
868  vtkTextActor* ExponentActor2D;
869  vtkProp3DAxisFollower* ExponentProp3D;
870  vtkTextActor3D* ExponentActor3D;
872 
873  vtkVectorText** LabelVectors;
874  vtkPolyDataMapper** LabelMappers;
875  vtkAxisFollower** LabelActors;
876  vtkProp3DAxisFollower** LabelProps3D;
877  vtkTextActor** LabelActors2D;
878  vtkTextActor3D** LabelActors3D;
879  vtkTextProperty* LabelTextProperty;
880 
881  // Main line axis
882  vtkPolyData* AxisLines;
883  vtkPolyDataMapper* AxisLinesMapper;
884  vtkActor* AxisLinesActor;
885 
886  // Ticks of the axis
887  vtkPolyData *AxisMajorTicks, *AxisMinorTicks;
888  vtkPolyDataMapper *AxisMajorTicksMapper, *AxisMinorTicksMapper;
889  vtkActor *AxisMajorTicksActor, *AxisMinorTicksActor;
890 
891  vtkPolyData* Gridlines;
892  vtkPolyDataMapper* GridlinesMapper;
893  vtkActor* GridlinesActor;
894  vtkPolyData* InnerGridlines;
895  vtkPolyDataMapper* InnerGridlinesMapper;
896  vtkActor* InnerGridlinesActor;
897  vtkPolyData* Gridpolys;
898  vtkPolyDataMapper* GridpolysMapper;
899  vtkActor* GridpolysActor;
900 
901  vtkCamera* Camera;
902  vtkTimeStamp BuildTime;
903  vtkTimeStamp BuildTickPointsTime;
904  vtkTimeStamp BoundsTime;
905  vtkTimeStamp LabelBuildTime;
906  vtkTimeStamp TitleTextTime;
907  vtkTimeStamp ExponentTextTime;
908 
909  int AxisOnOrigin;
910 
911  int AxisHasZeroLength;
912 
913  vtkTypeBool CalculateTitleOffset;
914  vtkTypeBool CalculateLabelOffset;
915 
919  int Use2DMode;
920 
925  double VerticalOffsetXTitle2D;
926 
931  double HorizontalOffsetYTitle2D;
932 
939  int SaveTitlePosition;
940 
944  double TitleConstantPosition[2];
945 
949  bool NeedBuild2D;
950 
951  double LastMinDisplayCoordinate[3];
952  double LastMaxDisplayCoordinate[3];
953  double TickVector[3];
954 
956 
959  double ScreenSize;
960  double LabelOffset;
961  double TitleOffset;
962  double ExponentOffset;
963 };
965 
966 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
Create an axis with tick marks and labels.
Definition: vtkAxisActor.h:72
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int LastDrawGridlinesLocation
Definition: vtkAxisActor.h:718
double GridlineZLength
Definition: vtkAxisActor.h:721
int LastMinorTicksVisible
Definition: vtkAxisActor.h:693
void SetAxisTypeToZ(void)
Definition: vtkAxisActor.h:423
virtual void SetPoint2(double x, double y, double z)
virtual vtkCoordinate * GetPoint1Coordinate()
Specify the position of the first point defining the axis.
vtkTypeBool LabelVisibility
Definition: vtkAxisActor.h:732
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
void SetAxisPositionToMinMin(void)
Definition: vtkAxisActor.h:455
virtual void SetPoint2(double x[3])
Definition: vtkAxisActor.h:97
void SetDeltaMajor(int axis, double value)
vtkTypeBool TitleVisibility
Definition: vtkAxisActor.h:733
vtkProperty * GetAxisMajorTicksProperty()
void SetAxisMainLineProperty(vtkProperty *)
Get/Set main line axis actor property.
vtkTypeBool DrawGridpolys
Definition: vtkAxisActor.h:726
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
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkProp3DAxisFollower ** GetLabelProps3D()
Get label actors responsigle for drawing label text.
Definition: vtkAxisActor.h:565
~vtkAxisActor() override
double ComputeMaxLabelLength(const double[3])
int NumberOfLabelsBuilt
Definition: vtkAxisActor.h:691
static vtkAxisActor * New()
Instantiate object.
void SetTickLocationToOutside(void)
Definition: vtkAxisActor.h:200
double GetMajorStart(int axis)
double GridlineYLength
Definition: vtkAxisActor.h:720
vtkTypeBool DrawInnerGridlines
Definition: vtkAxisActor.h:723
virtual vtkCoordinate * GetPoint2Coordinate()
Specify the position of the second point defining the axis.
void SetGridlinesProperty(vtkProperty *)
Get/Set gridlines actor property (outer grid lines)
double * GetBounds(void) override
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void SetLabelScale(int labelIndex, const double scale)
void SetTitle(const char *t)
Set/Get the title of the axis actor,.
vtkProperty * GetGridlinesProperty()
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the axis labels text property.
double GridlineXLength
Definition: vtkAxisActor.h:719
virtual void SetExponentLocation(int location)
Get/Set the location of the Detached Exponent related to the axis.
char * LabelFormat
Definition: vtkAxisActor.h:689
bool LastMajorTickPointCorrection
Definition: vtkAxisActor.h:735
double GetDeltaMajor(int axis)
vtkProperty * GetInnerGridlinesProperty()
virtual void SetPoint1(double x[3])
Definition: vtkAxisActor.h:87
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
vtkTypeBool DrawGridlines
Definition: vtkAxisActor.h:714
void SetInnerGridlinesProperty(vtkProperty *)
Get/Set inner gridlines actor property.
virtual double * GetPoint1()
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)
int TitleAlignLocation
Hold the alignment property of the title related to the axis.
Definition: vtkAxisActor.h:706
void BuildAxis(vtkViewport *viewport, bool)
void GetBounds(double bounds[6])
void SetAxisTypeToX(void)
Definition: vtkAxisActor.h:421
vtkTypeBool DrawGridlinesOnly
Definition: vtkAxisActor.h:715
vtkTypeBool TickVisibility
Definition: vtkAxisActor.h:730
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Draw the axis.
vtkProperty * GetAxisMinorTicksProperty()
vtkTypeBool AxisVisibility
Definition: vtkAxisActor.h:729
char * Exponent
Definition: vtkAxisActor.h:686
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
Definition: vtkAxisActor.h:712
int LastDrawInnerGridlines
Definition: vtkAxisActor.h:724
void SetAxisPositionToMaxMax(void)
Definition: vtkAxisActor.h:457
bool ExponentVisibility
Definition: vtkAxisActor.h:734
vtkProperty * GetGridpolysProperty()
vtkProperty * GetAxisLinesProperty()
virtual void SetTitleAlignLocation(int location)
Get/Set the alignment of the title related to the axis.
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:727
virtual int RenderTranslucentGeometry(vtkViewport *viewport)
void SetLabels(vtkStringArray *labels)
virtual double * GetPoint2()
void SetTickLocationToInside(void)
Definition: vtkAxisActor.h:199
int LastTickVisibility
Definition: vtkAxisActor.h:731
int TickLocation
The location of the ticks.
Definition: vtkAxisActor.h:700
void SetAxisPositionToMinMax(void)
Definition: vtkAxisActor.h:456
int LastDrawGridlines
Definition: vtkAxisActor.h:716
vtkAxisFollower ** GetLabelActors()
Get label actors responsigle for drawing label text.
Definition: vtkAxisActor.h:552
virtual void SetPoint1(double x, double y, double z)
void SetAxisMinorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
void SetAxisTypeToY(void)
Definition: vtkAxisActor.h:422
vtkTypeBool MinorTicksVisible
Definition: vtkAxisActor.h:692
void SetMajorStart(int axis, double value)
vtkProperty * GetAxisMainLineProperty()
void SetTickLocationToBoth(void)
Definition: vtkAxisActor.h:201
void SetExponent(const char *t)
Set/Get the common exponent of the labels values.
void SetTitleScale(const double scale)
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
int DrawGridlinesLocation
Definition: vtkAxisActor.h:717
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
void SetAxisPositionToMaxMin(void)
Definition: vtkAxisActor.h:458
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:46
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:77
a subclass of actor that always faces the camera
Definition: vtkFollower.h:41
a simple class to control print indentation
Definition: vtkIndent.h:34
represent and manipulate 3D points
Definition: vtkPoints.h:34
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
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:38
represent surface properties of a geometric object
Definition: vtkProperty.h:62
a vtkAbstractArray subclass for strings
An actor that displays text.
An actor that displays text.
Definition: vtkTextActor.h:51
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:33
create polygonal text
Definition: vtkVectorText.h:42
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
@ 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(...)