ParaView
vtkPVDReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVDReader.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
23 #ifndef vtkPVDReader_h
24 #define vtkPVDReader_h
25 
26 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
27 #include "vtkXMLCollectionReader.h"
28 
29 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVDReader : public vtkXMLCollectionReader
30 {
31 public:
32  static vtkPVDReader* New();
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
43  void SetTimeStep(int index);
44  int GetTimeStep();
46 
48 
52  vtkGetVector2Macro(TimeStepRange, int);
54 
55 protected:
56  vtkPVDReader();
57  ~vtkPVDReader();
58 
59  void ReadXMLData();
60 
61  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
62  vtkInformationVector* outputVector);
63 
64  // Set TimeStepRange
65  virtual void SetupOutputInformation(vtkInformation* outInfo);
66 
67  // Save the range of valid timestep index values.
68  int TimeStepRange[2];
69 
70 private:
71  vtkPVDReader(const vtkPVDReader&) VTK_DELETE_FUNCTION;
72  void operator=(const vtkPVDReader&) VTK_DELETE_FUNCTION;
73 };
74 
75 #endif
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
ParaView-specific vtkXMLCollectionReader subclass.
Definition: vtkPVDReader.h:29
static vtkXMLCollectionReader * New()
Read a file wrapping many other XML files.
void PrintSelf(ostream &os, vtkIndent indent)