Public Member Functions | Static Public Member Functions | Private Member Functions
GTSsurfaceFormat< Face > Class Template Reference

Provide a means of reading/writing GTS format. The output is never sorted by zone and is only written if it consists entirely of triangles. More...

Inheritance diagram for GTSsurfaceFormat< Face >:
Inheritance graph
[legend]
Collaboration diagram for GTSsurfaceFormat< Face >:
Collaboration graph
[legend]

Public Member Functions

 GTSsurfaceFormat (const fileName &)
 Construct from file name. More...
 
virtual ~GTSsurfaceFormat ()
 Destructor. More...
 
virtual bool read (const fileName &)
 Read from file. More...
 
virtual void write (const fileName &name) const
 Write object. More...
 
- Public Member Functions inherited from UnsortedMeshedSurface< Face >
 UnsortedMeshedSurface ()
 Construct null. More...
 
 UnsortedMeshedSurface (const Xfer< pointField > &, const Xfer< List< Face > > &, const Xfer< List< label > > &zoneIds, const Xfer< surfZoneIdentifierList > &)
 Construct by transferring components. More...
 
 UnsortedMeshedSurface (const Xfer< pointField > &, const Xfer< List< Face > > &, const labelUList &zoneSizes=labelUList(), const UList< word > &zoneNames=UList< word >())
 Construct by transferring points, faces. More...
 
 UnsortedMeshedSurface (const UnsortedMeshedSurface< Face > &)
 Construct as copy. More...
 
 UnsortedMeshedSurface (const MeshedSurface< Face > &)
 Construct from a meshedSurface. More...
 
 UnsortedMeshedSurface (const Xfer< UnsortedMeshedSurface< Face > > &)
 Construct by transferring the contents from a UnsortedMeshedSurface. More...
 
 UnsortedMeshedSurface (const Xfer< MeshedSurface< Face > > &)
 Construct by transferring the contents from a meshedSurface. More...
 
 UnsortedMeshedSurface (const fileName &)
 Construct from file name (uses extension to determine type) More...
 
 UnsortedMeshedSurface (const fileName &, const word &)
 Construct from file name (uses extension to determine type) More...
 
 UnsortedMeshedSurface (const Time &, const word &surfName="")
 Construct from objectRegistry and a named surface. More...
 
 UnsortedMeshedSurface ()
 
 UnsortedMeshedSurface (const Xfer< pointField > &pointLst, const Xfer< List< Face > > &faceLst, const Xfer< List< label > > &zoneIds, const Xfer< surfZoneIdentifierList > &zoneTofc)
 
 UnsortedMeshedSurface (const Xfer< pointField > &pointLst, const Xfer< List< Face > > &faceLst, const labelUList &zoneSizes, const UList< word > &zoneNames)
 
 UnsortedMeshedSurface (const UnsortedMeshedSurface< Face > &surf)
 
 UnsortedMeshedSurface (const MeshedSurface< Face > &surf)
 
 UnsortedMeshedSurface (const Xfer< UnsortedMeshedSurface< Face > > &surf)
 
 UnsortedMeshedSurface (const Xfer< MeshedSurface< Face > > &surf)
 
 UnsortedMeshedSurface (const fileName &name, const word &ext)
 
 UnsortedMeshedSurface (const fileName &name)
 
 UnsortedMeshedSurface (const Time &t, const word &surfName)
 
void setSize (const label)
 Reset size of face and zone list. More...
 
 TypeName ("UnsortedMeshedSurface")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, UnsortedMeshedSurface, fileExtension,(const fileName &name),(name))
 
virtual ~UnsortedMeshedSurface ()
 Destructor. More...
 
 declareMemberFunctionSelectionTable (void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf),(name, surf))
 
void write (const Time &, const word &surfName="") const
 Write to database. More...
 
label size () const
 The surface size is the number of faces. More...
 
const List< label > & zoneIds () const
 Return const access to the zone ids. More...
 
const List< surfZoneIdentifier > & zoneToc () const
 Return const access to the zone table-of-contents. More...
 
surfZoneList sortedZones (labelList &faceMap) const
 Sort faces according to zoneIds. More...
 
void setOneZone ()
 Set zones to 0 and set a single zone. More...
 
void setZones (const surfZoneList &)
 Set zone ids and zones. More...
 
void setZones (const labelUList &sizes, const UList< word > &names)
 Set zone ids and zones. More...
 
void setZones (const labelUList &sizes)
 Set zone ids and zones with default names. More...
 
virtual void clear ()
 Clear all storage. More...
 
UnsortedMeshedSurface subsetMesh (const labelHashSet &include, labelList &pointMap, labelList &faceMap) const
 Return new surface. More...
 
UnsortedMeshedSurface subsetMesh (const labelHashSet &include) const
 Return new surface. More...
 
virtual void reset (const Xfer< pointField > &, const Xfer< List< Face > > &, const Xfer< List< label > > &zoneIds)
 Transfer components (points, faces, zone ids). More...
 
