Go to the documentation of this file.
29 #ifndef vtkDataReader_h
30 #define vtkDataReader_h
32 #include "vtkIOLegacyModule.h"
67 vtkSetStringMacro(FileName);
76 int IsFileValid(
const char *dstype);
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");};
96 void SetInputString(
const char *in);
98 void SetInputString(
const char *in,
int len);
99 vtkGetMacro(InputStringLength,
int);
100 void SetBinaryInputString(
const char *,
int len);
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;}
169 const char *GetScalarsNameInFile(
int i);
170 const char *GetVectorsNameInFile(
int i);
171 const char *GetTensorsNameInFile(
int i);
172 const char *GetNormalsNameInFile(
int i);
173 const char *GetTCoordsNameInFile(
int i);
174 const char *GetFieldDataNameInFile(
int i);
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);
318 int ReadCellData(
vtkDataSet *ds,
int numCells);
325 int ReadPointData(
vtkDataSet *ds,
int numPts);
335 int ReadPoints(
vtkGraph *g,
int numPts);
342 int ReadVertexData(
vtkGraph *g,
int numVertices);
349 int ReadEdgeData(
vtkGraph *g,
int numEdges);
354 int ReadRowData(
vtkTable *t,
int numEdges);
364 int ReadCells(
int size,
int *
data,
int skip1,
int read2,
int skip3);
376 vtkAbstractArray *ReadArray(
const char *dataType,
int numTuples,
int numComp);
377 vtkFieldData *ReadFieldData(FieldType fieldType = FIELD_DATA);
385 vtkGetMacro(FileMajorVersion,
int);
386 vtkGetMacro(FileMinorVersion,
int);
395 int Read(
unsigned char *);
397 int Read(
unsigned short *);
399 int Read(
unsigned int *);
401 int Read(
unsigned long *);
402 int Read(
long long *result);
403 int Read(
unsigned long long *result);
412 size_t Peek(
char *str,
size_t n);
424 int ReadLine(
char result[256]);
430 int ReadString(
char result[256]);
435 char *LowerCase(
char *str,
const size_t len=256);
470 void SetScalarLut(
const char* lut);
524 void InitializeCharacteristics();
525 int CharacterizeFile();
526 void CheckFor(
const char*
name,
char *line,
int &num,
char** &array,
536 int DecodeString(
char *resname,
const char*
name);
554 void ConvertGhostLevelsToGhostType(
char ** NormalsNameInFile
vtkTimeStamp CharacteristicsTime
int GetNumberOfFieldDataInFile()
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 *)
record modification and/or execution time
int GetNumberOfVectorsInFile()
int GetNumberOfTensorsInFile()
int NumberOfFieldDataInFile
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
represent and manipulate fields of data
istream * GetIStream()
Return the istream being used to read in the data.
dynamic, self-adjusting array of char
int GetNumberOfNormalsInFile()
char ** VectorsNameInFile
int GetNumberOfTCoordsInFile()
char ** ScalarsNameInFile
a simple class to control print indentation
char ** TensorsNameInFile
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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()
static vtkAlgorithm * New()
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkCharArray * InputArray
int FieldDataNameAllocSize
abstract class for specifying dataset behavior
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
char ** FieldDataNameInFile
int NumberOfTensorsInFile
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,...
char ** TCoordsNameInFile
int NumberOfNormalsInFile
int NumberOfTCoordsInFile