VTK  9.0.20210510
vtkDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkDataReader_h
30 #define vtkDataReader_h
31 
32 #include "vtkIOLegacyModule.h" // For export macro
33 #include "vtkSimpleReader.h"
34 #include "vtkStdString.h" // For API using strings
35 
36 #include <vtkSmartPointer.h> // for smart pointer
37 
38 #include <locale> // For locale settings
39 
40 #define VTK_ASCII 1
41 #define VTK_BINARY 2
42 
43 class vtkAbstractArray;
44 class vtkCharArray;
45 class vtkCellArray;
46 class vtkDataSet;
48 class vtkFieldData;
49 class vtkGraph;
50 class vtkPointSet;
51 class vtkRectilinearGrid;
52 class vtkTable;
53 
54 class VTKIOLEGACY_EXPORT vtkDataReader : public vtkSimpleReader
55 {
56 public:
57  enum FieldType
58  {
61  FIELD_DATA
62  };
63 
64  static vtkDataReader* New();
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
74  void SetFileName(const char* fname);
75  const char* GetFileName() const;
76  const char* GetFileName(int i) const { return this->vtkSimpleReader::GetFileName(i); }
78 
80 
91  vtkGetMacro(FileVersion, int);
92  vtkGetMacro(FileMajorVersion, int);
93  vtkGetMacro(FileMinorVersion, int);
95 
97 
101  int IsFileValid(const char* dstype);
102  int IsFileStructuredPoints() { return this->IsFileValid("structured_points"); }
103  int IsFilePolyData() { return this->IsFileValid("polydata"); }
104  int IsFileStructuredGrid() { return this->IsFileValid("structured_grid"); }
105  int IsFileUnstructuredGrid() { return this->IsFileValid("unstructured_grid"); }
106  int IsFileRectilinearGrid() { return this->IsFileValid("rectilinear_grid"); }
108 
110 
116  void SetInputString(const char* in);
117  vtkGetStringMacro(InputString);
118  void SetInputString(const char* in, int len);
119  vtkGetMacro(InputStringLength, int);
120  void SetBinaryInputString(const char*, int len);
121  void SetInputString(const vtkStdString& input)
122  {
123  this->SetBinaryInputString(input.c_str(), static_cast<int>(input.length()));
124  }
126 
128 
136  virtual void SetInputArray(vtkCharArray*);
137  vtkGetObjectMacro(InputArray, vtkCharArray);
139 
141 
144  vtkGetStringMacro(Header);
146 
148 
152  vtkSetMacro(ReadFromInputString, vtkTypeBool);
153  vtkGetMacro(ReadFromInputString, vtkTypeBool);
154  vtkBooleanMacro(ReadFromInputString, vtkTypeBool);
156 
158 
162  vtkGetMacro(FileType, int);
164 
173  {
174  this->CharacterizeFile();
175  return this->NumberOfScalarsInFile;
176  }
178  {
179  this->CharacterizeFile();
180  return this->NumberOfVectorsInFile;
181  }
183  {
184  this->CharacterizeFile();
185  return this->NumberOfTensorsInFile;
186  }
188  {
189  this->CharacterizeFile();
190  return this->NumberOfNormalsInFile;
191  }
193  {
194  this->CharacterizeFile();
195  return this->NumberOfTCoordsInFile;
196  }
198  {
199  this->CharacterizeFile();
200  return this->NumberOfFieldDataInFile;
201  }
202 
204 
209  const char* GetScalarsNameInFile(int i);
210  const char* GetVectorsNameInFile(int i);
211  const char* GetTensorsNameInFile(int i);
212  const char* GetNormalsNameInFile(int i);
213  const char* GetTCoordsNameInFile(int i);
214  const char* GetFieldDataNameInFile(int i);
216 
218 
222  vtkSetStringMacro(ScalarsName);
223  vtkGetStringMacro(ScalarsName);
225 
227 
231  vtkSetStringMacro(VectorsName);
232  vtkGetStringMacro(VectorsName);
234 
236 
240  vtkSetStringMacro(TensorsName);
241  vtkGetStringMacro(TensorsName);
243 
245 
249  vtkSetStringMacro(NormalsName);
250  vtkGetStringMacro(NormalsName);
252 
254 
258  vtkSetStringMacro(TCoordsName);
259  vtkGetStringMacro(TCoordsName);
261 
263 
267  vtkSetStringMacro(LookupTableName);
268  vtkGetStringMacro(LookupTableName);
270 
272 
276  vtkSetStringMacro(FieldDataName);
277  vtkGetStringMacro(FieldDataName);
279 
281 
284  vtkSetMacro(ReadAllScalars, vtkTypeBool);
285  vtkGetMacro(ReadAllScalars, vtkTypeBool);
286  vtkBooleanMacro(ReadAllScalars, vtkTypeBool);
288 
290 
293  vtkSetMacro(ReadAllVectors, vtkTypeBool);
294  vtkGetMacro(ReadAllVectors, vtkTypeBool);
295  vtkBooleanMacro(ReadAllVectors, vtkTypeBool);
297 
299 
302  vtkSetMacro(ReadAllNormals, vtkTypeBool);
303  vtkGetMacro(ReadAllNormals, vtkTypeBool);
304  vtkBooleanMacro(ReadAllNormals, vtkTypeBool);
306 
308 
311  vtkSetMacro(ReadAllTensors, vtkTypeBool);
312  vtkGetMacro(ReadAllTensors, vtkTypeBool);
313  vtkBooleanMacro(ReadAllTensors, vtkTypeBool);
315 
317 
320  vtkSetMacro(ReadAllColorScalars, vtkTypeBool);
321  vtkGetMacro(ReadAllColorScalars, vtkTypeBool);
322  vtkBooleanMacro(ReadAllColorScalars, vtkTypeBool);
324 
326 
329  vtkSetMacro(ReadAllTCoords, vtkTypeBool);
330  vtkGetMacro(ReadAllTCoords, vtkTypeBool);
331  vtkBooleanMacro(ReadAllTCoords, vtkTypeBool);
333 
335 
338  vtkSetMacro(ReadAllFields, vtkTypeBool);
339  vtkGetMacro(ReadAllFields, vtkTypeBool);
340  vtkBooleanMacro(ReadAllFields, vtkTypeBool);
342 
346  int OpenVTKFile(const char* fname = nullptr);
347 
351  int ReadHeader(const char* fname = nullptr);
352 
358  int ReadCellData(vtkDataSet* ds, vtkIdType numCells);
359 
366 
371 
376 
382  int ReadVertexData(vtkGraph* g, vtkIdType numVertices);
383 
389  int ReadEdgeData(vtkGraph* g, vtkIdType numEdges);
390 
394  int ReadRowData(vtkTable* t, vtkIdType numEdges);
395 
402 
408 
412  int ReadCellsLegacy(vtkIdType size, int* data, int skip1, int read2, int skip3);
413 
418  int ReadCoordinates(vtkRectilinearGrid* rg, int axes, int numCoords);
419 
421 
424  vtkAbstractArray* ReadArray(const char* dataType, vtkIdType numTuples, vtkIdType numComp);
425  vtkFieldData* ReadFieldData(FieldType fieldType = FIELD_DATA);
427 
429 
433  int Read(char*);
434  int Read(unsigned char*);
435  int Read(short*);
436  int Read(unsigned short*);
437  int Read(int*);
438  int Read(unsigned int*);
439  int Read(long*);
440  int Read(unsigned long*);
441  int Read(long long* result);
442  int Read(unsigned long long* result);
443  int Read(float*);
444  int Read(double*);
446 
451  size_t Peek(char* str, size_t n);
452 
456  void CloseVTKFile();
457 
462  int ReadLine(char result[256]);
463 
468  int ReadString(char result[256]);
469 
473  char* LowerCase(char* str, const size_t len = 256);
474 
478  istream* GetIStream() { return this->IS; }
479 
481 
485  int ReadTimeDependentMetaData(int timestep, vtkInformation* metadata) override;
486  int ReadMesh(int piece, int npieces, int nghosts, int timestep, vtkDataObject* output) override;
487  int ReadPoints(int /*piece*/, int /*npieces*/, int /*nghosts*/, int /*timestep*/,
488  vtkDataObject* /*output*/) override
489  {
490  return 1;
491  }
492  int ReadArrays(int /*piece*/, int /*npieces*/, int /*nghosts*/, int /*timestep*/,
493  vtkDataObject* /*output*/) override
494  {
495  return 1;
496  }
498 
500 
505  int ReadMeshSimple(const std::string& /*fname*/, vtkDataObject* /*output*/) override { return 1; }
506  int ReadPointsSimple(const std::string& /*fname*/, vtkDataObject* /*output*/) override
507  {
508  return 1;
509  }
510  int ReadArraysSimple(const std::string& /*fname*/, vtkDataObject* /*output*/) override
511  {
512  return 1;
513  }
515 
516 protected:
518  ~vtkDataReader() override;
519 
524  int FileType;
525  istream* IS;
526 
527  char* ScalarsName;
528  char* VectorsName;
529  char* TensorsName;
530  char* TCoordsName;
531  char* NormalsName;
534  char* ScalarLut;
535 
537  char* InputString;
540 
541  void SetScalarLut(const char* lut);
542  vtkGetStringMacro(ScalarLut);
543 
544  char* Header;
545 
556 
561 
563 
564  // This supports getting additional information from vtk files
584 
592 
593  std::locale CurrentLocale;
594 
596  int CharacterizeFile(); // read entire file, storing important characteristics
597  void CheckFor(const char* name, char* line, int& num, char**& array, int& allocSize);
598 
600 
606  int DecodeString(char* resname, const char* name);
607 
608 private:
609  vtkDataReader(const vtkDataReader&) = delete;
610  void operator=(const vtkDataReader&) = delete;
611 
612  void ConvertGhostLevelsToGhostType(FieldType fieldType, vtkAbstractArray* data) const;
613 };
614 
615 #endif
vtkDataReader::NormalsNameInFile
char ** NormalsNameInFile
Definition: vtkDataReader.h:578
vtkDataReader::TensorsName
char * TensorsName
Definition: vtkDataReader.h:529
vtkDataReader::ReadPedigreeIds
int ReadPedigreeIds(vtkDataSetAttributes *a, vtkIdType num)
vtkStdString.h
vtkDataReader::GetScalarsNameInFile
const char * GetScalarsNameInFile(int i)
What is the name of the ith attribute of a certain type in this file? This requires reading the file,...
vtkDataReader::CharacteristicsTime
vtkTimeStamp CharacteristicsTime
Definition: vtkDataReader.h:583
vtkDataReader::ReadCellsLegacy
int ReadCellsLegacy(vtkIdType size, int *data)
Read a bunch of "cells".
vtkDataReader::GetNumberOfFieldDataInFile
int GetNumberOfFieldDataInFile()
Definition: vtkDataReader.h:197
vtkDataReader::ReadAllTensors
vtkTypeBool ReadAllTensors
Definition: vtkDataReader.h:588
vtkDataReader::GetFieldDataNameInFile
const char * GetFieldDataNameInFile(int i)
What is the name of the ith attribute of a certain type in this file? This requires reading the file,...
vtkDataReader::ReadCellsLegacy
int ReadCellsLegacy(vtkIdType size, int *data, int skip1, int read2, int skip3)
Read a piece of the cells (for streaming compliance)
vtkDataReader::ReadFieldData
vtkFieldData * ReadFieldData(FieldType fieldType=FIELD_DATA)
Helper functions for reading data.
vtkDataReader::IS
istream * IS
Definition: vtkDataReader.h:525
vtkDataReader::NumberOfVectorsInFile
int NumberOfVectorsInFile
Definition: vtkDataReader.h:568
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkDataReader
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:55
vtkDataReader::CharacterizeFile
int CharacterizeFile()
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:61
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:52
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:63
vtkDataReader::ReadCoScalarData
int ReadCoScalarData(vtkDataSetAttributes *a, vtkIdType num)
vtkDataReader::FieldType
FieldType
Definition: vtkDataReader.h:58
vtkDataReader::FileVersion
int FileVersion
Definition: vtkDataReader.h:521
vtkDataReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:33
vtkDataReader::Read
int Read(int *)
Internal function to read in a value.
vtkDataReader::GetNumberOfVectorsInFile
int GetNumberOfVectorsInFile()
Definition: vtkDataReader.h:177
vtkDataReader::VectorsName
char * VectorsName
Definition: vtkDataReader.h:528
vtkDataReader::NormalsName
char * NormalsName
Definition: vtkDataReader.h:531
vtkDataReader::GetNumberOfTensorsInFile
int GetNumberOfTensorsInFile()
Definition: vtkDataReader.h:182
vtkDataReader::TCoordsName
char * TCoordsName
Definition: vtkDataReader.h:530
vtkDataReader::ReadAllColorScalars
vtkTypeBool ReadAllColorScalars
Definition: vtkDataReader.h:589
vtkSmartPointer< vtkCellArray >
vtkDataReader::Header
char * Header
Definition: vtkDataReader.h:542
vtkDataReader::ReadGlobalIds
int ReadGlobalIds(vtkDataSetAttributes *a, vtkIdType num)
vtkDataReader::ReadVertexData
int ReadVertexData(vtkGraph *g, vtkIdType numVertices)
Read the vertex data of a vtk data file.
vtkDataReader::NumberOfFieldDataInFile
int NumberOfFieldDataInFile
Definition: vtkDataReader.h:580
vtkDataReader::CELL_DATA
@ CELL_DATA
Definition: vtkDataReader.h:60
vtkDataReader::ReadEdgeFlags
int ReadEdgeFlags(vtkDataSetAttributes *a, vtkIdType num)
vtkDataReader::ScalarLut
char * ScalarLut
Definition: vtkDataReader.h:534
vtkDataReader::ReadVectorData
int ReadVectorData(vtkDataSetAttributes *a, vtkIdType num)
vtkDataReader::Read
int Read(float *)
Internal function to read in a value.
vtkDataReader::LookupTableName
char * LookupTableName
Definition: vtkDataReader.h:532
vtkDataReader::vtkDataReader
vtkDataReader()
vtkDataReader::ReadArraysSimple
int ReadArraysSimple(const std::string &, vtkDataObject *) override
Overridden with default implementation of doing nothing so that subclasses only override what is need...
Definition: vtkDataReader.h:510
vtkDataReader::ReadNormalData
int ReadNormalData(vtkDataSetAttributes *a, vtkIdType num)
vtkDataReader::FileType
int FileType
Definition: vtkDataReader.h:524
vtkDataReader::InputStringPos
int InputStringPos
Definition: vtkDataReader.h:539
vtkDataReader::Read
int Read(unsigned long *)
Internal function to read in a value.
vtkDataReader::ReadPointCoordinates
int ReadPointCoordinates(vtkGraph *g, vtkIdType numPts)
Read point coordinates.
vtkDataReader::ReadPoints
int ReadPoints(int, int, int, int, vtkDataObject *) override
Overridden to handle reading from a string.
Definition: vtkDataReader.h:487
vtkDataReader::ReadPointCoordinates
int ReadPointCoordinates(vtkPointSet *ps, vtkIdType numPts)
Read point coordinates.
vtkSimpleReader::GetFileName
const char * GetFileName(int i) const
Returns a particular filename stored by the reader.
vtkDataReader::ReadFromInputString
vtkTypeBool ReadFromInputString
Definition: vtkDataReader.h:536
vtkFieldData
represent and manipulate fields of data
Definition: vtkFieldData.h:54
vtkDataReader::GetIStream
istream * GetIStream()
Return the istream being used to read in the data.
Definition: vtkDataReader.h:478
vtkDataReader::GetTensorsNameInFile
const char * GetTensorsNameInFile(int i)
What is the name of the ith attribute of a certain type in this file? This requires reading the file,...
vtkDataReader::SetBinaryInputString
void SetBinaryInputString(const char *, int len)
Specify the InputString for use when reading from a character array.
vtkDataReader::ReadCoordinates
int ReadCoordinates(vtkRectilinearGrid *rg, int axes, int numCoords)
Read the coordinates for a rectilinear grid.
vtkDataReader::Read
int Read(unsigned char *)
Internal function to read in a value.
vtkDataReader::CurrentFileName
std::string CurrentFileName
Definition: vtkDataReader.h:520
vtkCharArray
dynamic, self-adjusting array of char
Definition: vtkCharArray.h:36
vtkDataReader::GetNumberOfNormalsInFile
int GetNumberOfNormalsInFile()
Definition: vtkDataReader.h:187
vtkDataReader::ReadTensorData
int ReadTensorData(vtkDataSetAttributes *a, vtkIdType num, vtkIdType numComp=9)
vtkDataReader::GetFileName
const char * GetFileName() const
Specify file name of vtk data file to read.
vtkDataReader::Peek
size_t Peek(char *str, size_t n)
Read n character from the stream into str, then reset the stream position.
vtkDataReader::ReadAllScalars
vtkTypeBool ReadAllScalars
Definition: vtkDataReader.h:585
vtkDataReader::VectorsNameInFile
char ** VectorsNameInFile
Definition: vtkDataReader.h:569
vtkDataReader::ReadArrays
int ReadArrays(int, int, int, int, vtkDataObject *) override
Overridden to handle reading from a string.
Definition: vtkDataReader.h:492
vtkDataReader::DecodeString
int DecodeString(char *resname, const char *name)
Decode a string.
vtkDataReader::ReadInformation
int ReadInformation(vtkInformation *info, vtkIdType numKeys)
Format is detailed here.
vtkDataReader::GetNumberOfTCoordsInFile
int GetNumberOfTCoordsInFile()
Definition: vtkDataReader.h:192
vtkDataReader::SetInputString
void SetInputString(const char *in, int len)
Specify the InputString for use when reading from a character array.
vtkDataReader::ScalarsName
char * ScalarsName
Definition: vtkDataReader.h:527
vtkDataReader::ScalarsNameInFile
char ** ScalarsNameInFile
Definition: vtkDataReader.h:566
vtkDataReader::CheckFor
void CheckFor(const char *name, char *line, int &num, char **&array, int &allocSize)
vtkDataReader::InitializeCharacteristics
void InitializeCharacteristics()
vtkDataReader::ReadCellData
int ReadCellData(vtkDataSet *ds, vtkIdType numCells)
Read the cell data of a vtk data file.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkDataReader::New
static vtkDataReader * New()
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:181
vtkDataReader::ReadHeader
int ReadHeader(const char *fname=nullptr)
Read the header of a vtk data file.
vtkSmartPointer.h
vtkSimpleReader
Superclass for algorithms that are not time or parallel aware.
Definition: vtkSimpleReader.h:32
vtkSimpleReader.h
vtkDataReader::CurrentLocale
std::locale CurrentLocale
Definition: vtkDataReader.h:593
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkDataReader::Read
int Read(unsigned int *)
Internal function to read in a value.
vtkDataReader::GetNormalsNameInFile
const char * GetNormalsNameInFile(int i)
What is the name of the ith attribute of a certain type in this file? This requires reading the file,...
vtkDataReader::ReadPointData
int ReadPointData(vtkDataSet *ds, vtkIdType numPts)
Read the point data of a vtk data file.
vtkDataReader::ReadLine
int ReadLine(char result[256])
Internal function to read in a line up to 256 characters.
vtkDataReader::InputString
char * InputString
Definition: vtkDataReader.h:537
vtkDataReader::TensorsNameInFile
char ** TensorsNameInFile
Definition: vtkDataReader.h:572
vtkDataReader::ScalarsNameAllocSize
int ScalarsNameAllocSize
Definition: vtkDataReader.h:567
vtkDataReader::IsFileValid
int IsFileValid(const char *dstype)
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
vtkDataReader::InputStringLength
int InputStringLength
Definition: vtkDataReader.h:538
vtkDataReader::ReadArray
vtkAbstractArray * ReadArray(const char *dataType, vtkIdType numTuples, vtkIdType numComp)
Helper functions for reading data.
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkDataReader::OpenVTKFile
int OpenVTKFile(const char *fname=nullptr)
Open a vtk data file.
vtkDataReader::POINT_DATA
@ POINT_DATA
Definition: vtkDataReader.h:59
str
const vtkUnicodeString & str
Definition: vtkVariantBoostSerialization.h:72
vtkDataReader::ReadDataSetData
int ReadDataSetData(vtkDataSet *ds)
vtkDataReader::IsFilePolyData
int IsFilePolyData()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
Definition: vtkDataReader.h:103
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkDataReader::GetFileName
const char * GetFileName(int i) const
Specify file name of vtk data file to read.
Definition: vtkDataReader.h:76
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:76
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkDataReader::IsFileUnstructuredGrid
int IsFileUnstructuredGrid()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
Definition: vtkDataReader.h:105
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkX3D::string
@ string
Definition: vtkX3D.h:496
vtkDataReader::CloseVTKFile
void CloseVTKFile()
Close the vtk file.
vtkDataReader::TCoordsNameAllocSize
int TCoordsNameAllocSize
Definition: vtkDataReader.h:576
vtkDataReader::ReadMesh
int ReadMesh(int piece, int npieces, int nghosts, int timestep, vtkDataObject *output) override
Overridden to handle reading from a string.
vtkDataReader::SetScalarLut
void SetScalarLut(const char *lut)
vtkDataReader::ReadLutData
int ReadLutData(vtkDataSetAttributes *a)
vtkDataReader::ReadAllTCoords
vtkTypeBool ReadAllTCoords
Definition: vtkDataReader.h:590
IS
#define IS
Definition: vtkVRMLImporter_Yacc.h:562
vtkDataReader::InputArray
vtkCharArray * InputArray
Definition: vtkDataReader.h:599
vtkDataReader::FieldDataNameAllocSize
int FieldDataNameAllocSize
Definition: vtkDataReader.h:582
vtkDataReader::Read
int Read(double *)
Internal function to read in a value.
vtkDataReader::ReadTimeDependentMetaData
int ReadTimeDependentMetaData(int timestep, vtkInformation *metadata) override
Overridden to handle reading from a string.
vtkPointSet
concrete class for storing a set of points
Definition: vtkPointSet.h:67
vtkDataReader::VectorsNameAllocSize
int VectorsNameAllocSize
Definition: vtkDataReader.h:570
vtkDataReader::ReadString
int ReadString(char result[256])
Internal function to read in a string up to 256 characters.
vtkDataReader::GetTCoordsNameInFile
const char * GetTCoordsNameInFile(int i)
What is the name of the ith attribute of a certain type in this file? This requires reading the file,...
vtkDataReader::ReadAllFields
vtkTypeBool ReadAllFields
Definition: vtkDataReader.h:591
vtkDataReader::IsFileStructuredPoints
int IsFileStructuredPoints()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
Definition: vtkDataReader.h:102
vtkDataReader::IsFileStructuredGrid
int IsFileStructuredGrid()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
Definition: vtkDataReader.h:104
vtkDataReader::NumberOfScalarsInFile
int NumberOfScalarsInFile
Definition: vtkDataReader.h:565
vtkDataReader::ReadTCoordsData
int ReadTCoordsData(vtkDataSetAttributes *a, vtkIdType num)
vtkDataReader::FileMajorVersion
int FileMajorVersion
Definition: vtkDataReader.h:522
vtkDataReader::SetInputString
void SetInputString(const vtkStdString &input)
Specify the InputString for use when reading from a character array.
Definition: vtkDataReader.h:121
vtkDataReader::TensorsNameAllocSize
int TensorsNameAllocSize
Definition: vtkDataReader.h:573
vtkDataReader::ReadAllVectors
vtkTypeBool ReadAllVectors
Definition: vtkDataReader.h:586
vtkDataReader::FileMinorVersion
int FileMinorVersion
Definition: vtkDataReader.h:523
vtkDataReader::IsFileRectilinearGrid
int IsFileRectilinearGrid()
Is the file a valid vtk file of the passed dataset type ? The dataset type is passed as a lower case ...
Definition: vtkDataReader.h:106
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:36
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:290
vtkDataReader::Read
int Read(short *)
Internal function to read in a value.
vtkDataReader::Read
int Read(char *)
Internal function to read in a value.
vtkDataReader::ReadMeshSimple
int ReadMeshSimple(const std::string &, vtkDataObject *) override
Overridden with default implementation of doing nothing so that subclasses only override what is need...
Definition: vtkDataReader.h:505
vtkDataReader::FieldDataNameInFile
char ** FieldDataNameInFile
Definition: vtkDataReader.h:581
vtkDataReader::ReadAllNormals
vtkTypeBool ReadAllNormals
Definition: vtkDataReader.h:587
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:60
vtkDataReader::ReadEdgeData
int ReadEdgeData(vtkGraph *g, vtkIdType numEdges)
Read the edge data of a vtk data file.
vtkDataReader::NumberOfTensorsInFile
int NumberOfTensorsInFile
Definition: vtkDataReader.h:571
vtkDataReader::ReadPointsSimple
int ReadPointsSimple(const std::string &, vtkDataObject *) override
Overridden with default implementation of doing nothing so that subclasses only override what is need...
Definition: vtkDataReader.h:506
vtkDataReader::GetVectorsNameInFile
const char * GetVectorsNameInFile(int i)
What is the name of the ith attribute of a certain type in this file? This requires reading the file,...
vtkDataReader::Read
int Read(unsigned short *)
Internal function to read in a value.
vtkDataReader::GetNumberOfScalarsInFile
int GetNumberOfScalarsInFile()
How many attributes of various types are in this file? This requires reading the file,...
Definition: vtkDataReader.h:172
vtkDataReader::Read
int Read(long *)
Internal function to read in a value.
vtkDataReader::Read
int Read(unsigned long long *result)
Internal function to read in a value.
vtkDataReader::LowerCase
char * LowerCase(char *str, const size_t len=256)
Helper method for reading in data.
vtkDataReader::TCoordsNameInFile
char ** TCoordsNameInFile
Definition: vtkDataReader.h:575
vtkDataReader::ReadScalarData
int ReadScalarData(vtkDataSetAttributes *a, vtkIdType num)
vtkDataReader::SetInputArray
virtual void SetInputArray(vtkCharArray *)
Specify the vtkCharArray to be used when reading from a string.
vtkDataReader::SetInputString
void SetInputString(const char *in)
Specify the InputString for use when reading from a character array.
vtkDataReader::ReadRowData
int ReadRowData(vtkTable *t, vtkIdType numEdges)
Read the row data of a vtk data file.
vtkDataReader::NumberOfNormalsInFile
int NumberOfNormalsInFile
Definition: vtkDataReader.h:577
vtkDataReader::ReadCells
int ReadCells(vtkSmartPointer< vtkCellArray > &cellArray)
Read cells in a vtkCellArray, and update the smartpointer reference passed in.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkDataReader::SetFileName
void SetFileName(const char *fname)
Specify file name of vtk data file to read.
vtkDataReader::Read
int Read(long long *result)
Internal function to read in a value.
vtkDataReader::NormalsNameAllocSize
int NormalsNameAllocSize
Definition: vtkDataReader.h:579
vtkDataReader::FieldDataName
char * FieldDataName
Definition: vtkDataReader.h:533
vtkDataReader::~vtkDataReader
~vtkDataReader() override
vtkDataReader::NumberOfTCoordsInFile
int NumberOfTCoordsInFile
Definition: vtkDataReader.h:574