VTK
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 =========================================================================*/
31 #ifndef vtkTemporalDataSetCache_h
32 #define vtkTemporalDataSetCache_h
33 
34 #include "vtkFiltersHybridModule.h" // For export macro
35 
36 #include "vtkAlgorithm.h"
37 #include <map> // used for the cache
38 
39 class VTKFILTERSHYBRID_EXPORT vtkTemporalDataSetCache : public vtkAlgorithm
40 {
41 public:
42  static vtkTemporalDataSetCache *New();
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
51  void SetCacheSize(int size);
52  vtkGetMacro(CacheSize,int);
54 
55 protected:
57  ~vtkTemporalDataSetCache() VTK_OVERRIDE;
58 
59  int CacheSize;
60 
61  typedef std::map<double,std::pair<unsigned long,vtkDataObject *> >
63  CacheType Cache;
64 
68  int ProcessRequest(vtkInformation* request,
69  vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector) VTK_OVERRIDE;
71 
72  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
73  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) VTK_OVERRIDE;
74  virtual int RequestDataObject( vtkInformation*,
75  vtkInformationVector** inputVector ,
76  vtkInformationVector* outputVector);
77 
78  virtual int RequestUpdateExtent (vtkInformation *,
81 
82  virtual int RequestData(vtkInformation *,
85 
86 private:
87  vtkTemporalDataSetCache(const vtkTemporalDataSetCache&) VTK_DELETE_FUNCTION;
88  void operator=(const vtkTemporalDataSetCache&) VTK_DELETE_FUNCTION;
89 };
90 
91 
92 
93 #endif
94 
95 
96 
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
std::map< double, std::pair< unsigned long, vtkDataObject * > > CacheType
a simple class to control print indentation
Definition: vtkIndent.h:33
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:58