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 "vtkGridAxes3DActor.h"
30 #include "vtkRemotingViewsModule.h" //needed for exports
31 
32 class vtkMatrix4x4;
33 
35 {
36 public:
37  static vtkPVGridAxes3DActor* New();
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 
54  vtkSetVector3Macro(DataPosition, double);
55  vtkGetVector3Macro(DataPosition, double);
56 
58 
62  vtkSetMacro(DataBoundsScaleFactor, double);
63  vtkGetMacro(DataBoundsScaleFactor, double);
65 
67 
75  vtkSetVector6Macro(TransformedBounds, double);
76  vtkGetVector6Macro(TransformedBounds, double);
78 
80 
84  vtkSetMacro(UseCustomTransformedBounds, bool);
85  vtkGetMacro(UseCustomTransformedBounds, bool);
87 
89 
93  vtkSetVector6Macro(CustomTransformedBounds, double);
94  vtkGetVector6Macro(CustomTransformedBounds, double);
96 
97  vtkSetMacro(UseModelTransform, bool);
98  vtkGetMacro(UseModelTransform, bool);
99  vtkBooleanMacro(UseModelTransform, bool);
100  vtkSetVector6Macro(ModelBounds, double);
101  vtkGetVector6Macro(ModelBounds, double);
102  void SetModelTransformMatrix(double* matrix);
103 
108  double* GetBounds() override;
109 
110 protected:
112  ~vtkPVGridAxes3DActor() override;
113 
114  void Update(vtkViewport* viewport) override;
115  void UpdateGridBounds();
116  void UpdateGridBoundsUsingDataBounds();
117  void UpdateGridBoundsUsingModelTransform();
118 
119  double DataScale[3];
120  double DataPosition[3];
122  double TransformedBounds[6];
123 
125  double ModelBounds[6];
127 
129  double CustomTransformedBounds[6];
130 
131 private:
133  void operator=(const vtkPVGridAxes3DActor&) = delete;
134 
135  vtkTimeStamp BoundsUpdateTime;
136 };
137 
138 #endif
#define VTKREMOTINGVIEWS_EXPORT
double * GetBounds() override
Returns the prop bounds.
virtual void Update(vtkViewport *viewport)
void ShallowCopy(vtkProp *prop) override
Shallow copy from another vtkGridAxes3DActor.
actor for a cube-axes like prop in the 3D view.
static vtkGridAxes3DActor * New()
vtkNew< vtkMatrix4x4 > ModelTransformMatrix
void PrintSelf(ostream &os, vtkIndent indent) override
ParaView extensions for vtkGridAxes3DActor.