Go to the documentation of this file.
29 #ifndef vtkDataReader_h
30 #define vtkDataReader_h
32 #include "vtkIOLegacyModule.h"
67 vtkSetStringMacro(FileName);
78 return this->IsFileValid(
"structured_points");};
80 return this->IsFileValid(
"polydata");};
82 return this->IsFileValid(
"structured_grid");};
84 return this->IsFileValid(
"unstructured_grid");};
86 return this->IsFileValid(
"rectilinear_grid");};
99 vtkGetMacro(InputStringLength,
int);
102 { this->SetBinaryInputString(input.c_str(),
static_cast<int>(input.length())); }
131 vtkGetMacro(ReadFromInputString,
int);
140 vtkGetMacro(FileType,
int);
151 {this->CharacterizeFile();
return this->NumberOfScalarsInFile;}
153 {this->CharacterizeFile();
return this->NumberOfVectorsInFile;}
155 {this->CharacterizeFile();
return this->NumberOfTensorsInFile;}
157 {this->CharacterizeFile();
return this->NumberOfNormalsInFile;}
159 {this->CharacterizeFile();
return this->NumberOfTCoordsInFile;}
161 {this->CharacterizeFile();
return this->NumberOfFieldDataInFile;}
182 vtkSetStringMacro(ScalarsName);
191 vtkSetStringMacro(VectorsName);
200 vtkSetStringMacro(TensorsName);
209 vtkSetStringMacro(NormalsName);
218 vtkSetStringMacro(TCoordsName);
227 vtkSetStringMacro(LookupTableName);
236 vtkSetStringMacro(FieldDataName);
245 vtkGetMacro(ReadAllScalars,
int);
254 vtkGetMacro(ReadAllVectors,
int);
263 vtkGetMacro(ReadAllNormals,
int);
272 vtkGetMacro(ReadAllTensors,
int);
281 vtkGetMacro(ReadAllColorScalars,
int);
290 vtkGetMacro(ReadAllTCoords,
int);
299 vtkGetMacro(ReadAllFields,
int);
385 vtkGetMacro(FileMajorVersion,
int);
386 vtkGetMacro(FileMinorVersion,
int);
403 int Read(
unsigned long long *result);
412 size_t Peek(
char *str,
size_t n);
554 void ConvertGhostLevelsToGhostType(
int ReadHeader()
Read the header of a vtk data file.
char ** NormalsNameInFile
const char * GetScalarsNameInFile(int i)
What is the name of the ith attribute of a certain type in this file? This requires reading the file,...
vtkTimeStamp CharacteristicsTime
int ReadCells(int size, int *data)
Read a bunch of "cells".
int ReadVectorData(vtkDataSetAttributes *a, int num)
int GetNumberOfFieldDataInFile()
int ReadEdgeFlags(vtkDataSetAttributes *a, int num)
const char * GetFieldDataNameInFile(int i)
vtkFieldData * ReadFieldData(FieldType fieldType=FIELD_DATA)
int NumberOfVectorsInFile
helper superclass for objects that read vtk data files
Superclass for all sources, filters, and sinks in VTK.
represent and manipulate attribute data in a dataset
a dataset that is topologically regular with variable spacing in the three coordinate directions
A table, which contains similar-typed columns of data.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int ReadCells(int size, int *data, int skip1, int read2, int skip3)
Read a piece of the cells (for streaming compliance)
int ReadPoints(vtkGraph *g, int numPts)
Read point coordinates.
record modification and/or execution time
int ReadEdgeData(vtkGraph *g, int numEdges)
Read the edge data of a vtk data file.
int GetNumberOfVectorsInFile()
int ReadPedigreeIds(vtkDataSetAttributes *a, int num)
int ReadVertexData(vtkGraph *g, int numVertices)
Read the vertex data of a vtk data file.
int ReadRowData(vtkTable *t, int numEdges)
Read the row data of a vtk data file.
int GetNumberOfTensorsInFile()
int NumberOfFieldDataInFile
int ReadPoints(vtkPointSet *ps, int numPts)
Read point coordinates.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int Read(unsigned long *)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
represent and manipulate fields of data
istream * GetIStream()
Return the istream being used to read in the data.
const char * GetTensorsNameInFile(int i)
void SetBinaryInputString(const char *, int len)
int ReadCoordinates(vtkRectilinearGrid *rg, int axes, int numCoords)
Read the coordinates for a rectilinear grid.
int Read(unsigned char *)
int ReadCoScalarData(vtkDataSetAttributes *a, int num)
int ReadNormalData(vtkDataSetAttributes *a, int num)
dynamic, self-adjusting array of char
int GetNumberOfNormalsInFile()
size_t Peek(char *str, size_t n)
Read n character from the stream into str, then reset the stream position.
char ** VectorsNameInFile
int ReadInformation(vtkInformation *info, int numKeys)
Format is detailed here.
int DecodeString(char *resname, const char *name)
Decode a string.
int GetNumberOfTCoordsInFile()
int OpenVTKFile()
Open a vtk data file.
void SetInputString(const char *in, int len)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int ReadScalarData(vtkDataSetAttributes *a, int num)
char ** ScalarsNameInFile
void CheckFor(const char *name, char *line, int &num, char **&array, int &allocSize)
void InitializeCharacteristics()
a simple class to control print indentation
static vtkDataReader * New()
int ReadCellData(vtkDataSet *ds, int numCells)
Read the cell data of a vtk data file.
const char * GetNormalsNameInFile(int i)
int ReadLine(char result[256])
Internal function to read in a line up to 256 characters.
char ** TensorsNameInFile
int ReadTCoordsData(vtkDataSetAttributes *a, int num)
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
int IsFileValid(const char *dstype)
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
int ReadDataSetData(vtkDataSet *ds)
abstract class to specify dataset behavior
Abstract superclass for all arrays.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int IsFileUnstructuredGrid()
void CloseVTKFile()
Close the vtk file.
int ReadTensorData(vtkDataSetAttributes *a, int num)
void SetScalarLut(const char *lut)
int ReadLutData(vtkDataSetAttributes *a)
vtkCharArray * InputArray
vtkAbstractArray * ReadArray(const char *dataType, int numTuples, int numComp)
Helper functions for reading data.
int FieldDataNameAllocSize
int ReadGlobalIds(vtkDataSetAttributes *a, int num)
abstract class for specifying dataset behavior
int ReadString(char result[256])
Internal function to read in a string up to 256 characters.
const char * GetTCoordsNameInFile(int i)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
int IsFileStructuredPoints()
int IsFileStructuredGrid()
int NumberOfScalarsInFile
void SetInputString(const vtkStdString &input)
int IsFileRectilinearGrid()
Wrapper around std::string to keep symbols short.
Base class for graph data types.
int Read(char *)
Internal function to read in a value.
char ** FieldDataNameInFile
int NumberOfTensorsInFile
const char * GetVectorsNameInFile(int i)
int Read(unsigned short *)
int ReadPointData(vtkDataSet *ds, int numPts)
Read the point data of a vtk data file.
virtual int ReadMetaData(vtkInformation *)
Read the meta information from the file.
int GetNumberOfScalarsInFile()
How many attributes of various types are in this file? This requires reading the file,...
int Read(unsigned long long *result)
char * LowerCase(char *str, const size_t len=256)
Helper method for reading in data.
char ** TCoordsNameInFile
virtual void SetInputArray(vtkCharArray *)
Specify the vtkCharArray to be used when reading from a string.
void SetInputString(const char *in)
Specify the InputString for use when reading from a character array.
int NumberOfNormalsInFile
int Read(long long *result)
int NumberOfTCoordsInFile