VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
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 "vtkFiltersHybridModule.h"
// For export macro
37
38
#include "
vtkAlgorithm.h
"
39
#include <map>
// used for the cache
40
41
class
VTKFILTERSHYBRID_EXPORT
vtkTemporalDataSetCache
:
public
vtkAlgorithm
42
{
43
public
:
44
static
vtkTemporalDataSetCache
*
New
();
45
vtkTypeMacro(
vtkTemporalDataSetCache
,
vtkAlgorithm
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
49
51
void
SetCacheSize(
int
size
);
52
vtkGetMacro(CacheSize,
int
);
54
55
protected
:
56
vtkTemporalDataSetCache
();
57
~
vtkTemporalDataSetCache
();
58
59
int
CacheSize
;
60
61
//BTX
62
typedef
std::map<double,std::pair<unsigned long,vtkDataObject *> >
63
CacheType
;
64
CacheType
Cache
;
65
//ETX
66
67
69
70
virtual
int
ProcessRequest
(
vtkInformation
* request,
71
vtkInformationVector
** inputVector,
72
vtkInformationVector
* outputVector);
74
75
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
76
virtual
int
FillOutputPortInformation
(
int
vtkNotUsed(
port
),
vtkInformation
*
info
);
77
virtual
int
RequestDataObject(
vtkInformation
*,
78
vtkInformationVector
** inputVector ,
79
vtkInformationVector
* outputVector);
80
81
virtual
int
RequestUpdateExtent (
vtkInformation
*,
82
vtkInformationVector
**,
83
vtkInformationVector
*);
84
85
virtual
int
RequestData(
vtkInformation
*,
86
vtkInformationVector
**,
87
vtkInformationVector
*);
88
89
private
:
90
vtkTemporalDataSetCache
(
const
vtkTemporalDataSetCache
&);
// Not implemented.
91
void
operator=(
const
vtkTemporalDataSetCache
&);
// Not implemented.
92
};
93
94
95
96
#endif
97
98
99
Generated on Thu May 24 2012 22:22:22 for VTK by
1.8.1