VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-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
=========================================================================*/
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
VTK_LEGACY_BODY(
vtkPistonReference::vtkPistonReference
,
"VTK 6.3"
);
44
//cerr << "TR(" << this << ") CREATE" << endl;
45
}
46
47
~vtkPistonReference
()
48
{
49
//cerr << "TR(" << this << ") DELETE" << endl;
50
vtkpiston::DeleteData
(
this
);
51
}
52
53
vtkPistonReference
(
vtkPistonReference
*other)
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
vtkpiston::DeepCopy
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkpiston
Definition:
vtkPistonDataWrangling.h:33
vtkPistonReference::vtkPistonReference
vtkPistonReference()
Definition:
vtkPistonReference.h:41
vtkPistonReference::type
int type
Definition:
vtkPistonReference.h:60
vtkPistonReference::data
void * data
Definition:
vtkPistonReference.h:61
vtkPistonReference::~vtkPistonReference
~vtkPistonReference()
Definition:
vtkPistonReference.h:47
vtkPistonReference::mtime
unsigned long int mtime
Definition:
vtkPistonReference.h:59
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:53
Generated by
1.8.9.1