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  //cerr << "TR(" << this << ") CREATE" << endl;
44  }
45 
47  {
48  //cerr << "TR(" << this << ") DELETE" << endl;
50  }
51 
53  {
54  //cerr << "TR(" << this << ") DEEP COPY" << endl;
55  vtkpiston::DeepCopy(this, other);
56  }
57 
58  unsigned long int mtime; //creation time of the data
59  int type; //description of what data holds
60  void *data; //the payload on GPU
61 };
62 
63 #endif /* VTKPistonReference_H_ */
64 // 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)