VTK
vtkTemporalDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTemporalDataSet.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 =========================================================================*/
24 #ifndef __vtkTemporalDataSet_h
25 #define __vtkTemporalDataSet_h
26 
27 #include "vtkCompositeDataSet.h"
28 
29 class vtkDataObject;
30 
32 {
33 public:
34  static vtkTemporalDataSet *New();
35 
37  virtual void PrintSelf(ostream& os, vtkIndent indent);
38 
40  virtual int GetDataObjectType() {return VTK_TEMPORAL_DATA_SET;}
41 
43 
44  void SetNumberOfTimeSteps(unsigned int numLevels)
45  {
46  this->SetNumberOfChildren(numLevels);
47  }
49 
51 
52  unsigned int GetNumberOfTimeSteps()
53  {
54  return this->GetNumberOfChildren();
55  }
57 
59  void SetTimeStep(unsigned int timestep, vtkDataObject* dobj);
60 
62 
63  vtkDataObject* GetTimeStep(unsigned int timestep)
64  { return this->GetChild(timestep); }
66 
68 
69  vtkInformation* GetMetaData(unsigned int timestep)
70  { return this->Superclass::GetChildMetaData(timestep); }
72 
74 
75  int HasMetaData(unsigned int timestep)
76  { return this->Superclass::HasChildMetaData(timestep); }
78 
79  //BTX
81 
83  static vtkTemporalDataSet* GetData(vtkInformationVector* v, int i=0);
84  //ETX
86 
88  virtual int GetExtentType() { return VTK_TIME_EXTENT; };
89 
91 
93  { return this->Superclass::GetMetaData(iter); }
95 
96 
98 
100  { return this->Superclass::HasMetaData(iter); }
102 
103 protected:
106 
107 private:
108  vtkTemporalDataSet(const vtkTemporalDataSet&); // Not implemented.
109  void operator=(const vtkTemporalDataSet&); // Not implemented.
110 };
111 
112 #endif
113 
virtual vtkInformation * GetMetaData(vtkCompositeDataIterator *iter)
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_FILTERING_EXPORT
void SetNumberOfTimeSteps(unsigned int numLevels)
unsigned int GetNumberOfTimeSteps()
virtual int HasMetaData(vtkCompositeDataIterator *iter)
Composite dataset that holds multiple times.
vtkDataObject * GetChild(unsigned int num)
void SetNumberOfChildren(unsigned int num)
unsigned int GetNumberOfChildren()
superclass for composite data iterators
vtkDataObject * GetTimeStep(unsigned int timestep)
vtkInformation * GetMetaData(unsigned int timestep)
abstract superclass for composite (multi-block or AMR) datasets
virtual int GetDataObjectType()
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkCompositeDataSet * GetData(vtkInformation *info)
int HasMetaData(unsigned int timestep)
virtual int GetExtentType()
Store zero or more vtkInformation instances.
helper class to get VTK data object types as string and instantiate them
#define VTK_TEMPORAL_DATA_SET
Definition: vtkType.h:84