vtkPVGridAxes3DActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVGridAxes3DActor.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
38 #ifndef vtkPVGridAxes3DActor_h
39 #define vtkPVGridAxes3DActor_h
40 
41 #include "vtkGridAxes3DActor.h"
42 #include "vtkRemotingViewsModule.h" //needed for exports
43 
44 class vtkMatrix4x4;
45 
47 {
48 public:
49  static vtkPVGridAxes3DActor* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
56  void ShallowCopy(vtkProp* prop) override;
57 
59 
62  vtkSetVector3Macro(DataScale, double);
63  vtkGetVector3Macro(DataScale, double);
65 
66  vtkSetVector3Macro(DataPosition, double);
67  vtkGetVector3Macro(DataPosition, double);
68 
70 
74  vtkSetMacro(DataBoundsScaleFactor, double);
75  vtkGetMacro(DataBoundsScaleFactor, double);
77 
79 
87  vtkSetVector6Macro(TransformedBounds, double);
88  vtkGetVector6Macro(TransformedBounds, double);
90 
92 
96  vtkSetMacro(UseCustomTransformedBounds, bool);
97  vtkGetMacro(UseCustomTransformedBounds, bool);
99 
101 
105  vtkSetVector6Macro(CustomTransformedBounds, double);
106  vtkGetVector6Macro(CustomTransformedBounds, double);
108 
109  vtkSetMacro(UseModelTransform, bool);
110  vtkGetMacro(UseModelTransform, bool);
111  vtkBooleanMacro(UseModelTransform, bool);
112  vtkSetVector6Macro(ModelBounds, double);
113  vtkGetVector6Macro(ModelBounds, double);
114  void SetModelTransformMatrix(double* matrix);
115 
120  double* GetBounds() override;
121 
122 protected:
124  ~vtkPVGridAxes3DActor() override;
125 
126  void Update(vtkViewport* viewport) override;
127  void UpdateGridBounds();
128  void UpdateGridBoundsUsingDataBounds();
129  void UpdateGridBoundsUsingModelTransform();
130 
131  double DataScale[3];
132  double DataPosition[3];
134  double TransformedBounds[6];
135 
137  double ModelBounds[6];
139 
141  double CustomTransformedBounds[6];
142 
143 private:
145  void operator=(const vtkPVGridAxes3DActor&) = delete;
146 
147  vtkTimeStamp BoundsUpdateTime;
148 };
149 
150 #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.