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(
Abstract superclass for all arrays.
Superclass for all sources, filters, and sinks in VTK.
dynamic, self-adjusting array of char
helper superclass for objects that read vtk data files
int ReadVectorData(vtkDataSetAttributes *a, int num)
int Read(char *)
Internal function to read in a value.
int Read(unsigned long long *result)
int GetNumberOfVectorsInFile()
const char * GetFieldDataNameInFile(int i)
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,...
int ReadTensorData(vtkDataSetAttributes *a, int num)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
int ReadString(char result[256])
Internal function to read in a string up to 256 characters.
void SetScalarLut(const char *lut)
int ReadCoScalarData(vtkDataSetAttributes *a, int num)
char * LowerCase(char *str, const size_t len=256)
Helper method for reading in data.
virtual void SetInputArray(vtkCharArray *)
Specify the vtkCharArray to be used when reading from a string.
int ReadEdgeFlags(vtkDataSetAttributes *a, int num)
char ** NormalsNameInFile
int ReadEdgeData(vtkGraph *g, int numEdges)
Read the edge data of a vtk data file.
int Read(unsigned short *)
void CheckFor(const char *name, char *line, int &num, char **&array, int &allocSize)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int IsFileRectilinearGrid()
vtkAbstractArray * ReadArray(const char *dataType, int numTuples, int numComp)
Helper functions for reading data.
void SetInputString(const char *in)
Specify the InputString for use when reading from a character array.
virtual int ReadMetaData(vtkInformation *)
Read the meta information from the file.
int NumberOfTensorsInFile
vtkTimeStamp CharacteristicsTime
int ReadDataSetData(vtkDataSet *ds)
int ReadPoints(vtkGraph *g, int numPts)
Read point coordinates.
int ReadHeader()
Read the header of a vtk data file.
int ReadCoordinates(vtkRectilinearGrid *rg, int axes, int numCoords)
Read the coordinates for a rectilinear grid.
char ** TensorsNameInFile
void InitializeCharacteristics()
int Read(unsigned long *)
istream * GetIStream()
Return the istream being used to read in the data.
const char * GetNormalsNameInFile(int i)
int DecodeString(char *resname, const char *name)
Decode a string.
void SetBinaryInputString(const char *, int len)
int ReadCells(int size, int *data)
Read a bunch of "cells".
int ReadScalarData(vtkDataSetAttributes *a, int num)
void SetInputString(const char *in, int len)
int NumberOfVectorsInFile
int ReadNormalData(vtkDataSetAttributes *a, int num)
int ReadPedigreeIds(vtkDataSetAttributes *a, int num)
int GetNumberOfTensorsInFile()
const char * GetTCoordsNameInFile(int i)
int ReadCells(int size, int *data, int skip1, int read2, int skip3)
Read a piece of the cells (for streaming compliance)
int ReadInformation(vtkInformation *info, int numKeys)
Format is detailed here.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkDataReader * New()
int ReadPointData(vtkDataSet *ds, int numPts)
Read the point data of a vtk data file.
int ReadRowData(vtkTable *t, int numEdges)
Read the row data of a vtk data file.
void CloseVTKFile()
Close the vtk file.
int IsFileStructuredGrid()
int GetNumberOfNormalsInFile()
int ReadTCoordsData(vtkDataSetAttributes *a, int num)
int NumberOfNormalsInFile
char ** ScalarsNameInFile
vtkFieldData * ReadFieldData(FieldType fieldType=FIELD_DATA)
int ReadGlobalIds(vtkDataSetAttributes *a, int num)
int NumberOfScalarsInFile
int ReadLine(char result[256])
Internal function to read in a line up to 256 characters.
int ReadLutData(vtkDataSetAttributes *a)
size_t Peek(char *str, size_t n)
Read n character from the stream into str, then reset the stream position.
char ** FieldDataNameInFile
int OpenVTKFile()
Open a vtk data file.
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 NumberOfFieldDataInFile
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int IsFileStructuredPoints()
int ReadCellData(vtkDataSet *ds, int numCells)
Read the cell data of a vtk data file.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int GetNumberOfTCoordsInFile()
const char * GetVectorsNameInFile(int i)
int GetNumberOfFieldDataInFile()
int Read(unsigned char *)
const char * GetTensorsNameInFile(int i)
char ** VectorsNameInFile
void SetInputString(const vtkStdString &input)
char ** TCoordsNameInFile
int ReadVertexData(vtkGraph *g, int numVertices)
Read the vertex data of a vtk data file.
int NumberOfTCoordsInFile
int GetNumberOfScalarsInFile()
How many attributes of various types are in this file? This requires reading the file,...
int Read(long long *result)
int FieldDataNameAllocSize
int ReadPoints(vtkPointSet *ps, int numPts)
Read point coordinates.
int IsFileUnstructuredGrid()
vtkCharArray * InputArray
represent and manipulate attribute data in a dataset
abstract class to specify dataset behavior
represent and manipulate fields of data
Base class for graph data types.
a simple class to control print indentation
abstract class for specifying dataset behavior
a dataset that is topologically regular with variable spacing in the three coordinate directions
Wrapper around std::string to keep symbols short.
A table, which contains similar-typed columns of data.
record modification and/or execution time
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.