VTK  9.0.20210424
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
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:37
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:34
vtk::Range
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
vtkAxisActor::SetTitleScale
void SetTitleScale(const double scale)
vtkAxisActor::SetExponentLocation
virtual void SetExponentLocation(int location)
Get/Set the location of the Detached Exponent related to the axis.
vtkFollower
a subclass of actor that always faces the camera
Definition: vtkFollower.h:41
vtkAxisActor::AxisType
AxisType
Definition: vtkAxisActor.h:409
vtkAxisActor::SetAxisMajorTicksProperty
void SetAxisMajorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
vtkAxisActor::LastDrawGridlines
int LastDrawGridlines
Definition: vtkAxisActor.h:716
vtkAxisActor::SetAxisMinorTicksProperty
void SetAxisMinorTicksProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks)
vtkAxisActor
Create an axis with tick marks and labels.
Definition: vtkAxisActor.h:72
vtkAxisActor::SetBounds
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).
vtkAxisActor::GetLabelProps3D
vtkProp3DAxisFollower ** GetLabelProps3D()
Get label actors responsigle for drawing label text.
Definition: vtkAxisActor.h:565
vtkX3D::scale
@ scale
Definition: vtkX3D.h:235
vtkAxisActor::SetBounds
void SetBounds(const double bounds[6])
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkAxisActor::ExponentLocation
int ExponentLocation
Hold the alignment property of the exponent coming from the label values.
Definition: vtkAxisActor.h:712
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkAxisActor::SetTickLocationToInside
void SetTickLocationToInside(void)
Definition: vtkAxisActor.h:199
vtkAxisActor::GetBounds
void GetBounds(double bounds[6])
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkAxisActor::TickLocation
int TickLocation
The location of the ticks.
Definition: vtkAxisActor.h:700
vtkTextActor3D
An actor that displays text.
Definition: vtkTextActor3D.h:45
vtkAxisActor::SetLabelScale
void SetLabelScale(int labelIndex, const double scale)
vtkAxisActor::GridlineXLength
double GridlineXLength
Definition: vtkAxisActor.h:719
vtkAxisActor::SetCamera
virtual void SetCamera(vtkCamera *)
Set/Get the camera for this axis.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:33
vtkAxisActor::UseTextActor3D
int UseTextActor3D
Definition: vtkAxisActor.h:690
vtkAxisActor::DrawGridlinesLocation
int DrawGridlinesLocation
Definition: vtkAxisActor.h:717
vtkAxisActor::AxisPosition
AxisPosition
Definition: vtkAxisActor.h:427
vtkAxisActor::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
Draw the axis.
vtkAxisActor::New
static vtkAxisActor * New()
Instantiate object.
vtkAxisActor::Exponent
char * Exponent
Definition: vtkAxisActor.h:686
vtkAxisActor::AlignLocation
AlignLocation
Definition: vtkAxisActor.h:258
vtkAxisActor::SetAxisTypeToY
void SetAxisTypeToY(void)
Set/Get the type of this axis.
Definition: vtkAxisActor.h:422
vtkAxisActor::LastMinorTicksVisible
int LastMinorTicksVisible
Definition: vtkAxisActor.h:693
vtkAxisActor::GetPoint1Coordinate
virtual vtkCoordinate * GetPoint1Coordinate()
Specify the position of the first point defining the axis.
vtkAxisActor::ComputeMaxLabelLength
double ComputeMaxLabelLength(const double[3])
vtkAxisActor::LabelVisibility
vtkTypeBool LabelVisibility
Definition: vtkAxisActor.h:732
vtkAxisActor::GetPoint2Coordinate
virtual vtkCoordinate * GetPoint2Coordinate()
Specify the position of the second point defining the axis.
vtkAxisActor::SetDeltaMajor
void SetDeltaMajor(int axis, double value)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkAxisActor::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
Draw the axis.
vtkVectorText
create polygonal text
Definition: vtkVectorText.h:42
vtkAxisActor::LastMajorTickPointCorrection
bool LastMajorTickPointCorrection
Definition: vtkAxisActor.h:735
vtkAxisActor::GridlineZLength
double GridlineZLength
Definition: vtkAxisActor.h:721
vtkAxisActor::DrawGridlinesOnly
vtkTypeBool DrawGridlinesOnly
Definition: vtkAxisActor.h:715
vtkAxisActor::SetTitle
void SetTitle(const char *t)
Set/Get the title of the axis actor,.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
vtkAxisActor::GetAxisLinesProperty
vtkProperty * GetAxisLinesProperty()
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
vtkAxisActor::GetBounds
double * GetBounds(void) override
Set or get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkAxisActor::DrawGridlines
vtkTypeBool DrawGridlines
Definition: vtkAxisActor.h:714
vtkAxisActor::RenderOverlay
int RenderOverlay(vtkViewport *viewport) override
Draw the axis.
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:48
vtkAxisActor::NumberOfLabelsBuilt
int NumberOfLabelsBuilt
Definition: vtkAxisActor.h:691
vtkAxisActor::GetGridpolysProperty
vtkProperty * GetGridpolysProperty()
Get/Set gridPolys actor property (grid quads)
vtkAxisActor::ComputeTitleLength
double ComputeTitleLength(const double[3])
vtkAxisActor::GetInnerGridlinesProperty
vtkProperty * GetInnerGridlinesProperty()
Get/Set inner gridlines actor property.
vtkAxisFollower
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
Definition: vtkAxisFollower.h:42
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
vtkAxisActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTextActor
An actor that displays text.
Definition: vtkTextActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:46
vtkAxisActor::SetTitleAlignLocation
virtual void SetTitleAlignLocation(int location)
Get/Set the alignment of the title related to the axis.
vtkAxisActor::SetGridlinesProperty
void SetGridlinesProperty(vtkProperty *)
Get/Set gridlines actor property (outer grid lines)
vtkAxisActor::SetExponent
void SetExponent(const char *t)
Set/Get the common exponent of the labels values.
vtkAxisActor::SetAxisTypeToX
void SetAxisTypeToX(void)
Set/Get the type of this axis.
Definition: vtkAxisActor.h:421
vtkAxisActor::GetAxisMainLineProperty
vtkProperty * GetAxisMainLineProperty()
Get/Set main line axis actor property.
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:77
vtkAxisActor::SetPoint2
virtual void SetPoint2(double x, double y, double z)
Specify the position of the second point defining the axis.
vtkAxisActor::TitleAlignLocation
int TitleAlignLocation
Hold the alignment property of the title related to the axis.
Definition: vtkAxisActor.h:706
vtkActor.h
vtkAxisActor::GridlineYLength
double GridlineYLength
Definition: vtkAxisActor.h:720
vtkAxisActor::GetMajorStart
double GetMajorStart(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkAxisActor::GetAxisMinorTicksProperty
vtkProperty * GetAxisMinorTicksProperty()
Get/Set axis actor property (axis and its ticks)
vtkAxisActor::SetAxisPositionToMaxMin
void SetAxisPositionToMaxMin(void)
Definition: vtkAxisActor.h:458
vtkAxisActor::BuildAxis
void BuildAxis(vtkViewport *viewport, bool)
vtkAxisActor::SetAxisTypeToZ
void SetAxisTypeToZ(void)
Set/Get the type of this axis.
Definition: vtkAxisActor.h:423
vtkAxisActor::LastDrawGridlinesLocation
int LastDrawGridlinesLocation
Definition: vtkAxisActor.h:718
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:45
vtkAxisActor::GetPoint2
virtual double * GetPoint2()
Specify the position of the second point defining the axis.
vtkAxisActor::AxisPosition
int AxisPosition
Definition: vtkAxisActor.h:739
vtkAxisActor::GetLabelActors
vtkAxisFollower ** GetLabelActors()
Get label actors responsigle for drawing label text.
Definition: vtkAxisActor.h:552
vtkAxisActor::Title
char * Title
Definition: vtkAxisActor.h:685
vtkAxisActor::vtkAxisActor
vtkAxisActor()
vtkAxisActor::SetTickLocationToBoth
void SetTickLocationToBoth(void)
Definition: vtkAxisActor.h:201
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:34
vtkAxisActor::Log
bool Log
Definition: vtkAxisActor.h:737
vtkAxisActor::SetTickLocationToOutside
void SetTickLocationToOutside(void)
Definition: vtkAxisActor.h:200
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:38
vtkAxisActor::SetAxisLinesProperty
void SetAxisLinesProperty(vtkProperty *)
Get/Set axis actor property (axis and its ticks) (kept for compatibility)
vtkAxisActor::SetAxisPositionToMaxMax
void SetAxisPositionToMaxMax(void)
Definition: vtkAxisActor.h:457
vtkAxisActor::DrawGridpolys
vtkTypeBool DrawGridpolys
Definition: vtkAxisActor.h:726
vtkAxisActor::TickVisibility
vtkTypeBool TickVisibility
Definition: vtkAxisActor.h:730
vtkAxisActor::SetMajorStart
void SetMajorStart(int axis, double value)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkAxisActor::SetGridpolysProperty
void SetGridpolysProperty(vtkProperty *)
Get/Set gridPolys actor property (grid quads)
vtkAxisActor::LastTickVisibility
int LastTickVisibility
Definition: vtkAxisActor.h:731
vtkAxisActor::SetLabels
void SetLabels(vtkStringArray *labels)
vtkAxisActor::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Draw the axis.
vtkAxisActor::DrawInnerGridlines
vtkTypeBool DrawInnerGridlines
Definition: vtkAxisActor.h:723
vtkAxisActor::SetLabelTextProperty
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the axis labels text property.
vtkAxisActor::AxisType
int AxisType
Definition: vtkAxisActor.h:738
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkAxisActor::LabelFormat
char * LabelFormat
Definition: vtkAxisActor.h:689
vtkAxisActor::SetPoint1
virtual void SetPoint1(double x[3])
Specify the position of the first point defining the axis.
Definition: vtkAxisActor.h:87
vtkAxisActor::MinorTicksVisible
vtkTypeBool MinorTicksVisible
Definition: vtkAxisActor.h:692
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:37
vtkX3D::location
@ location
Definition: vtkX3D.h:412
vtkAxisActor::GetAxisMajorTicksProperty
vtkProperty * GetAxisMajorTicksProperty()
Get/Set axis actor property (axis and its ticks)
vtkAxisActor::SetAxisPositionToMinMax
void SetAxisPositionToMinMax(void)
Definition: vtkAxisActor.h:456
vtkAxisActor::GetGridlinesProperty
vtkProperty * GetGridlinesProperty()
Get/Set gridlines actor property (outer grid lines)
vtkAxisActor::SetAxisMainLineProperty
void SetAxisMainLineProperty(vtkProperty *)
Get/Set main line axis actor property.
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:62
vtkAxisActor::SetPoint1
virtual void SetPoint1(double x, double y, double z)
Specify the position of the first point defining the axis.
vtkAxisActor::ExponentVisibility
bool ExponentVisibility
Definition: vtkAxisActor.h:734
vtkAxisActor::TitleVisibility
vtkTypeBool TitleVisibility
Definition: vtkAxisActor.h:733
vtkAxisActor::SetLabelScale
void SetLabelScale(const double scale)
vtkAxisActor::SetTitleTextProperty
virtual void SetTitleTextProperty(vtkTextProperty *p)
Set/Get the axis title text property.
vtkProp3DAxisFollower
a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vt...
Definition: vtkProp3DAxisFollower.h:40
vtkAxisActor::SetAxisPositionToMinMin
void SetAxisPositionToMinMin(void)
Definition: vtkAxisActor.h:455
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkAxisActor::GetPoint1
virtual double * GetPoint1()
Specify the position of the first point defining the axis.
vtkAxisActor::~vtkAxisActor
~vtkAxisActor() override
vtkAxisActor::LastDrawInnerGridlines
int LastDrawInnerGridlines
Definition: vtkAxisActor.h:724
vtkAxisActor::SetPoint2
virtual void SetPoint2(double x[3])
Specify the position of the second point defining the axis.
Definition: vtkAxisActor.h:97
vtkAxisActor::AxisVisibility
vtkTypeBool AxisVisibility
Definition: vtkAxisActor.h:729
vtkAxisActor::GetDeltaMajor
double GetDeltaMajor(int axis)
Set/Get the starting position for minor and major tick points, and the delta values that determine th...
vtkAxisActor::TickLocation
TickLocation
Definition: vtkAxisActor.h:183
vtkAxisActor::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkAxisActor::SetInnerGridlinesProperty
void SetInnerGridlinesProperty(vtkProperty *)
Get/Set inner gridlines actor property.
vtkAxisActor::LastDrawGridpolys
int LastDrawGridpolys
Definition: vtkAxisActor.h:727
vtkAxisActor::RenderTranslucentGeometry
virtual int RenderTranslucentGeometry(vtkViewport *viewport)
Draw the axis.