vtkPMultiResolutionGenericIOReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkPMultiResolutionGenericIOReader_h
15 #define vtkPMultiResolutionGenericIOReader_h
16 
18 #include "vtkPVVTKExtensionsCosmoToolsModule.h" // For export macro
19 
20 class vtkCallbackCommand;
22 class vtkStringArray;
23 
24 class VTKPVVTKEXTENSIONSCOSMOTOOLS_EXPORT vtkPMultiResolutionGenericIOReader
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent);
31 
32  virtual bool CanReadFile(const char* fileName);
33 
35 
38  void SetFileName(const char* fname);
39  vtkGetStringMacro(FileName);
41 
42  void SetXAxisVariableName(const char* arg);
43  vtkGetStringMacro(XAxisVariableName);
44  void SetYAxisVariableName(const char* arg);
45  vtkGetStringMacro(YAxisVariableName);
46  void SetZAxisVariableName(const char* arg);
47  vtkGetStringMacro(ZAxisVariableName);
48 
49  vtkStringArray* GetArrayList();
55  bool InsertLevel(const char* fileName, int level);
56 
60  int GetNumberOfLevels() const;
64  const char* GetFileNameForLevel(int level) const;
68  void RemoveAllLevels();
69 
71 
75  vtkGetObjectMacro(PointDataArraySelection, vtkDataArraySelection);
77 
81  int GetNumberOfPointArrays();
82 
86  const char* GetPointArrayName(int i);
87 
91  int GetPointArrayStatus(const char* name);
92 
96  void SetPointArrayStatus(const char* name, int status);
97 
98 protected:
101 
105 
106  char* FileName;
110 
113 
114 private:
115  static void SelectionModifiedCallback(
116  vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
117 
118  class vtkInternal;
119  vtkInternal* Internal;
120 
122  void operator=(const vtkPMultiResolutionGenericIOReader&) = delete;
123 };
124 
125 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkMultiBlockDataSetAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This reader handles multiple GenericIO files that are different resolutions of the same dataset...
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)