ParaView
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 "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
43 
44 class vtkMatrix4x4;
45 
46 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVGridAxes3DActor : public vtkGridAxes3DActor
47 {
48 public:
49  static vtkPVGridAxes3DActor* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
56  virtual void ShallowCopy(vtkProp* prop);
57 
59 
62  vtkSetVector3Macro(DataScale, double);
63  vtkGetVector3Macro(DataScale, double);
65 
66  vtkSetVector3Macro(DataPosition, double);
67  vtkGetVector3Macro(DataPosition, double);
68 
70  vtkSetVector6Macro(TransformedBounds, double);
71  vtkGetVector6Macro(TransformedBounds, double);
73 
74  vtkSetMacro(UseModelTransform, bool);
75  vtkGetMacro(UseModelTransform, bool);
76  vtkBooleanMacro(UseModelTransform, bool);
77  vtkSetVector6Macro(ModelBounds, double);
78  vtkGetVector6Macro(ModelBounds, double);
79  void SetModelTransformMatrix(double* matrix);
80 
85  virtual double* GetBounds();
86 
87 protected:
90 
91  virtual void Update(vtkViewport* viewport);
92  void UpdateGridBounds();
93  void UpdateGridBoundsUsingDataBounds();
94  void UpdateGridBoundsUsingModelTransform();
95 
96  double DataScale[3];
97  double DataPosition[3];
98  double TransformedBounds[6];
99 
101  double ModelBounds[6];
102  vtkNew<vtkMatrix4x4> ModelTransformMatrix;
103 
104 private:
105  vtkPVGridAxes3DActor(const vtkPVGridAxes3DActor&) VTK_DELETE_FUNCTION;
106  void operator=(const vtkPVGridAxes3DActor&) VTK_DELETE_FUNCTION;
107 
108  vtkTimeStamp BoundsUpdateTime;
109 };
110 
111 #endif
virtual void Update(vtkViewport *viewport)
virtual double * GetBounds()
Returns the prop bounds.
void PrintSelf(ostream &os, vtkIndent indent)
virtual void ShallowCopy(vtkProp *prop)
Shallow copy from another vtkGridAxes3DActor.
static vtkGridAxes3DActor * New()
vtkNew< vtkMatrix4x4 > ModelTransformMatrix
ParaView extensions for vtkGridAxes3DActor.