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 =========================================================================*/
31 #ifndef vtkPistonReference_h
32 #define vtkPistonReference_h
33 
34 namespace vtkpiston {
37 }
38 
40 public:
41 
42  vtkPistonReference() : mtime(0), type(-1), data(NULL)
43  {
44  VTK_LEGACY_BODY(vtkPistonReference::vtkPistonReference, "VTK 6.3");
45  //cerr << "TR(" << this << ") CREATE" << endl;
46  }
47 
49  {
50  //cerr << "TR(" << this << ") DELETE" << endl;
52  }
53 
55  {
56  //cerr << "TR(" << this << ") DEEP COPY" << endl;
57  vtkpiston::DeepCopy(this, other);
58  }
59 
60  vtkMTimeType mtime; //creation time of the data
61  int type; //description of what data holds
62  void *data; //the payload on GPU
63 };
64 
65 #endif /* vtkPistonReference_h */
66 // VTK-HeaderTest-Exclude: vtkPistonReference.h
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
Lower level handle on GPU resident data.
void DeleteData(vtkPistonReference *)
vtkPistonReference(vtkPistonReference *other)