VTK  9.2.6
vtkCGNSFileSeriesReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
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 
38 #include "vtkIOCGNSReaderModule.h" // for export macros
40 #include "vtkNew.h" // for vtkNew.
41 
42 #include <string> // for std::string
43 #include <vector> // for std::vector
44 
45 class vtkCGNSReader;
46 class vtkCGNSSubsetInclusionLattice;
49 
50 class VTKIOCGNSREADER_EXPORT vtkCGNSFileSeriesReader : public vtkMultiBlockDataSetAlgorithm
51 {
52 public:
53  static vtkCGNSFileSeriesReader* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
61  void SetController(vtkMultiProcessController* controller);
62  vtkGetObjectMacro(Controller, vtkMultiProcessController);
64 
66 
69  virtual void SetReader(vtkCGNSReader* reader);
70  vtkGetObjectMacro(Reader, vtkCGNSReader);
72 
77  int CanReadFile(VTK_FILEPATH const char* filename);
78 
80 
83  void AddFileName(VTK_FILEPATH const char* fname);
84  void RemoveAllFileNames();
86 
88 
92  vtkGetMacro(IgnoreReaderTime, bool);
93  vtkSetMacro(IgnoreReaderTime, bool);
94  vtkBooleanMacro(IgnoreReaderTime, bool);
96 
102  VTK_FILEPATH const char* GetCurrentFileName() const;
103 
108 
109 protected:
111  ~vtkCGNSFileSeriesReader() override;
112 
117 
124  bool UpdateActiveFileSet(vtkInformation* info);
125 
130  void ChooseActiveFile(int index);
131 
135 
136 private:
138  void operator=(const vtkCGNSFileSeriesReader&) = delete;
139  void OnReaderModifiedEvent();
140 
141  vtkMultiProcessController* Controller;
142  unsigned long ReaderObserverId;
143  bool InProcessRequest;
144  std::vector<std::string> ActiveFiles;
145 };
146 
147 #endif
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiBlockDataSetAlgorithm * New()
Adds support for reading temporal or partitioned CGNS files.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkNew< vtkFileSeriesHelper > FileSeriesHelper
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkCGNSReader creates a multi-block dataset and reads unstructured grids and structured meshes from b...
Definition: vtkCGNSReader.h:50
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_FILEPATH
Store zero or more vtkInformation instances.
Helper class to process file series.
Multiprocessing communication superclass.