|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   29 #ifndef vtkDataReader_h 
   30 #define vtkDataReader_h 
   32 #include "vtkIOLegacyModule.h"  
   74   void SetFileName(
const char* fname);
 
   84   int IsFileValid(
const char* dstype);
 
   99   void SetInputString(
const char* in);
 
  100   vtkGetStringMacro(InputString);
 
  101   void SetInputString(
const char* in, 
int len);
 
  102   vtkGetMacro(InputStringLength, 
int);
 
  103   void SetBinaryInputString(
const char*, 
int len);
 
  106     this->SetBinaryInputString(input.c_str(), 
static_cast<int>(input.length()));
 
  127   vtkGetStringMacro(Header);
 
  145   vtkGetMacro(FileType, 
int);
 
  157     this->CharacterizeFile();
 
  158     return this->NumberOfScalarsInFile;
 
  162     this->CharacterizeFile();
 
  163     return this->NumberOfVectorsInFile;
 
  167     this->CharacterizeFile();
 
  168     return this->NumberOfTensorsInFile;
 
  172     this->CharacterizeFile();
 
  173     return this->NumberOfNormalsInFile;
 
  177     this->CharacterizeFile();
 
  178     return this->NumberOfTCoordsInFile;
 
  182     this->CharacterizeFile();
 
  183     return this->NumberOfFieldDataInFile;
 
  192   const char* GetScalarsNameInFile(
int i);
 
  193   const char* GetVectorsNameInFile(
int i);
 
  194   const char* GetTensorsNameInFile(
int i);
 
  195   const char* GetNormalsNameInFile(
int i);
 
  196   const char* GetTCoordsNameInFile(
int i);
 
  197   const char* GetFieldDataNameInFile(
int i);
 
  205   vtkSetStringMacro(ScalarsName);
 
  206   vtkGetStringMacro(ScalarsName);
 
  214   vtkSetStringMacro(VectorsName);
 
  215   vtkGetStringMacro(VectorsName);
 
  223   vtkSetStringMacro(TensorsName);
 
  224   vtkGetStringMacro(TensorsName);
 
  232   vtkSetStringMacro(NormalsName);
 
  233   vtkGetStringMacro(NormalsName);
 
  241   vtkSetStringMacro(TCoordsName);
 
  242   vtkGetStringMacro(TCoordsName);
 
  250   vtkSetStringMacro(LookupTableName);
 
  251   vtkGetStringMacro(LookupTableName);
 
  259   vtkSetStringMacro(FieldDataName);
 
  260   vtkGetStringMacro(FieldDataName);
 
  329   int OpenVTKFile(
const char* fname = 
nullptr);
 
  334   int ReadHeader(
const char* fname = 
nullptr);
 
  408   vtkFieldData* ReadFieldData(FieldType fieldType = FIELD_DATA);
 
  416   vtkGetMacro(FileMajorVersion, 
int);
 
  417   vtkGetMacro(FileMinorVersion, 
int);
 
  426   int Read(
unsigned char*);
 
  428   int Read(
unsigned short*);
 
  430   int Read(
unsigned int*);
 
  432   int Read(
unsigned long*);
 
  433   int Read(
long long* result);
 
  434   int Read(
unsigned long long* result);
 
  443   size_t Peek(
char* str, 
size_t n);
 
  454   int ReadLine(
char result[256]);
 
  460   int ReadString(
char result[256]);
 
  465   char* LowerCase(
char* str, 
const size_t len = 256);
 
  530   void SetScalarLut(
const char* lut);
 
  531   vtkGetStringMacro(ScalarLut);
 
  586   void InitializeCharacteristics();
 
  587   int CharacterizeFile(); 
 
  588   void CheckFor(
const char* 
name, 
char* line, 
int& num, 
char**& array, 
int& allocSize);
 
  597   int DecodeString(
char* resname, 
const char* 
name);
 
  
char ** NormalsNameInFile
vtkTimeStamp CharacteristicsTime
int GetNumberOfFieldDataInFile()
vtkTypeBool ReadAllTensors
int NumberOfVectorsInFile
helper superclass for objects that read vtk data files
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()
vtkTypeBool ReadAllColorScalars
int NumberOfFieldDataInFile
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int ReadArraysSimple(const std::string &, vtkDataObject *) override
A method that needs to be override by the subclass to provide data arrays.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int ReadPoints(int, int, int, int, vtkDataObject *) override
Read the points.
const char * GetFileName(int i) const
Returns a particular filename stored by the reader.
vtkTypeBool ReadFromInputString
represent and manipulate fields of data
istream * GetIStream()
Return the istream being used to read in the data.
std::string CurrentFileName
dynamic, self-adjusting array of char
int ReadTimeDependentMetaData(int timestep, vtkInformation *metadata) override
This is the superclass API overridden by this class to provide time support internally.
int GetNumberOfNormalsInFile()
vtkTypeBool ReadAllScalars
char ** VectorsNameInFile
int ReadArrays(int, int, int, int, vtkDataObject *) override
Read all the arrays (point, cell, field etc.).
int GetNumberOfTCoordsInFile()
char ** ScalarsNameInFile
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
object to represent cell connectivity
Superclass for algorithms that are not time or parallel aware.
std::locale CurrentLocale
char ** TensorsNameInFile
abstract class to specify dataset behavior
const char * GetFileName(int i) const
Abstract superclass for all arrays.
int IsFileUnstructuredGrid()
static vtkAlgorithm * New()
vtkTypeBool ReadAllTCoords
vtkCharArray * InputArray
int FieldDataNameAllocSize
int ReadMesh(int piece, int npieces, int nghosts, int timestep, vtkDataObject *output) override
Read the mesh (connectivity) for a given set of data partitioning, number of ghost levels and time st...
abstract class for specifying dataset behavior
vtkTypeBool ReadAllFields
int IsFileStructuredPoints()
int IsFileStructuredGrid()
int NumberOfScalarsInFile
void SetInputString(const vtkStdString &input)
vtkTypeBool ReadAllVectors
int IsFileRectilinearGrid()
Wrapper around std::string to keep symbols short.
Base class for graph data types.
int ReadMeshSimple(const std::string &, vtkDataObject *) override
Overridden with default implementation of doing nothing so that subclasses only override what is need...
char ** FieldDataNameInFile
vtkTypeBool ReadAllNormals
general representation of visualization data
int NumberOfTensorsInFile
int ReadPointsSimple(const std::string &, vtkDataObject *) override
A method that needs to be override by the subclass to provide the point coordinates.
int GetNumberOfScalarsInFile()
How many attributes of various types are in this file? This requires reading the file,...
char ** TCoordsNameInFile
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
int NumberOfNormalsInFile
int NumberOfTCoordsInFile