VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Builds
VTK
release
Utilities
Doxygen
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
=========================================================================*/
31
#ifndef vtkPistonReference_h
32
#define vtkPistonReference_h
33
34
namespace
vtkpiston
{
35
void
DeleteData
(
vtkPistonReference
*tr);
36
void
DeepCopy
(
vtkPistonReference
*
self
,
vtkPistonReference
*other);
37
}
38
39
class
vtkPistonReference
{
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
48
~vtkPistonReference
()
49
{
50
//cerr << "TR(" << this << ") DELETE" << endl;
51
vtkpiston::DeleteData
(
this
);
52
}
53
54
vtkPistonReference
(
vtkPistonReference
*other)
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
vtkpiston::DeepCopy
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkpiston
Definition:
vtkPistonDataWrangling.h:34
vtkPistonReference::vtkPistonReference
vtkPistonReference()
Definition:
vtkPistonReference.h:42
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition:
vtkType.h:248
vtkPistonReference::type
int type
Definition:
vtkPistonReference.h:61
vtkPistonReference::mtime
vtkMTimeType mtime
Definition:
vtkPistonReference.h:60
vtkPistonReference::data
void * data
Definition:
vtkPistonReference.h:62
vtkPistonReference::~vtkPistonReference
~vtkPistonReference()
Definition:
vtkPistonReference.h:48
vtkPistonReference
Lower level handle on GPU resident data.
Definition:
vtkPistonReference.h:39
vtkpiston::DeleteData
void DeleteData(vtkPistonReference *)
vtkPistonReference::vtkPistonReference
vtkPistonReference(vtkPistonReference *other)
Definition:
vtkPistonReference.h:54
Generated by
1.8.9.1