Provide a means of writing VTK legacy format. More...
#include <VTKedgeFormat.H>


Public Member Functions | |
| VTKedgeFormat (const fileName &filename) | |
| Read construct from file name. | |
| virtual | ~VTKedgeFormat ()=default |
| Destructor. | |
| virtual bool | read (const fileName &filename) override |
| Read from file. | |
| virtual void | write (const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const override |
| Write to file. | |
| virtual void | write (const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const override |
| Write to file. | |
| Public Member Functions inherited from edgeMesh | |
| edgeMesh (const faMesh &mesh) | |
| Construct finite-area edge mesh faMesh reference. | |
| label | size () const noexcept |
| The geometric (internal) size - number of internal edges. | |
| const edgeVectorField & | C () const |
| Field of edge centres. | |
| TypeName ("edgeMesh") | |
| Runtime type information. | |
| edgeMesh () | |
| Default construct. | |
| edgeMesh (const edgeMesh &em) | |
| Copy construct. | |
| edgeMesh (edgeMesh &&em) | |
| Move construct. | |
| edgeMesh (const pointField &points, const edgeList &edges) | |
| Copy construct from components. | |
| edgeMesh (pointField &&pointLst, edgeList &&edgeLst) | |
| Move construct from components. | |
| edgeMesh (const fileName &name) | |
| Construct from file name (uses extension to determine type). | |
| edgeMesh (const fileName &name, const word &fileType) | |
| Construct from file name with specified type. | |
| declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
| virtual | ~edgeMesh ()=default |
| Destructor. | |
| declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options)) | |
| void | transfer (edgeMesh &mesh) |
| Transfer the contents of the argument and annul the argument. | |
| bool | read (const fileName &name, const word &fileType) |
| Read from file. Chooses reader based on explicit extension. | |
| const pointField & | points () const noexcept |
| Return points. | |
| const edgeList & | edges () const noexcept |
| Return edges. | |
| const labelListList & | pointEdges () const |
| Return edges. | |
| label | regions (labelList &edgeRegion) const |
| Find connected regions. Set region number per edge. | |
| virtual void | clear () |
| Clear all storage. | |
| virtual void | scalePoints (const scalar scaleFactor) |
| Scale points. A non-positive factor is ignored. | |
| virtual void | mergePoints (const scalar mergeDist) |
| Geometric merge points (points within mergeDist) prior to. | |
| virtual void | mergeEdges () |
| Merge duplicate edges and eliminate unused points. | |
| virtual void | writeStats (Ostream &) const |
| void | operator= (const edgeMesh &rhs) |
| Copy assignment. | |
| void | operator= (edgeMesh &&rhs) |
| Move assignment. | |
| Public Member Functions inherited from GeoMesh< faMesh > | |
| GeoMesh (const faMesh &mesh) | |
| Construct from mesh reference. | |
| bool | hasDb () const |
| Return true if thisDb() is a valid DB - here = false. | |
| const objectRegistry & | thisDb () const |
| Return the object registry. | |
| const faMesh & | operator() () const |
| Return reference to the underlying mesh. | |
| Public Member Functions inherited from edgeMeshFormatsCore | |
| edgeMeshFormatsCore ()=default | |
| Default construct. | |
| virtual | ~edgeMeshFormatsCore ()=default |
| Destructor. | |
Static Public Member Functions | |
| static autoPtr< edgeMesh > | New (const fileName &name) |
| Read file and return surface. | |
| static void | write (const fileName &filename, const edgeMesh &mesh, IOstreamOption=IOstreamOption(), const dictionary &options=dictionary::null) |
| Write edge mesh to file in legacy VTK format. | |
| Static Public Member Functions inherited from edgeMesh | |
| static label | size (const faMesh &mesh) noexcept |
| The geometric (internal) size - number of internal edges. | |
| static label | boundary_size (const faMesh &mesh) noexcept |
| The geometric boundary size - number of boundary edges. | |
| static wordHashSet | readTypes () |
| Summary of supported read file types. | |
| static wordHashSet | writeTypes () |
| Summary of supported write file types. | |
| static bool | canReadType (const word &fileType, bool verbose=false) |
| Can we read this file format? | |
| static bool | canWriteType (const word &fileType, bool verbose=false) |
| Can we write this file format type? | |
| static bool | canRead (const fileName &name, bool verbose=false) |
| Can we read this file format? | |
| static autoPtr< edgeMesh > | New (const fileName &name, const word &fileType) |
| Read construct from filename with given format. | |
| static autoPtr< edgeMesh > | New (const fileName &name) |
| Select constructed from filename (implicit extension). | |
| static void | write (const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) |
| Write to file (format implicit in the extension). | |
| static void | write (const fileName &name, const word &fileType, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) |
| Write to file, with given format. | |
| Static Public Member Functions inherited from edgeMeshFormatsCore | |
| static bool | checkSupport (const wordHashSet &available, const word &fileType, const bool verbose=false, const char *functionName=nullptr) |
| Verbose checking of fileType in the list of available types. | |
Additional Inherited Members | |
| Public Types inherited from GeoMesh< faMesh > | |
| typedef faMesh | Mesh |
| typedef faMesh::BoundaryMesh | BoundaryMesh |
| Static Public Attributes inherited from edgeMeshFormatsCore | |
| static word | nativeExt |
| The file extension corresponding to 'native' edge format. | |
| Protected Member Functions inherited from edgeMesh | |
| pointField & | storedPoints () noexcept |
| Non-const access to global points. | |
| edgeList & | storedEdges () noexcept |
| Non-const access to the edges. | |
| Static Protected Member Functions inherited from edgeMeshFormatsCore | |
| static string | getLineNoComment (ISstream &is, const char comment='#') |
| Read non-comment line. | |
| Protected Attributes inherited from GeoMesh< faMesh > | |
| const faMesh & | mesh_ |
| Reference to Mesh. | |
Provide a means of writing VTK legacy format.
Definition at line 49 of file VTKedgeFormat.H.
|
explicit |
Read construct from file name.
Definition at line 30 of file VTKedgeFormat.C.
References read().

|
virtualdefault |
Destructor.
References edgeMesh::edgeMesh(), mesh, and dictionary::null.

Read file and return surface.
Definition at line 68 of file VTKedgeFormat.H.
References Foam::name(), and autoPtr< T >::NewFrom().

|
static |
Write edge mesh to file in legacy VTK format.
Definition at line 99 of file VTKedgeFormat.C.
References IOstream::defaultPrecision(), edgeMesh::edgeMesh(), edgeMesh::edges(), dictionary::getOrDefault(), Foam::vtk::LEGACY_ASCII, edgeMesh::points(), outputOptions::precision(), and writer().

|
overridevirtual |
Read from file.
Reimplemented from edgeMesh.
Definition at line 41 of file VTKedgeFormat.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), vtkUnstructuredReader::lines(), Time::New(), IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, vtkUnstructuredReader::points(), edgeMesh::storedEdges(), and edgeMesh::storedPoints().
Referenced by VTKedgeFormat().


|
inlineoverridevirtual |
Write to file.
Reimplemented from edgeMesh.
Definition at line 104 of file VTKedgeFormat.H.
References Foam::name(), dictionary::null, and write().

|
inlineoverridevirtual |
Write to file.
Reimplemented from edgeMesh.
Definition at line 117 of file VTKedgeFormat.H.
References Foam::name(), dictionary::null, and write().
