Go to the documentation of this file.
24 #ifndef vtkXMLReader_h
25 #define vtkXMLReader_h
27 #include "vtkIOXMLModule.h"
53 vtkSetStringMacro(FileName);
62 vtkGetMacro(ReadFromInputString,
int);
124 int vtkNotUsed(
port)) {}
131 vtkGetMacro(TimeStep,
int);
134 vtkGetMacro(NumberOfTimeSteps,
int);
139 vtkGetVector2Macro(TimeStepRange,
int);
140 vtkSetVector2Macro(TimeStepRange,
int);
149 return this->XMLParser;
239 vtkGetMacro(FileMajorVersion,
int);
242 vtkGetMacro(FileMinorVersion,
int);
253 int i,
int j,
int k);
272 void* clientdata,
void* calldata);
316 float ProgressRange[2];
347 int TimeStepRange[2];
362 ifstream* FileStream;
364 std::istringstream* StringStream;
365 int TimeStepWasReadOnce;
367 int FileMajorVersion;
368 int FileMinorVersion;
375 void operator=(
const vtkXMLReader&) VTK_DELETE_FUNCTION;
superclass for callback/observer methods
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIdType GetStartTuple(int *extent, vtkIdType *increments, int i, int j, int k)
virtual void GetProgressRange(float *range)
const char * GetPointArrayName(int index)
Get the name of the point or cell array with the given index in the input.
vtkXMLDataElement * FieldDataElement
int GetNumberOfCellArrays()
vtkDataArraySelection * PointDataArraySelection
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
virtual int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
void SetParserErrorObserver(vtkCommand *)
Set/get the ErrorObserver for the internal xml parser This is useful for applications that want to ca...
void DestroyStringArray(int numStrings, char **strings)
void SetDataArraySelections(vtkXMLDataElement *eDSA, vtkDataArraySelection *sel)
void ComputePointIncrements(int *extent, vtkIdType *increments)
vtkXMLDataParser * XMLParser
virtual void CloseStream()
Superclass for all sources, filters, and sinks in VTK.
represent and manipulate attribute data in a dataset
virtual int CanReadFileWithDataType(const char *dsname)
This method is used by CanReadFile() to check if the reader can read an XML with the primary element ...
record modification and/or execution time
int CanReadFileVersionString(const char *version)
virtual int ReadVTKFile(vtkXMLDataElement *eVTKFile)
void SetupCompressor(const char *type)
abstract base class for most VTK objects
void SetNumberOfTimeSteps(int num)
virtual int RequestDataObject(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector))
void SetCellArrayStatus(const char *name, int status)
const char * GetCellArrayName(int index)
virtual void SetProgressRange(const float range[2], int curStep, const float *fractions)
virtual void UpdateProgressDiscrete(float progress)
virtual int OpenVTKString()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int PointDataArrayIsEnabled(vtkXMLDataElement *ePDA)
Store on/off settings for data arrays for a vtkSource.
int GetPointArrayStatus(const char *name)
Get/Set whether the point or cell array with the given name is to be read.
virtual int OpenVTKFile()
int GetNumberOfPointArrays()
Get the number of point or cell arrays available in the input.
virtual void SetupOutputData()
vtkInformation * GetCurrentOutputInformation()
virtual void SqueezeOutputArrays(vtkDataObject *)
virtual void ReadXMLData()
void ComputeCellDimensions(int *extent, int *dimensions)
virtual void SetupEmptyOutput()=0
a simple class to control print indentation
void ReadAttributeIndices(vtkXMLDataElement *eDSA, vtkDataSetAttributes *dsa)
int IntersectExtents(int *extent1, int *extent2, int *result)
virtual void CreateXMLParser()
vtkAbstractArray * CreateArray(vtkXMLDataElement *da)
bool ReadInformation(vtkXMLDataElement *infoRoot, vtkInformation *info)
virtual const char * GetDataSetName()=0
Represents an XML element and those nested inside.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkXMLDataParser * GetXMLParser()
Returns the internal XML parser.
vtkDataSet * GetOutputAsDataSet()
Get the output as a vtkDataSet pointer.
char ** CreateStringArray(int numStrings)
abstract class to specify dataset behavior
Abstract superclass for all arrays.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void ComputeCellIncrements(int *extent, vtkIdType *increments)
void ComputePointDimensions(int *extent, int *dimensions)
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
static int IsTimeStepInArray(int timestep, int *timesteps, int length)
vtkDataArraySelection * CellDataArraySelection
virtual void CloseVTKFile()
vtkDataObject * GetCurrentOutput()
virtual void SetProgressRange(const float range[2], int curStep, int numSteps)
int CellDataArrayIsEnabled(vtkXMLDataElement *eCDA)
supports function callbacks
virtual void SetupOutputInformation(vtkInformation *vtkNotUsed(outInfo))
int CreateInformationKey(vtkXMLDataElement *eInfoKey, vtkInformation *info)
void SetPointArrayStatus(const char *name, int status)
vtkCallbackCommand * SelectionObserver
virtual int ReadXMLInformation()
virtual void DestroyXMLParser()
void SetReaderErrorObserver(vtkCommand *)
Set/get the ErrorObserver for the internal reader This is useful for applications that want to catch ...
virtual int CanReadFile(const char *name)
Test whether the file (type) with the given name can be read by this reader.
int GetCellArrayStatus(const char *name)
general representation of visualization data
virtual void CloseVTKString()
virtual void CopyOutputInformation(vtkInformation *vtkNotUsed(outInfo), int vtkNotUsed(port))
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int SetFieldDataInfo(vtkXMLDataElement *eDSA, int association, int numTuples, vtkInformationVector *(&infoVector))
Superclass for VTK's XML format readers.
virtual int CanReadFileVersion(int major, int minor)
Used by vtkXMLReader to parse VTK XML files.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkDataSet * GetOutputAsDataSet(int index)
void SetInputString(std::string s)