vtkPVGridAxes3DActor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkPVGridAxes3DActor_h
27 #define vtkPVGridAxes3DActor_h
28 
29 #include "vtkGridAxesActor3D.h"
30 #include "vtkRemotingViewsModule.h" //needed for exports
31 
32 class vtkMatrix4x4;
33 
34 class VTKREMOTINGVIEWS_EXPORT vtkPVGridAxes3DActor : public vtkGridAxesActor3D
35 {
36 public:
37  static vtkPVGridAxes3DActor* New();
38  vtkTypeMacro(vtkPVGridAxes3DActor, vtkGridAxesActor3D);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  void ShallowCopy(vtkProp* prop) override;
45 
47 
50  vtkSetVector3Macro(DataScale, double);
51  vtkGetVector3Macro(DataScale, double);
53 
55 
58  void SetDisplayTransformScale(double scaleX, double scaleY, double scaleZ);
59  void SetDisplayTransformScale(double scale[3])
60  {
61  this->SetDisplayTransformScale(scale[0], scale[1], scale[2]);
62  }
63  vtkGetVector3Macro(DisplayTransformScale, double);
65 
71  void InvertDisplayTransformScaleForTickLabels(bool enabled);
72 
73  vtkSetVector3Macro(DataPosition, double);
74  vtkGetVector3Macro(DataPosition, double);
75 
77 
81  vtkSetMacro(DataBoundsScaleFactor, double);
82  vtkGetMacro(DataBoundsScaleFactor, double);
84 
86 
94  vtkSetVector6Macro(TransformedBounds, double);
95  vtkGetVector6Macro(TransformedBounds, double);
97 
99 
103  vtkSetMacro(UseCustomTransformedBounds, bool);
104  vtkGetMacro(UseCustomTransformedBounds, bool);
106 
108 
112  vtkSetVector6Macro(CustomTransformedBounds, double);
113  vtkGetVector6Macro(CustomTransformedBounds, double);
115 
116  vtkSetMacro(UseModelTransform, bool);
117  vtkGetMacro(UseModelTransform, bool);
118  vtkBooleanMacro(UseModelTransform, bool);
119  vtkSetVector6Macro(ModelBounds, double);
120  vtkGetVector6Macro(ModelBounds, double);
121  void SetModelTransformMatrix(double* matrix);
122 
127  double* GetBounds() override;
128 
129 protected:
131  ~vtkPVGridAxes3DActor() override;
132 
133  void Update(vtkViewport* viewport) override;
134  void UpdateGridBounds();
135  void UpdateGridBoundsUsingDataBounds();
136  void UpdateGridBoundsUsingModelTransform();
137 
138  double DataScale[3];
139  double DataPosition[3];
141  double TransformedBounds[6];
142 
143  double DisplayTransformScale[3];
144 
146  double ModelBounds[6];
148 
150  double CustomTransformedBounds[6];
151 
152 private:
154  void operator=(const vtkPVGridAxes3DActor&) = delete;
155 
156  vtkTimeStamp BoundsUpdateTime;
157 };
158 
159 #endif
#define VTKREMOTINGVIEWS_EXPORT
void SetDisplayTransformScale(double scale[3])
Specify the scale used in the display transformation.
virtual void Update()
enabled
vtkNew< vtkMatrix4x4 > ModelTransformMatrix
ParaView extensions for vtkGridAxesActor3D.