virtual void reset (const Xfer< List< point > > &, const Xfer< List< Face > > &, const Xfer< List< label > > &zoneIds)
 Transfer components (points, faces, zone ids). More...
 
void transfer (UnsortedMeshedSurface< Face > &)
 Transfer the contents of the argument and annul the argument. More...
 
void transfer (MeshedSurface< Face > &)
 Transfer the contents of the argument and annul the argument. More...
 
Xfer< UnsortedMeshedSurface< Face > > xfer ()
 Transfer contents to the Xfer container. More...
 
bool read (const fileName &, const word &ext)
 Read from file. Chooses reader based on explicit extension. More...
 
void operator= (const UnsortedMeshedSurface< Face > &)
 
 operator MeshedSurfaceProxy< Face > () const
 Conversion operator to MeshedSurfaceProxy. More...
 

Static Public Member Functions

static autoPtr< UnsortedMeshedSurface< Face > > New (const fileName &name)
 Read file and return surface. More...
 
static void write (const fileName &, const MeshedSurface< Face > &)
 Write MeshedSurface. More...
 
static void write (const fileName &, const UnsortedMeshedSurface< Face > &)
 Write UnsortedMeshedSurface, the output remains unsorted. More...
 
- Static Public Member Functions inherited from UnsortedMeshedSurface< Face >
static bool canReadType (const word &ext, const bool verbose=false)
 Can we read this file format? More...
 
static bool canRead (const fileName &, 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? More...
 
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static autoPtr< UnsortedMeshedSurfaceNew (const fileName &, const word &ext)
 Select constructed from filename (explicit extension) More...
 
static autoPtr< UnsortedMeshedSurfaceNew (const fileName &)
 Select constructed from filename (implicit extension) More...
 
static void write (const fileName &, const UnsortedMeshedSurface< Face > &)
 Write to file. More...
 

Private Member Functions

 GTSsurfaceFormat (const GTSsurfaceFormat< Face > &)
 Disallow default bitwise copy construct. More...
 
void operator= (const GTSsurfaceFormat< Face > &)
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Public Types inherited from UnsortedMeshedSurface< Face >
typedef Face FaceType
 Face type used. More...
 
- Protected Member Functions inherited from UnsortedMeshedSurface< Face >
List< label > & storedZoneIds ()
 Return non-const access to the zone Ids. More...
 
List< surfZoneIdentifier > & storedZoneToc ()
 Return non-const access to the zone table-of-contents. More...
 
virtual void remapFaces (const labelUList &faceMap)
 Set new zones from faceMap. More...
 

Detailed Description

template<class Face>
class Foam::fileFormats::GTSsurfaceFormat< Face >

Provide a means of reading/writing GTS format. The output is never sorted by zone and is only written if it consists entirely of triangles.

Source files

Definition at line 55 of file GTSsurfaceFormat.H.

Constructor & Destructor Documentation

◆ GTSsurfaceFormat() [1/2]

GTSsurfaceFormat ( const GTSsurfaceFormat< Face > &  )
private

Disallow default bitwise copy construct.

◆ GTSsurfaceFormat() [2/2]

GTSsurfaceFormat ( const fileName filename)

Construct from file name.

Definition at line 38 of file GTSsurfaceFormat.C.

References Foam::read().

Here is the call graph for this function:

◆ ~GTSsurfaceFormat()

virtual ~GTSsurfaceFormat ( )
inlinevirtual

Destructor.

Definition at line 89 of file GTSsurfaceFormat.H.

Member Function Documentation

◆ operator=()

void operator= ( const GTSsurfaceFormat< Face > &  )
private

Disallow default bitwise assignment.

◆ New()

static autoPtr<UnsortedMeshedSurface<Face> > New ( const fileName name)
inlinestatic

Read file and return surface.

Definition at line 79 of file GTSsurfaceFormat.H.

References Foam::name().

Here is the call graph for this function:

◆ write() [1/3]

void write ( const fileName filename,
const MeshedSurface< Face > &  surf 
)
static

◆ write() [2/3]

void write ( const fileName filename,
const UnsortedMeshedSurface< Face > &  surf 
)
static

◆ read()

bool read ( const fileName filename)
virtual

Read from file.

Reimplemented from UnsortedMeshedSurface< Face >.

Definition at line 50 of file GTSsurfaceFormat.C.

References IOstream::bad(), clear(), edge::commonVertex(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, IOstream::good(), Foam::name(), Foam::nl, nPoints, edge::otherVertex(), List::setSize(), triFace(), x, and y.

Here is the call graph for this function:

◆ write() [3/3]

virtual void write ( const fileName name) const
inlinevirtual

Write object.

Reimplemented from UnsortedMeshedSurface< Face >.

Definition at line 105 of file GTSsurfaceFormat.H.

References Foam::name(), and GTSsurfaceFormat< Face >::write().

Here is the call graph for this function:

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