vtkCGNSFileSeriesReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCGNSFileSeriesReader.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 =========================================================================*/
35 #ifndef vtkCGNSFileSeriesReader_h
36 #define vtkCGNSFileSeriesReader_h
37 
39 #include "vtkNew.h" // for vtkNew.
40 #include "vtkPVVTKExtensionsCGNSReaderModule.h" // for export macros
41 
42 #include <string> // for std::string
43 #include <vector> // for std::vector
44 
45 class vtkCGNSReader;
46 class vtkCGNSSubsetInclusionLattice;
49 
52 {
53 public:
54  static vtkCGNSFileSeriesReader* New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  void SetController(vtkMultiProcessController* controller);
63  vtkGetObjectMacro(Controller, vtkMultiProcessController);
65 
67 
70  virtual void SetReader(vtkCGNSReader* reader);
71  vtkGetObjectMacro(Reader, vtkCGNSReader);
73 
78  int CanReadFile(const char* filename);
79 
81 
84  void AddFileName(const char* fname);
85  void RemoveAllFileNames();
87 
89 
93  vtkGetMacro(IgnoreReaderTime, bool);
94  vtkSetMacro(IgnoreReaderTime, bool);
95  vtkBooleanMacro(IgnoreReaderTime, bool);
97 
103  const char* GetCurrentFileName() const;
104 
109 
110 protected:
112  ~vtkCGNSFileSeriesReader() override;
113 
118 
125  bool UpdateActiveFileSet(vtkInformation* info);
126 
131  void ChooseActiveFile(int index);
132 
136 
137 private:
139  void operator=(const vtkCGNSFileSeriesReader&) = delete;
140  void OnReaderModifiedEvent();
141 
142  vtkMultiProcessController* Controller;
143  unsigned long ReaderObserverId;
144  bool InProcessRequest;
145  std::vector<std::string> ActiveFiles;
146 };
147 
148 #endif
#define VTKPVVTKEXTENSIONSCGNSREADER_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkMultiBlockDataSetAlgorithm * New()
Adds support for reading temporal or partitioned CGNS files.
vtkNew< vtkFileSeriesHelper > FileSeriesHelper
vtkCGNSReader creates a multi-block dataset and reads unstructured grids, and structured meshes from ...
Definition: vtkCGNSReader.h:56
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Helper class to process file series.
void operator=(const vtkObjectBase &)