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);
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(
Wrapper around std::string to keep symbols short.
int GetNumberOfScalarsInFile()
How many attributes of various types are in this file? This requires reading the file,...
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)
Specify the InputString for use when reading from a character array.
int IsFilePolyData()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
char ** ScalarsNameInFile
int IsFileRectilinearGrid()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
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)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
int GetNumberOfTCoordsInFile()
int GetNumberOfNormalsInFile()
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 IsFileStructuredGrid()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
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
istream * GetIStream()
Return the istream being used to read in the data.
char ** FieldDataNameInFile
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
represent and manipulate attribute data in a dataset
int NumberOfNormalsInFile
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int GetNumberOfVectorsInFile()
A table, which contains similar-typed columns of data.
int IsFileUnstructuredGrid()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
char ** VectorsNameInFile
int IsFileStructuredPoints()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
char ** NormalsNameInFile
virtual int ReadMetaData(vtkInformation *)
Read the meta information from the file.
vtkCharArray * InputArray
char ** TCoordsNameInFile
int FieldDataNameAllocSize
int GetNumberOfTensorsInFile()
int NumberOfTCoordsInFile
represent and manipulate fields of data
int NumberOfVectorsInFile