 |
VTK
9.0.1
|
Go to the documentation of this file.
24 #ifndef vtkXMLReader_h
25 #define vtkXMLReader_h
28 #include "vtkIOXMLModule.h"
60 vtkSetStringMacro(FileName);
61 vtkGetStringMacro(FileName);
141 vtkSetMacro(TimeStep,
int);
142 vtkGetMacro(TimeStep,
int);
145 vtkGetMacro(NumberOfTimeSteps,
int);
150 vtkGetVector2Macro(TimeStepRange,
int);
151 vtkSetVector2Macro(TimeStepRange,
int);
253 vtkGetMacro(FileMajorVersion,
int);
256 vtkGetMacro(FileMinorVersion,
int);
290 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
335 float ProgressRange[2];
365 int TimeStepRange[2];
390 std::istringstream* StringStream;
391 int TimeStepWasReadOnce;
393 int FileMajorVersion;
394 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
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
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)
int SetFieldDataInfo(vtkXMLDataElement *eDSA, int association, vtkIdType numTuples, vtkInformationVector *(&infoVector))
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.
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)
int GetLocalDataType(vtkXMLDataElement *da, int datatype)
If the IdType argument is present in the provided XMLDataElement and the provided dataType has the sa...
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))
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)