Go to the documentation of this file.
47 #ifndef vtkUnstructuredReader_H
48 #define vtkUnstructuredReader_H
210 const word& arrayName,
219 const label wantedSize
243 const string header()
const
249 const string&
title()
const
const labelList & lineMap() const
vtkDataSetType
Enumeration defining the vtk dataset types.
const labelList & cellMap() const
A class for handling words, derived from string.
const faceList & faces() const
2D cells (=faces)
const objectRegistry & cellData() const
Cell based fields.
static const NamedEnum< parseMode, 5 > parseModeNames
wordList readFieldArray(ISstream &inFile, objectRegistry &obj, const label wantedSize) const
void warnUnhandledType(Istream &inFile, const label type, labelHashSet &warningGiven) const
Reader for vtk unstructured_grid legacy files. Supports single CELLS, POINTS etc. entry only.
static const NamedEnum< vtkDataType, 8 > vtkDataTypeNames
const pointField & points() const
Points.
labelList cellMap_
Map from cells back to original ID.
const objectRegistry & pointData() const
Point based fields.
void printFieldStats(const objectRegistry &) const
Debug: print contents of objectRegistry.
labelListList lines_
1D cells (=edges)
static const NamedEnum< vtkDataSetType, 3 > vtkDataSetTypeNames
objectRegistry & pointData()
Registry of regIOobjects.
vtkUnstructuredReader(const objectRegistry &obr, ISstream &)
Construct from Istream, read all.
vtkDataType
Enumeration defining the vtk data types.
void read(ISstream &inFile)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
objectRegistry otherData_
Other fields.
const objectRegistry & otherData() const
Other fields.
objectRegistry cellData_
Cell based fields.
void readField(ISstream &inFile, objectRegistry &obj, const word &arrayName, const word &dataType, const label size) const
const string & title() const
Title.
labelList faceMap_
Map from faces back to original ID.
const string & dataType() const
DataType.
void extractCells(Istream &inFile, const labelList &cellTypes, const labelList &cellVertData)
void operator=(const vtkUnstructuredReader &)
Dissallow assignment.
const string header() const
Header.
ClassName("vtkUnstructuredReader")
Runtime type information.
cellShapeList cells_
3D cells.
pointField points_
Points.
faceList faces_
2D cells (=faces)
objectRegistry & cellData()
objectRegistry pointData_
Point based fields.
objectRegistry & otherData()
string dataType_
DataType.
const labelList & faceMap() const
void readBlock(Istream &inFile, const label n, List< T > &lst) const
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const labelListList & lines() const
1D cells (=open lines)
vtkTypes
Enumeration defining the cell types.
objectRegistry & selectRegistry(const parseMode readMode)
parseMode
Enumeration defining the parse mode - what type of data is being.
const cellShapeList & cells() const
3D cells.