28 #ifndef vtkDataReader_h
29 #define vtkDataReader_h
64 vtkSetStringMacro(FileName);
65 vtkGetStringMacro(FileName);
71 int IsFileValid(
const char *dstype);
73 return this->IsFileValid(
"structured_points");};
75 return this->IsFileValid(
"polydata");};
77 return this->IsFileValid(
"structured_grid");};
79 return this->IsFileValid(
"unstructured_grid");};
81 return this->IsFileValid(
"rectilinear_grid");};
89 void SetInputString(
const char *in);
90 vtkGetStringMacro(InputString);
91 void SetInputString(
const char *in,
int len);
92 vtkGetMacro(InputStringLength,
int);
93 void SetBinaryInputString(
const char *,
int len);
95 { this->SetBinaryInputString(input.c_str(),
static_cast<int>(input.length())); }
111 vtkGetStringMacro(Header);
117 vtkSetMacro(ReadFromInputString,
int);
118 vtkGetMacro(ReadFromInputString,
int);
119 vtkBooleanMacro(ReadFromInputString,
int);
125 vtkGetMacro(FileType,
int);
134 {this->CharacterizeFile();
return this->NumberOfScalarsInFile;}
136 {this->CharacterizeFile();
return this->NumberOfVectorsInFile;}
138 {this->CharacterizeFile();
return this->NumberOfTensorsInFile;}
140 {this->CharacterizeFile();
return this->NumberOfNormalsInFile;}
142 {this->CharacterizeFile();
return this->NumberOfTCoordsInFile;}
144 {this->CharacterizeFile();
return this->NumberOfFieldDataInFile;}
151 const char *GetScalarsNameInFile(
int i);
152 const char *GetVectorsNameInFile(
int i);
153 const char *GetTensorsNameInFile(
int i);
154 const char *GetNormalsNameInFile(
int i);
155 const char *GetTCoordsNameInFile(
int i);
156 const char *GetFieldDataNameInFile(
int i);
162 vtkSetStringMacro(ScalarsName);
163 vtkGetStringMacro(ScalarsName);
169 vtkSetStringMacro(VectorsName);
170 vtkGetStringMacro(VectorsName);
176 vtkSetStringMacro(TensorsName);
177 vtkGetStringMacro(TensorsName);
183 vtkSetStringMacro(NormalsName);
184 vtkGetStringMacro(NormalsName);
190 vtkSetStringMacro(TCoordsName);
191 vtkGetStringMacro(TCoordsName);
198 vtkSetStringMacro(LookupTableName);
199 vtkGetStringMacro(LookupTableName);
205 vtkSetStringMacro(FieldDataName);
206 vtkGetStringMacro(FieldDataName);
211 vtkSetMacro(ReadAllScalars,
int);
212 vtkGetMacro(ReadAllScalars,
int);
213 vtkBooleanMacro(ReadAllScalars,
int);
218 vtkSetMacro(ReadAllVectors,
int);
219 vtkGetMacro(ReadAllVectors,
int);
220 vtkBooleanMacro(ReadAllVectors,
int);
225 vtkSetMacro(ReadAllNormals,
int);
226 vtkGetMacro(ReadAllNormals,
int);
227 vtkBooleanMacro(ReadAllNormals,
int);
232 vtkSetMacro(ReadAllTensors,
int);
233 vtkGetMacro(ReadAllTensors,
int);
234 vtkBooleanMacro(ReadAllTensors,
int);
239 vtkSetMacro(ReadAllColorScalars,
int);
240 vtkGetMacro(ReadAllColorScalars,
int);
241 vtkBooleanMacro(ReadAllColorScalars,
int);
246 vtkSetMacro(ReadAllTCoords,
int);
247 vtkGetMacro(ReadAllTCoords,
int);
248 vtkBooleanMacro(ReadAllTCoords,
int);
253 vtkSetMacro(ReadAllFields,
int);
254 vtkGetMacro(ReadAllFields,
int);
255 vtkBooleanMacro(ReadAllFields,
int);
267 int ReadCellData(
vtkDataSet *ds,
int numCells);
272 int ReadPointData(
vtkDataSet *ds,
int numPts);
278 int ReadPoints(
vtkGraph *g,
int numPts);
283 int ReadVertexData(
vtkGraph *g,
int numVertices);
288 int ReadEdgeData(
vtkGraph *g,
int numEdges);
291 int ReadRowData(
vtkTable *t,
int numEdges);
297 int ReadCells(
int size,
int *
data,
int skip1,
int read2,
int skip3);
305 vtkAbstractArray *ReadArray(
const char *dataType,
int numTuples,
int numComp);
306 vtkFieldData *ReadFieldData(FieldType fieldType = FIELD_DATA);
312 vtkGetMacro(FileMajorVersion,
int);
313 vtkGetMacro(FileMinorVersion,
int);
321 int Read(
unsigned char *);
323 int Read(
unsigned short *);
325 int Read(
unsigned int *);
327 int Read(
unsigned long *);
328 int Read(
long long *result);
329 int Read(
unsigned long long *result);
341 int ReadLine(
char result[256]);
345 int ReadString(
char result[256]);
348 char *LowerCase(
char *str,
const size_t len=256);
382 void SetScalarLut(
const char* lut);
383 vtkGetStringMacro(ScalarLut);
431 void InitializeCharacteristics();
432 int CharacterizeFile();
433 void CheckFor(
const char*
name,
char *line,
int &num,
char** &array,
440 int DecodeString(
char *resname,
const char*
name);
458 void ConvertGhostLevelsToGhostType(
Wrapper around std::string to keep symbols short.
int GetNumberOfScalarsInFile()
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
int NumberOfScalarsInFile
abstract class to specify dataset behavior
Abstract superclass for all arrays.
void SetInputString(const vtkStdString &input)
char ** ScalarsNameInFile
int IsFileRectilinearGrid()
record modification and/or execution time
int NumberOfTensorsInFile
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int NumberOfFieldDataInFile
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
int GetNumberOfTCoordsInFile()
int GetNumberOfNormalsInFile()
abstract class for specifying dataset behavior
int IsFileStructuredGrid()
#define VTKIOLEGACY_EXPORT
vtkTimeStamp CharacteristicsTime
char ** TensorsNameInFile
int GetNumberOfFieldDataInFile()
Base class for graph data types.
dynamic, self-adjusting array of char
helper superclass for objects that read vtk data files
Superclass for all sources, filters, and sinks in VTK.
a simple class to control print indentation
char ** FieldDataNameInFile
represent and manipulate attribute data in a dataset
int NumberOfNormalsInFile
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int GetNumberOfVectorsInFile()
A table, which contains similar-typed columns of data.
int IsFileUnstructuredGrid()
char ** VectorsNameInFile
int IsFileStructuredPoints()
static vtkAlgorithm * New()
char ** NormalsNameInFile
virtual int ReadMetaData(vtkInformation *)
vtkCharArray * InputArray
char ** TCoordsNameInFile
int FieldDataNameAllocSize
int GetNumberOfTensorsInFile()
int NumberOfTCoordsInFile
represent and manipulate fields of data
int NumberOfVectorsInFile
void PrintSelf(ostream &os, vtkIndent indent)