28 #ifndef vtkDataReader_h
29 #define vtkDataReader_h
66 vtkSetStringMacro(FileName);
67 vtkGetStringMacro(FileName);
73 int IsFileValid(
const char *dstype);
75 return this->IsFileValid(
"structured_points");};
77 return this->IsFileValid(
"polydata");};
79 return this->IsFileValid(
"structured_grid");};
81 return this->IsFileValid(
"unstructured_grid");};
83 return this->IsFileValid(
"rectilinear_grid");};
91 void SetInputString(
const char *in);
92 vtkGetStringMacro(InputString);
93 void SetInputString(
const char *in,
int len);
94 vtkGetMacro(InputStringLength,
int);
95 void SetBinaryInputString(
const char *,
int len);
97 { this->SetBinaryInputString(input.c_str(),
static_cast<int>(input.length())); }
113 vtkGetStringMacro(Header);
119 vtkSetMacro(ReadFromInputString,
int);
120 vtkGetMacro(ReadFromInputString,
int);
121 vtkBooleanMacro(ReadFromInputString,
int);
127 vtkGetMacro(FileType,
int);
136 {this->CharacterizeFile();
return this->NumberOfScalarsInFile;}
138 {this->CharacterizeFile();
return this->NumberOfVectorsInFile;}
140 {this->CharacterizeFile();
return this->NumberOfTensorsInFile;}
142 {this->CharacterizeFile();
return this->NumberOfNormalsInFile;}
144 {this->CharacterizeFile();
return this->NumberOfTCoordsInFile;}
146 {this->CharacterizeFile();
return this->NumberOfFieldDataInFile;}
153 const char *GetScalarsNameInFile(
int i);
154 const char *GetVectorsNameInFile(
int i);
155 const char *GetTensorsNameInFile(
int i);
156 const char *GetNormalsNameInFile(
int i);
157 const char *GetTCoordsNameInFile(
int i);
158 const char *GetFieldDataNameInFile(
int i);
164 vtkSetStringMacro(ScalarsName);
165 vtkGetStringMacro(ScalarsName);
171 vtkSetStringMacro(VectorsName);
172 vtkGetStringMacro(VectorsName);
178 vtkSetStringMacro(TensorsName);
179 vtkGetStringMacro(TensorsName);
185 vtkSetStringMacro(NormalsName);
186 vtkGetStringMacro(NormalsName);
192 vtkSetStringMacro(TCoordsName);
193 vtkGetStringMacro(TCoordsName);
200 vtkSetStringMacro(LookupTableName);
201 vtkGetStringMacro(LookupTableName);
207 vtkSetStringMacro(FieldDataName);
208 vtkGetStringMacro(FieldDataName);
213 vtkSetMacro(ReadAllScalars,
int);
214 vtkGetMacro(ReadAllScalars,
int);
215 vtkBooleanMacro(ReadAllScalars,
int);
220 vtkSetMacro(ReadAllVectors,
int);
221 vtkGetMacro(ReadAllVectors,
int);
222 vtkBooleanMacro(ReadAllVectors,
int);
227 vtkSetMacro(ReadAllNormals,
int);
228 vtkGetMacro(ReadAllNormals,
int);
229 vtkBooleanMacro(ReadAllNormals,
int);
234 vtkSetMacro(ReadAllTensors,
int);
235 vtkGetMacro(ReadAllTensors,
int);
236 vtkBooleanMacro(ReadAllTensors,
int);
241 vtkSetMacro(ReadAllColorScalars,
int);
242 vtkGetMacro(ReadAllColorScalars,
int);
243 vtkBooleanMacro(ReadAllColorScalars,
int);
248 vtkSetMacro(ReadAllTCoords,
int);
249 vtkGetMacro(ReadAllTCoords,
int);
250 vtkBooleanMacro(ReadAllTCoords,
int);
255 vtkSetMacro(ReadAllFields,
int);
256 vtkGetMacro(ReadAllFields,
int);
257 vtkBooleanMacro(ReadAllFields,
int);
269 int ReadCellData(
vtkDataSet *ds,
int numCells);
274 int ReadPointData(
vtkDataSet *ds,
int numPts);
280 int ReadPoints(
vtkGraph *g,
int numPts);
285 int ReadVertexData(
vtkGraph *g,
int numVertices);
290 int ReadEdgeData(
vtkGraph *g,
int numEdges);
293 int ReadRowData(
vtkTable *t,
int numEdges);
299 int ReadCells(
int size,
int *
data,
int skip1,
int read2,
int skip3);
307 vtkAbstractArray *ReadArray(
const char *dataType,
int numTuples,
int numComp);
308 vtkFieldData *ReadFieldData(FieldType fieldType = FIELD_DATA);
314 vtkGetMacro(FileMajorVersion,
int);
315 vtkGetMacro(FileMinorVersion,
int);
323 int Read(
unsigned char *);
325 int Read(
unsigned short *);
327 int Read(
unsigned int *);
329 int Read(
unsigned long *);
330 #if defined(VTK_TYPE_USE___INT64)
331 int Read(__int64 *result);
332 int Read(
unsigned __int64 *result);
334 #if defined(VTK_TYPE_USE_LONG_LONG)
335 int Read(
long long *result);
336 int Read(
unsigned long long *result);
349 int ReadLine(
char result[256]);
353 int ReadString(
char result[256]);
356 char *LowerCase(
char *str,
const size_t len=256);
390 void SetScalarLut(
const char* lut);
391 vtkGetStringMacro(ScalarLut);
439 void InitializeCharacteristics();
440 int CharacterizeFile();
441 void CheckFor(
const char*
name,
char *line,
int &num,
char** &array,
448 int DecodeString(
char *resname,
const char*
name);
466 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)