 |
VTK
9.1.0
|
Go to the documentation of this file.
43 #ifndef vtkXMLReader_h
44 #define vtkXMLReader_h
47 #include "vtkIOXMLModule.h"
148 vtkGetStringMacro(ActiveTimeDataArrayName);
149 vtkSetStringMacro(ActiveTimeDataArrayName);
183 vtkSetMacro(TimeStep,
int);
184 vtkGetMacro(TimeStep,
int);
187 vtkGetMacro(NumberOfTimeSteps,
int);
192 vtkGetVector2Macro(TimeStepRange,
int);
193 vtkSetVector2Macro(TimeStepRange,
int);
295 vtkGetMacro(FileMajorVersion,
int);
298 vtkGetMacro(FileMinorVersion,
int);
332 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
401 float ProgressRange[2];
431 int TimeStepRange[2];
456 std::istringstream* StringStream;
457 int TimeStepWasReadOnce;
459 int FileMajorVersion;
460 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, column or time 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()
Get the number of point, cell or column arrays available in the input.
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)
Enable reading from an InputString instead of the default, a file.
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)
const char * GetTimeDataArray(int idx) const
Getters for time data array candidates.
abstract base class for most VTK objects
void SetNumberOfTimeSteps(int num)
vtkSetFilePathMacro(FileName)
Get/Set the name of the input file.
virtual int RequestDataObject(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector))
int GetColumnArrayStatus(const char *name)
Get/Set whether the point, cell, column or time array with the given name is to be read.
void SetCellArrayStatus(const char *name, int status)
Get/Set whether the point, cell, column or time array with the given name is to be read.
const char * GetCellArrayName(int index)
Get the name of the point, cell, column or time array with the given index in the input.
abstract superclass for arrays of numeric data
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()
Get the number of point, cell or column arrays available in the input.
virtual int OpenVTKString()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkGetFilePathMacro(FileName)
Get/Set the name of the input file.
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, column or time 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.
vtkStringArray * TimeDataStringArray
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
char * ActiveTimeDataArrayName
Name of the field-data array used to determine the time for the dataset being read.
void ReadAttributeIndices(vtkXMLDataElement *eDSA, vtkDataSetAttributes *dsa)
virtual int CanReadFile(VTK_FILEPATH const char *name)
Test whether the file (type) with the given name can be read by this reader.
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)
Get the name of the point, cell, column or time array with the given index in the input.
virtual void SetProgressRange(const float range[2], int curStep, int numSteps)
int CellDataArrayIsEnabled(vtkXMLDataElement *eCDA)
supports function callbacks
virtual void SetupOutputInformation(vtkInformation *vtkNotUsed(outInfo))
void MarkIdTypeArrays(vtkXMLDataElement *da)
XML files have not consistently saved out adequate meta-data in past to correctly create vtkIdTypeArr...
int CreateInformationKey(vtkXMLDataElement *eInfoKey, vtkInformation *info)
void SetPointArrayStatus(const char *name, int status)
Get/Set whether the point, cell, column or time array with the given name is to be read.
a vtkAbstractArray subclass for strings
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 ...
int GetCellArrayStatus(const char *name)
Get/Set whether the point, cell, column or time array with the given name is to be read.
general representation of visualization data
virtual void CloseVTKString()
virtual void CopyOutputInformation(vtkInformation *vtkNotUsed(outInfo), int vtkNotUsed(port))
vtkSmartPointer< vtkDataArray > TimeDataArray
Populated in ReadXMLInformation from the field data for the array chosen using ActiveTimeDataArrayNam...
Superclass for VTK's XML format readers.
void SetColumnArrayStatus(const char *name, int status)
Get/Set whether the point, cell, column or time array with the given name is to be read.
int GetNumberOfTimeDataArrays() const
Getters for time data array candidates.
virtual int CanReadFileVersion(int major, int minor)
vtkDataArraySelection * ColumnArraySelection
Used by vtkXMLReader to parse VTK XML files.
vtkDataSet * GetOutputAsDataSet(int index)
Get the output as a vtkDataSet pointer.