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 - what type of data is being. More... | |
| enum | vtkTypes { VTK_EMPTY_CELL = 0, VTK_VERTEX = 1, VTK_POLY_VERTEX = 2, VTK_LINE = 3, VTK_POLY_LINE = 4, VTK_TRIANGLE = 5, VTK_TRIANGLE_STRIP = 6, VTK_POLYGON = 7, VTK_PIXEL = 8, VTK_QUAD = 9, VTK_TETRA = 10, VTK_VOXEL = 11, VTK_HEXAHEDRON = 12, VTK_WEDGE = 13, VTK_PYRAMID = 14, VTK_PENTAGONAL_PRISM = 15, VTK_HEXAGONAL_PRISM = 16 } |
| Enumeration defining the cell types. 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 NamedEnum< vtkDataType, 8 > | vtkDataTypeNames |
| static const NamedEnum< vtkDataSetType, 3 > | vtkDataSetTypeNames |
| static const NamedEnum< parseMode, 5 > | 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 63 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 70 of file vtkUnstructuredReader.H.
| enum vtkDataSetType |
Enumeration defining the vtk dataset types.
| Enumerator | |
|---|---|
| VTK_FIELD | |
| VTK_SCALARS | |
| VTK_VECTORS | |
Definition at line 86 of file vtkUnstructuredReader.H.
| enum parseMode |
Enumeration defining the parse mode - what type of data is being.
read
| Enumerator | |
|---|---|
| NOMODE | |
| UNSTRUCTURED_GRID | |
| POLYDATA | |
| CELL_DATA | |
| POINT_DATA | |
Definition at line 98 of file vtkUnstructuredReader.H.
| enum vtkTypes |
Enumeration defining the cell types.
Definition at line 111 of file vtkUnstructuredReader.H.
| vtkUnstructuredReader | ( | const objectRegistry & | obr, |
| ISstream & | inFile | ||
| ) |
Construct from Istream, read all.
Definition at line 535 of file vtkUnstructuredReader.C.
References List< T >::clear(), Foam::endl(), HashTable< T, Key, Hash >::erase(), Foam::exit(), f(), Foam::FatalIOError, FatalIOErrorInFunction, HashTable< T, Key, Hash >::find(), forAll, ISstream::getLine(), IOstream::good(), Foam::Info, HashTable< regIOobject * >::iterator, IOstream::lineNumber(), Foam::nl, nPoints, Foam::read(), Foam::readLabel(), s(), List< T >::setSize(), List< T >::size(), and regIOobject::store().
Referenced by NamedEnum< Enum, nEnum >::names().


| ClassName | ( | "vtkUnstructuredReader" | ) |
Runtime type information.
|
inline |
Header.
Definition at line 246 of file vtkUnstructuredReader.H.
|
inline |
Title.
Definition at line 252 of file vtkUnstructuredReader.H.
|
inline |
DataType.
Definition at line 258 of file vtkUnstructuredReader.H.
|
inline |
Points.
Definition at line 265 of file vtkUnstructuredReader.H.
Referenced by VTKsurfaceFormat< Face >::read(), and VTKedgeFormat::read().

|
inline |
Definition at line 270 of file vtkUnstructuredReader.H.
|
inline |
3D cells.
Definition at line 276 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 281 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 286 of file vtkUnstructuredReader.H.
|
inline |
2D cells (=faces)
Definition at line 292 of file vtkUnstructuredReader.H.
Referenced by VTKsurfaceFormat< Face >::read().

|
inline |
Definition at line 297 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 302 of file vtkUnstructuredReader.H.
|
inline |
1D cells (=open lines)
Definition at line 308 of file vtkUnstructuredReader.H.
Referenced by VTKedgeFormat::read().

|
inline |
Definition at line 313 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 318 of file vtkUnstructuredReader.H.
|
inline |
Cell based fields.
Definition at line 324 of file vtkUnstructuredReader.H.
Referenced by VTKsurfaceFormat< Face >::read().

|
inline |
Definition at line 329 of file vtkUnstructuredReader.H.
|
inline |
Point based fields.
Definition at line 335 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 340 of file vtkUnstructuredReader.H.
|
inline |
Other fields.
Definition at line 346 of file vtkUnstructuredReader.H.
|
inline |
Definition at line 351 of file vtkUnstructuredReader.H.
References vtkUnstructuredReader::printFieldStats().

| void printFieldStats | ( | const objectRegistry & | obj | ) | const |
Debug: print contents of objectRegistry.
Definition at line 53 of file vtkUnstructuredReaderTemplates.C.
References Foam::endl(), fieldNames, forAll, Foam::Info, objectRegistry::lookupObject(), objectRegistry::names(), Foam::nl, and List< T >::size().
Referenced by vtkUnstructuredReader::otherData().


|
static |
Definition at line 82 of file vtkUnstructuredReader.H.
Referenced by NamedEnum< Enum, nEnum >::names().
|
static |
Definition at line 93 of file vtkUnstructuredReader.H.
Referenced by NamedEnum< Enum, nEnum >::names().
|
static |
Definition at line 107 of file vtkUnstructuredReader.H.
Referenced by NamedEnum< Enum, nEnum >::names().
1.8.11