VTK
vtkPistonReference.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPistonReference.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 =========================================================================*/
30 #ifndef VTKPistonReference_H_
31 #define VTKPistonReference_H_
32 
33 namespace vtkpiston {
36 }
37 
39 public:
40 
41  vtkPistonReference() : mtime(0), type(-1), data(NULL)
42  {
43  VTK_LEGACY_BODY(vtkPistonReference::vtkPistonReference, "VTK 6.3");
44  //cerr << "TR(" << this << ") CREATE" << endl;
45  }
46 
48  {
49  //cerr << "TR(" << this << ") DELETE" << endl;
51  }
52 
54  {
55  //cerr << "TR(" << this << ") DEEP COPY" << endl;
56  vtkpiston::DeepCopy(this, other);
57  }
58 
59  unsigned long int mtime; //creation time of the data
60  int type; //description of what data holds
61  void *data; //the payload on GPU
62 };
63 
64 #endif /* VTKPistonReference_H_ */
65 // VTK-HeaderTest-Exclude: vtkPistonReference.h
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
unsigned long int mtime
Lower level handle on GPU resident data.
void DeleteData(vtkPistonReference *)
vtkPistonReference(vtkPistonReference *other)