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
37class vtkInformation;
40class vtkTimeStamp;
41
42class VTKACCELERATORSPISTON_EXPORT vtkPistonDataObject : public vtkDataObject
43{
44public:
47 void PrintSelf(ostream &os, vtkIndent indent);
48
53
58
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
119 void GetScalarsRange(double range[2]);
121
124 void SetScalarsRange(double range[2]);
125
127
133
134protected:
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
148private:
149 vtkPistonDataObject(const vtkPistonDataObject&) VTK_DELETE_FUNCTION;
150 void operator=(const vtkPistonDataObject&) VTK_DELETE_FUNCTION;
151};
152
153#endif
general representation of visualization data
Definition: vtkDataObject.h:65
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A GPU resident data set.
double * GetBounds()
Return a pointer to the geometry bounding box in the form (xmin,xmax, ymin,ymax, zmin,...
static vtkPistonDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
void SetSpacing(double spacing[3])
void GetBounds(double bounds[6])
void SetOrigin(const double origin[3])
static vtkPistonDataObject * GetData(vtkInformationVector *v, int i=0)
void GetScalarsRange(double range[2])
double * GetSpacing()
vtkPistonReference * Reference
void * GetReferredData()
A convenience handle to get whatever is actually stored in the reference.
vtkPistonReference * GetReference()
GPU level representation and storage this manages.
void SetScalarsRange(double range[2])
Set scalars range.
int GetReferredType()
A convenience handle to get type of what is stored in the reference.
void GetOrigin(double origin[3])
virtual void DeepCopy(vtkDataObject *src)
void SetBounds(const double bounds[6])
int GetDataObjectType()
From vtkType.h, a handle on what type of vtkDataObject this is.
void GetSpacing(double spacing[3])
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ShallowCopy(vtkDataObject *src)
Shallow/deep copy the data from src into this object.
virtual void ComputeBounds()
Compute the data bounding box.
double * GetOrigin()
static vtkPistonDataObject * New()
double * GetScalarsRange()
Get scalars range \NOTE: For now only one scalar is supported in Piston.
Lower level handle on GPU resident data.
record modification and/or execution time
Definition: vtkTimeStamp.h:36
@ info
Definition: vtkX3D.h:376
@ range
Definition: vtkX3D.h:238
@ spacing
Definition: vtkX3D.h:481
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
#define VTK_PISTON_DATA_OBJECT
Definition: vtkType.h:121