VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Hybrid
vtkTemporalDataSetCache.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTemporalDataSetCache.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
=========================================================================*/
33
#ifndef __vtkTemporalDataSetCache_h
34
#define __vtkTemporalDataSetCache_h
35
36
#include "
vtkTemporalDataSetAlgorithm.h
"
37
38
#include <vtkstd/map>
// used for the cache
39
40
class
VTK_HYBRID_EXPORT
vtkTemporalDataSetCache
:
public
vtkTemporalDataSetAlgorithm
41
{
42
public
:
43
static
vtkTemporalDataSetCache
*
New
();
44
vtkTypeMacro(
vtkTemporalDataSetCache
,
vtkTemporalDataSetAlgorithm
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
48
50
void
SetCacheSize(
int
size
);
51
vtkGetMacro(CacheSize,
int
);
53
54
protected
:
55
vtkTemporalDataSetCache
();
56
~
vtkTemporalDataSetCache
();
57
58
int
CacheSize
;
59
60
//BTX
61
typedef
vtkstd::map<double,vtkstd::pair<unsigned long,vtkDataObject *> >
62
CacheType
;
63
CacheType
Cache
;
64
//ETX
65
66
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
67
68
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
69
vtkInformationVector
**,
70
vtkInformationVector
*);
71
72
virtual
int
RequestData
(
vtkInformation
*,
73
vtkInformationVector
**,
74
vtkInformationVector
*);
75
76
private
:
77
vtkTemporalDataSetCache
(
const
vtkTemporalDataSetCache
&);
// Not implemented.
78
void
operator=(
const
vtkTemporalDataSetCache
&);
// Not implemented.
79
};
80
81
82
83
#endif
84
85
86
Generated on Fri Aug 2 2013 12:19:58 for VTK by
1.8.4