VTKedgeFormat Class Reference

Provide a means of writing VTK legacy format. More...

Inheritance diagram for VTKedgeFormat:
Collaboration diagram for VTKedgeFormat:

Public Member Functions

 VTKedgeFormat (const fileName &)
 Construct from file name. More...
 
 VTKedgeFormat (const VTKedgeFormat &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~VTKedgeFormat ()
 Destructor. More...
 
virtual bool read (const fileName &)
 Read from file. More...
 
virtual void write (const fileName &name) const
 Write object file. More...
 
void operator= (const VTKedgeFormat &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from edgeMesh
 TypeName ("edgeMesh")
 Runtime type information. More...
 
 edgeMesh ()
 Construct null. More...
 
 edgeMesh (const pointField &, const edgeList &)
 Construct from components. More...
 
 edgeMesh (pointField &&, edgeList &&)
 Construct by transferring components (points, edges). More...
 
 edgeMesh (const edgeMesh &)
 Copy constructor. More...
 
 edgeMesh (edgeMesh &&)
 Move constructor. More...
 
 edgeMesh (const fileName &)
 Construct from file name (uses extension to determine type) More...
 
 edgeMesh (const fileName &, const word &ext)
 Construct from file name (uses extension to determine type) More...
 
 edgeMesh (Istream &)
 Construct from Istream. More...
 
 declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
 
virtual ~edgeMesh ()
 Destructor. More...
 
 declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh),(name, mesh))
 
void transfer (edgeMesh &)
 Transfer the contents of the argument and annul the argument. More...
 
bool read (const fileName &, const word &ext)
 Read from file. Chooses reader based on explicit extension. More...
 
const pointFieldpoints () const
 Return points. More...
 
const edgeListedges () const
 Return edges. More...
 
const labelListListpointEdges () const
 Return edges. More...
 
label regions (labelList &edgeRegion) const
 Find connected regions. Set region number per edge. More...
 
virtual void clear ()
 Clear all storage. More...
 
virtual void reset (pointField &&points, edgeList &&edges)
 Reset primitive data (points, edges) More...
 
virtual void scalePoints (const scalar)
 Scale points. A non-positive factor is ignored. More...
 
virtual void mergeEdges ()
 Merge duplicate edges. More...
 
virtual void writeStats (Ostream &) const
 
void operator= (const edgeMesh &)
 
void operator= (edgeMesh &&)
 

Static Public Member Functions

static autoPtr< edgeMeshNew (const fileName &name)
 Read file and return surface. More...
 
static void write (const fileName &, const edgeMesh &)
 Write surface mesh components by proxy. More...
 
- Static Public Member Functions inherited from edgeMesh
static bool canRead (const fileName &, const bool verbose=false)
 Can we read this file format? More...
 
static bool canReadType (const word &ext, const bool verbose=false)
 Can we read this file format? More...
 
static bool canWriteType (const word &ext, const bool verbose=false)
 Can we write this file format type? More...
 
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static autoPtr< edgeMeshNew (const fileName &, const word &ext)
 Select constructed from filename (explicit extension) More...
 
static autoPtr< edgeMeshNew (const fileName &)
 Select constructed from filename (implicit extension) More...
 
static void write (const fileName &, const edgeMesh &)
 Write to file. More...
 
- Static Public Member Functions inherited from edgeMeshFormatsCore
static bool checkSupport (const wordHashSet &available, const word &ext, const bool verbose, const word &functionName)
 ... More...
 

Static Protected Member Functions

static void writeHeader (Ostream &, const pointField &)
 Write header information with points. More...
 
static void writeEdges (Ostream &, const UList< edge > &)
 Write edges. More...
 
- Static Protected Member Functions inherited from edgeMeshFormatsCore
static string getLineNoComment (IFstream &)
 Read non-comment line. More...
 

Additional Inherited Members

- Static Public Attributes inherited from edgeMeshFormatsCore
static word nativeExt
 The file extension corresponding to 'native' edge format. More...
 
- Protected Member Functions inherited from edgeMesh
pointFieldstoredPoints ()
 Non-const access to global points. More...
 
edgeListstoredEdges ()
 Non-const access to the edges. More...
 

Detailed Description

Provide a means of writing VTK legacy format.

Source files

Definition at line 50 of file VTKedgeFormat.H.

Constructor & Destructor Documentation

◆ VTKedgeFormat() [1/2]

VTKedgeFormat ( const fileName filename)

Construct from file name.

Definition at line 78 of file VTKedgeFormat.C.

References Foam::read().

Referenced by VTKedgeFormat::New().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VTKedgeFormat() [2/2]

VTKedgeFormat ( const VTKedgeFormat )
delete

Disallow default bitwise copy construction.

◆ ~VTKedgeFormat()

virtual ~VTKedgeFormat ( )
inlinevirtual

Destructor.

Definition at line 94 of file VTKedgeFormat.H.

Member Function Documentation

◆ writeHeader()

void writeHeader ( Ostream os,
const pointField pointLst 
)
staticprotected

Write header information with points.

Definition at line 35 of file VTKedgeFormat.C.

References clock::dateTime(), forAll, Foam::nl, List< T >::size(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ writeEdges()

void writeEdges ( Ostream os,
const UList< edge > &  edgeLst 
)
staticprotected

Write edges.

Definition at line 59 of file VTKedgeFormat.C.

References Foam::e, forAll, Foam::nl, and UList< T >::size().

Here is the call graph for this function:

◆ New()

static autoPtr<edgeMesh> New ( const fileName name)
inlinestatic

Read file and return surface.

Definition at line 84 of file VTKedgeFormat.H.

References Foam::name(), and VTKedgeFormat::VTKedgeFormat().

Here is the call graph for this function:

◆ write() [1/2]

void write ( const fileName filename,
const edgeMesh eMesh 
)
static

Write surface mesh components by proxy.

Definition at line 152 of file VTKedgeFormat.C.

References edgeMesh::edges(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOstream::good(), edgeMesh::points(), and Foam::vtkWriteOps::writeHeader().

Referenced by VTKedgeFormat::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

bool read ( const fileName filename)
virtual

Read from file.

Reimplemented from edgeMesh.

Definition at line 89 of file VTKedgeFormat.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, IOstream::good(), vtkUnstructuredReader::lines(), IOobject::NO_READ, IOobject::NO_WRITE, vtkUnstructuredReader::points(), and List< T >::size().

Here is the call graph for this function:

◆ write() [2/2]

virtual void write ( const fileName name) const
inlinevirtual

Write object file.

Reimplemented from edgeMesh.

Definition at line 107 of file VTKedgeFormat.H.

References Foam::name(), and VTKedgeFormat::write().

Here is the call graph for this function:

◆ operator=()

void operator= ( const VTKedgeFormat )
delete

Disallow default bitwise assignment.


The documentation for this class was generated from the following files: