VTK
vtkPistonDataObject.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPistonDataObject.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
31 #ifndef vtkPistonDataObject_h
32 #define vtkPistonDataObject_h
33 
34 #include "vtkAcceleratorsPistonModule.h" // For export macro
35 #include "vtkDataObject.h"
36 
37 class vtkInformation;
39 class vtkPistonReference;
40 class vtkTimeStamp;
41 
42 class VTKACCELERATORSPISTON_EXPORT vtkPistonDataObject : public vtkDataObject
43 {
44 public:
45  static vtkPistonDataObject* New();
47  void PrintSelf(ostream &os, vtkIndent indent);
48 
53 
57  int GetReferredType();
58 
62  void * GetReferredData();
63 
67  vtkPistonReference *GetReference() { return this->Reference; };
68 
70 
73  virtual void ShallowCopy(vtkDataObject* src);
74  virtual void DeepCopy(vtkDataObject* src);
76 
80  virtual void ComputeBounds();
81 
83 
87  double *GetBounds();
88  void GetBounds(double bounds[6]);
89  void SetBounds(const double bounds[6]);
91 
93  double *GetOrigin();
94  void GetOrigin(double origin[3]);
95  void SetOrigin(const double origin[3]);
97 
99  double *GetSpacing();
100  void GetSpacing(double spacing[3]);
101  void SetSpacing(double spacing[3]);
103 
105 
108  vtkGetStringMacro(ScalarsArrayName);
109  // Set scalars array name
110  vtkSetStringMacro(ScalarsArrayName);
112 
114 
118  double* GetScalarsRange();
119  void GetScalarsRange(double range[2]);
121 
124  void SetScalarsRange(double range[2]);
125 
127 
131  static vtkPistonDataObject* GetData(vtkInformationVector* v, int i=0);
133 
134 protected:
137 
140  double Bounds[6];
141  double Origin[3];
142  double Spacing[3];
143 
145  double ScalarsRange[2];
146  vtkTimeStamp ComputeTime; // Time at which bounds, center, etc. computed
147 
148 private:
149  vtkPistonDataObject(const vtkPistonDataObject&) VTK_DELETE_FUNCTION;
150  void operator=(const vtkPistonDataObject&) VTK_DELETE_FUNCTION;
151 };
152 
153 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
A GPU resident data set.
record modification and/or execution time
Definition: vtkTimeStamp.h:35
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkPistonReference * GetReference()
GPU level representation and storage this manages.
Lower level handle on GPU resident data.
Store zero or more vtkInformation instances.
vtkPistonReference * Reference
int GetDataObjectType()
From vtkType.h, a handle on what type of vtkDataObject this is.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy.
#define VTK_PISTON_DATA_OBJECT
Definition: vtkType.h:121
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.