Go to the documentation of this file.
24 #ifndef vtkXMLReader_h
25 #define vtkXMLReader_h
27 #include "vtkIOXMLModule.h"
61 vtkSetStringMacro(FileName);
62 vtkGetStringMacro(FileName);
137 int vtkNotUsed(
port)) {}
143 vtkSetMacro(TimeStep,
int);
144 vtkGetMacro(TimeStep,
int);
147 vtkGetMacro(NumberOfTimeSteps,
int);
152 vtkGetVector2Macro(TimeStepRange,
int);
153 vtkSetVector2Macro(TimeStepRange,
int);
162 return this->XMLParser;
252 vtkGetMacro(FileMajorVersion,
int);
255 vtkGetMacro(FileMinorVersion,
int);
266 int i,
int j,
int k);
293 void* clientdata,
void* calldata);
338 float ProgressRange[2];
369 int TimeStepRange[2];
393 ifstream* FileStream;
395 std::istringstream* StringStream;
396 int TimeStepWasReadOnce;
398 int FileMajorVersion;
399 int FileMinorVersion;
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, cell or column 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)
vtkTypeBool ReadFromInputString
void SetInputString(const std::string &s)
vtkXMLDataParser * XMLParser
virtual void CloseStream()
Superclass for all sources, filters, and sinks in VTK.
represent and manipulate attribute data in a dataset
virtual void ConvertGhostLevelsToGhostType(FieldType, vtkAbstractArray *, vtkIdType, vtkIdType)
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))
int GetColumnArrayStatus(const char *name)
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 int ReadArrayValues(vtkXMLDataElement *da, vtkIdType arrayIndex, vtkAbstractArray *array, vtkIdType startIndex, vtkIdType numValues, FieldType type=OTHER)
virtual void UpdateProgressDiscrete(float progress)
int GetNumberOfColumnArrays()
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, cell or column array with the given name is to be read.
virtual int OpenVTKFile()
int GetNumberOfPointArrays()
Get the number of point, cell or column arrays available in the input.
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
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)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
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.
void ComputeCellIncrements(int *extent, vtkIdType *increments)
void ComputePointDimensions(int *extent, int *dimensions)
static int IsTimeStepInArray(int timestep, int *timesteps, int length)
vtkDataArraySelection * CellDataArraySelection
virtual void CloseVTKFile()
vtkDataObject * GetCurrentOutput()
const char * GetColumnArrayName(int index)
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))
int SetFieldDataInfo(vtkXMLDataElement *eDSA, int association, int numTuples, vtkInformationVector *(&infoVector))
Superclass for VTK's XML format readers.
void SetColumnArrayStatus(const char *name, int status)
virtual int CanReadFileVersion(int major, int minor)
vtkDataArraySelection * ColumnArraySelection
Used by vtkXMLReader to parse VTK XML files.
vtkDataSet * GetOutputAsDataSet(int index)