29 #ifndef vtkDataReader_h 30 #define vtkDataReader_h 32 #include "vtkIOLegacyModule.h" 67 vtkSetStringMacro(FileName);
68 vtkGetStringMacro(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);
97 vtkGetStringMacro(InputString);
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())); }
122 vtkGetStringMacro(Header);
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);
183 vtkGetStringMacro(ScalarsName);
191 vtkSetStringMacro(VectorsName);
192 vtkGetStringMacro(VectorsName);
200 vtkSetStringMacro(TensorsName);
201 vtkGetStringMacro(TensorsName);
209 vtkSetStringMacro(NormalsName);
210 vtkGetStringMacro(NormalsName);
218 vtkSetStringMacro(TCoordsName);
219 vtkGetStringMacro(TCoordsName);
227 vtkSetStringMacro(LookupTableName);
228 vtkGetStringMacro(LookupTableName);
236 vtkSetStringMacro(FieldDataName);
237 vtkGetStringMacro(FieldDataName);
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);
471 vtkGetStringMacro(ScalarLut);
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(
vtkTypeBool ReadAllTensors
Wrapper around std::string to keep symbols short.
vtkTypeBool ReadFromInputString
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
vtkTypeBool ReadAllFields
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
vtkTypeBool ReadAllScalars
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
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.
vtkTypeBool ReadAllColorScalars
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
vtkTypeBool ReadAllNormals
int IsFileStructuredPoints()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
vtkTypeBool ReadAllVectors
static vtkAlgorithm * New()
char ** NormalsNameInFile
vtkTypeBool ReadAllTCoords
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