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