VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
dox
Accelerators
Piston
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 {
34
void
DeleteData
(
vtkPistonReference
*tr);
35
void
DeepCopy
(
vtkPistonReference
*
self
,
vtkPistonReference
*other);
36
}
37
38
class
vtkPistonReference
{
39
public
:
40
41
vtkPistonReference
() :
mtime
(0),
type
(-1),
data
(NULL)
42
{
43
//cerr << "TR(" << this << ") CREATE" << endl;
44
}
45
46
~vtkPistonReference
()
47
{
48
//cerr << "TR(" << this << ") DELETE" << endl;
49
vtkpiston::DeleteData
(
this
);
50
}
51
52
vtkPistonReference
(
vtkPistonReference
*other)
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
vtkpiston::DeepCopy
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkPistonReference::vtkPistonReference
vtkPistonReference()
Definition:
vtkPistonReference.h:41
vtkPistonReference::type
int type
Definition:
vtkPistonReference.h:59
vtkPistonReference::data
void * data
Definition:
vtkPistonReference.h:60
vtkPistonReference::~vtkPistonReference
~vtkPistonReference()
Definition:
vtkPistonReference.h:46
vtkPistonReference::mtime
unsigned long int mtime
Definition:
vtkPistonReference.h:58
vtkPistonReference
Lower level handle on GPU resident data.
Definition:
vtkPistonReference.h:38
vtkpiston::DeleteData
void DeleteData(vtkPistonReference *)
vtkPistonReference::vtkPistonReference
vtkPistonReference(vtkPistonReference *other)
Definition:
vtkPistonReference.h:52
Generated on Sat Apr 12 2014 01:06:51 for VTK by
1.8.6