vtkPMultiResolutionGenericIOReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPMultiResolutionGenericIOReader.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 =========================================================================*/
25 #ifndef vtkPMultiResolutionGenericIOReader_h
26 #define vtkPMultiResolutionGenericIOReader_h
27 
29 #include "vtkPVVTKExtensionsCosmoToolsModule.h" // For export macro
30 
31 class vtkCallbackCommand;
33 class vtkStringArray;
34 
35 class VTKPVVTKEXTENSIONSCOSMOTOOLS_EXPORT vtkPMultiResolutionGenericIOReader
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
43  virtual bool CanReadFile(const char* fileName);
44 
46 
49  void SetFileName(const char* fname);
50  vtkGetStringMacro(FileName);
52 
53  void SetXAxisVariableName(const char* arg);
54  vtkGetStringMacro(XAxisVariableName);
55  void SetYAxisVariableName(const char* arg);
56  vtkGetStringMacro(YAxisVariableName);
57  void SetZAxisVariableName(const char* arg);
58  vtkGetStringMacro(ZAxisVariableName);
59 
60  vtkStringArray* GetArrayList();
66  bool InsertLevel(const char* fileName, int level);
67 
71  int GetNumberOfLevels() const;
75  const char* GetFileNameForLevel(int level) const;
79  void RemoveAllLevels();
80 
82 
86  vtkGetObjectMacro(PointDataArraySelection, vtkDataArraySelection);
88 
92  int GetNumberOfPointArrays();
93 
97  const char* GetPointArrayName(int i);
98 
102  int GetPointArrayStatus(const char* name);
103 
107  void SetPointArrayStatus(const char* name, int status);
108 
109 protected:
112 
116 
117  char* FileName;
121 
124 
125 private:
126  static void SelectionModifiedCallback(
127  vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
128 
129  class vtkInternal;
130  vtkInternal* Internal;
131 
133  void operator=(const vtkPMultiResolutionGenericIOReader&) = delete;
134 };
135 
136 #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 *)