24 #ifndef vtkXMLReader_h
25 #define vtkXMLReader_h
27 #include "vtkIOXMLModule.h"
53 vtkSetStringMacro(FileName);
62 vtkGetMacro(ReadFromInputString,
int);
74 virtual int CanReadFile(
const char*
name);
97 int GetNumberOfPointArrays();
98 int GetNumberOfCellArrays();
106 const char* GetPointArrayName(
int index);
107 const char* GetCellArrayName(
int index);
115 int GetPointArrayStatus(
const char*
name);
116 int GetCellArrayStatus(
const char*
name);
117 void SetPointArrayStatus(
const char*
name,
int status);
118 void SetCellArrayStatus(
const char*
name,
int status);
124 int vtkNotUsed(
port)) {}
131 vtkGetMacro(TimeStep,
int);
134 vtkGetMacro(NumberOfTimeSteps,
int);
139 vtkGetVector2Macro(TimeStepRange,
int);
140 vtkSetVector2Macro(TimeStepRange,
int);
149 return this->XMLParser;
162 vtkGetObjectMacro(ReaderErrorObserver,
vtkCommand);
171 vtkGetObjectMacro(ParserErrorObserver,
vtkCommand);
181 virtual int ReadXMLInformation();
182 virtual void ReadXMLData();
185 virtual const char* GetDataSetName()=0;
188 virtual int CanReadFileVersion(
int major,
int minor);
191 virtual void SetupEmptyOutput()=0;
197 virtual void SetupOutputData();
220 virtual int OpenStream();
221 virtual void CloseStream();
222 virtual int OpenVTKFile();
223 virtual void CloseVTKFile();
224 virtual int OpenVTKString();
225 virtual void CloseVTKString();
226 virtual void CreateXMLParser();
227 virtual void DestroyXMLParser();
228 void SetupCompressor(
const char*
type);
229 int CanReadFileVersionString(
const char*
version);
236 virtual int CanReadFileWithDataType(
const char* dsname);
239 vtkGetMacro(FileMajorVersion,
int);
242 vtkGetMacro(FileMinorVersion,
int);
245 int IntersectExtents(
int* extent1,
int* extent2,
int* result);
246 int Min(
int a,
int b);
247 int Max(
int a,
int b);
248 void ComputePointDimensions(
int*
extent,
int* dimensions);
250 void ComputeCellDimensions(
int*
extent,
int* dimensions);
253 int i,
int j,
int k);
256 char** CreateStringArray(
int numStrings);
257 void DestroyStringArray(
int numStrings,
char** strings);
271 static void SelectionModifiedCallback(
vtkObject* caller,
unsigned long eid,
272 void* clientdata,
void* calldata);
312 virtual void GetProgressRange(
float*
range);
313 virtual void SetProgressRange(
const float range[2],
int curStep,
int numSteps);
314 virtual void SetProgressRange(
const float range[2],
int curStep,
const float* fractions);
315 virtual void UpdateProgressDiscrete(
float progress);
316 float ProgressRange[2];
342 void SetNumberOfTimeSteps(
int num);
347 int TimeStepRange[2];
355 static int IsTimeStepInArray(
int timestep,
int* timesteps,
int length);
362 ifstream* FileStream;
364 std::istringstream* StringStream;
365 int TimeStepWasReadOnce;
367 int FileMajorVersion;
368 int FileMinorVersion;
375 void operator=(const
vtkXMLReader&) VTK_DELETE_FUNCTION;
virtual void SqueezeOutputArrays(vtkDataObject *)
abstract base class for most VTK objects
Represents an XML element and those nested inside.
abstract class to specify dataset behavior
Abstract superclass for all arrays.
record modification and/or execution time
vtkXMLDataElement * FieldDataElement
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkCallbackCommand * SelectionObserver
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
superclass for callback/observer methods
supports function callbacks
Superclass for all sources, filters, and sinks in VTK.
a simple class to control print indentation
vtkDataArraySelection * PointDataArraySelection
vtkDataArraySelection * CellDataArraySelection
Store on/off settings for data arrays for a vtkSource.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void SetupOutputInformation(vtkInformation *vtkNotUsed(outInfo))
represent and manipulate attribute data in a dataset
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual void CopyOutputInformation(vtkInformation *vtkNotUsed(outInfo), int vtkNotUsed(port))
Used by vtkXMLReader to parse VTK XML files.
virtual int RequestDataObject(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector))
void SetInputString(std::string s)
Enable reading from an InputString instead of the default, a file.
vtkXMLDataParser * GetXMLParser()
Returns the internal XML parser.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
general representation of visualization data
vtkXMLDataParser * XMLParser
Superclass for VTK's XML format readers.