Reader for vtk UNSTRUCTURED_GRID legacy files. Supports single CELLS, POINTS etc. entry only. More...
Public Types | |
enum | vtkDataType { VTK_INT, VTK_UINT, VTK_LONG, VTK_ULONG, VTK_FLOAT, VTK_DOUBLE, VTK_STRING, VTK_ID } |
Enumeration defining the vtk data types. More... | |
enum | vtkDataSetType { VTK_FIELD, VTK_SCALARS, VTK_VECTORS } |
Enumeration defining the vtk dataset types. More... | |
enum | parseMode { NOMODE, UNSTRUCTURED_GRID, POLYDATA, CELL_DATA, POINT_DATA } |
Enumeration defining the parse mode - type of data being read. More... | |
Public Member Functions | |
ClassName ("vtkUnstructuredReader") | |
Runtime type information. More... | |
vtkUnstructuredReader (const objectRegistry &obr, ISstream &) | |
Construct from Istream, read all. More... | |
const string | header () const |
Header. More... | |
const string & | title () const |
Title. More... | |
const string & | dataType () const |
DataType. More... | |
const pointField & | points () const |
Points. More... | |
pointField & | points () |
const cellShapeList & | cells () const |
3D cells. More... | |
cellShapeList & | cells () |
const labelList & | cellMap () const |
const faceList & | faces () const |
2D cells (=faces) More... | |
faceList & | faces () |
const labelList & | faceMap () const |
const labelListList & | lines () const |
1D cells (=open lines) More... | |
labelListList & | lines () |
const labelList & | lineMap () const |
const objectRegistry & | cellData () const |
Cell based fields. More... | |
objectRegistry & | cellData () |
const objectRegistry & | pointData () const |
Point based fields. More... | |
objectRegistry & | pointData () |
const objectRegistry & | otherData () const |
Other fields. More... | |
objectRegistry & | otherData () |
template<class Type > | |
void | printFieldStats (const objectRegistry &) const |
Debug: print contents of objectRegistry. More... | |
Static Public Attributes | |
static const Enum< vtkDataType > | vtkDataTypeNames |
static const Enum< vtkDataSetType > | vtkDataSetTypeNames |
static const Enum< parseMode > | parseModeNames |
Reader for vtk UNSTRUCTURED_GRID legacy files. Supports single CELLS, POINTS etc. entry only.
- all integer types (int, unsigned_int, long etc.) become Foam::label
Definition at line 66 of file vtkUnstructuredReader.H.
enum vtkDataType |
Enumeration defining the vtk data types.
Enumerator | |
---|---|
VTK_INT | |
VTK_UINT | |
VTK_LONG | |
VTK_ULONG | |
VTK_FLOAT | |
VTK_DOUBLE | |
VTK_STRING | |
VTK_ID |
Definition at line 73 of file vtkUnstructuredReader.H.
enum vtkDataSetType |
Enumeration defining the vtk dataset types.
Enumerator | |
---|---|
VTK_FIELD | |
VTK_SCALARS | |
VTK_VECTORS |
Definition at line 89 of file vtkUnstructuredReader.H.
enum parseMode |
Enumeration defining the parse mode - type of data being read.
Enumerator | |
---|---|
NOMODE | |
UNSTRUCTURED_GRID | |
POLYDATA | |
CELL_DATA | |
POINT_DATA |
Definition at line 100 of file vtkUnstructuredReader.H.
vtkUnstructuredReader | ( | const objectRegistry & | obr, |
ISstream & | inFile | ||
) |
Construct from Istream, read all.
Definition at line 506 of file vtkUnstructuredReader.C.
References Foam::read().
ClassName | ( | "vtkUnstructuredReader" | ) |
Runtime type information.
|
inline |
Header.
Definition at line 226 of file vtkUnstructuredReader.H.
|
inline |
Title.
Definition at line 232 of file vtkUnstructuredReader.H.
|
inline |
DataType.
Definition at line 238 of file vtkUnstructuredReader.H.
|
inline |
Points.
Definition at line 245 of file vtkUnstructuredReader.H.
Referenced by VTKedgeFormat::read(), and VTKsurfaceFormat< Face >::read().
|
inline |
Definition at line 250 of file vtkUnstructuredReader.H.
|
inline |
3D cells.
Definition at line 256 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 261 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 266 of file vtkUnstructuredReader.H.
|
inline |
2D cells (=faces)
Definition at line 272 of file vtkUnstructuredReader.H.
Referenced by VTKsurfaceFormat< Face >::read().
|
inline |
Definition at line 277 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 282 of file vtkUnstructuredReader.H.
|
inline |
1D cells (=open lines)
Definition at line 288 of file vtkUnstructuredReader.H.
Referenced by VTKedgeFormat::read().
|
inline |
Definition at line 293 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 298 of file vtkUnstructuredReader.H.
|
inline |
Cell based fields.
Definition at line 304 of file vtkUnstructuredReader.H.
Referenced by VTKsurfaceFormat< Face >::read().
|
inline |
Definition at line 309 of file vtkUnstructuredReader.H.
|
inline |
Point based fields.
Definition at line 315 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 320 of file vtkUnstructuredReader.H.
|
inline |
Other fields.
Definition at line 326 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 331 of file vtkUnstructuredReader.H.
void printFieldStats | ( | const objectRegistry & | obj | ) | const |
Debug: print contents of objectRegistry.
Definition at line 55 of file vtkUnstructuredReaderTemplates.C.
References Foam::endl(), Foam::Info, objectRegistry::lookupObject(), objectRegistry::names(), and Foam::nl.
|
static |
Definition at line 85 of file vtkUnstructuredReader.H.
|
static |
Definition at line 96 of file vtkUnstructuredReader.H.
|
static |
Definition at line 109 of file vtkUnstructuredReader.H.