vtkPPhastaReader.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
108 #ifndef vtkPPhastaReader_h
109 #define vtkPPhastaReader_h
110 
112 #include "vtkPVVTKExtensionsIOGeneralModule.h" //needed for exports
113 
114 class vtkPVXMLParser;
115 class vtkPhastaReader;
116 
117 struct vtkPPhastaReaderInternal;
118 
120 {
121 public:
122  static vtkPPhastaReader* New();
124  void PrintSelf(ostream& os, vtkIndent indent) override;
125 
127 
130  vtkSetStringMacro(FileName);
131  vtkGetStringMacro(FileName);
133 
135 
138  vtkSetClampMacro(TimeStepIndex, int, 0, VTK_INT_MAX);
139  vtkGetMacro(TimeStepIndex, int);
141 
143 
146  vtkGetVector2Macro(TimeStepRange, int);
148 
149  static int CanReadFile(const char* filename);
150 
151 protected:
153  ~vtkPPhastaReader() override;
154 
155  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
156  vtkInformationVector* outputVector) override;
157  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
158  vtkInformationVector* outputVector) override;
159 
160  char* FileName;
161 
163 
167  int TimeStepRange[2];
168 
171 
173 
174 private:
175  vtkPPhastaReaderInternal* Internal;
176 
177  vtkPPhastaReader(const vtkPPhastaReader&) = delete;
178  void operator=(const vtkPPhastaReader&) = delete;
179 };
180 
181 #endif
Reader for RPI's PHASTA software.
vtkPVXMLParser * Parser
parallel Phasta meta-file reader vtkPPhastaReader reads XML based Phasta meta-files and the underlyin...
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkMultiBlockDataSetAlgorithm * New()
vtkPhastaReader * Reader
#define VTKPVVTKEXTENSIONSIOGENERAL_EXPORT
This is a subclass of vtkXMLParser that constructs a representation of parsed XML using vtkPVXMLEleme...
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)