Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
STLsurfaceFormatCore Class Reference

Internal class used by the STLsurfaceFormat. More...

Collaboration diagram for STLsurfaceFormatCore:
Collaboration graph
[legend]

Public Member Functions

 STLsurfaceFormatCore (const fileName &)
 Read from file, filling in the information. More...
 
 ~STLsurfaceFormatCore ()
 Destructor. More...
 
bool sorted () const
 File read was already sorted. More...
 
void clear ()
 Flush all values. More...
 
pointFieldpoints ()
 Return full access to the points. More...
 
List< label > & zoneIds ()
 Return full access to the zoneIds. More...
 
List< word > & names ()
 The list of solid names in the order of their first appearance. More...
 
List< label > & sizes ()
 The list of solid sizes in the order of their first appearance. More...
 

Static Public Member Functions

static void writeHeaderBINARY (ostream &, unsigned int)
 Write "STL binary file" and number of triangles to stream. More...
 

Static Public Attributes

static const unsigned int headerSize = 80
 The number of bytes in the STL binary header. More...
 

Private Member Functions

 STLsurfaceFormatCore (const STLsurfaceFormatCore &)
 Disallow default bitwise copy construct. More...
 
void operator= (const STLsurfaceFormatCore &)
 Disallow default bitwise assignment. More...
 
bool readASCII (istream &, const off_t)
 Read ASCII. More...
 
bool readBINARY (istream &, const off_t)
 Read BINARY. More...
 

Static Private Member Functions

static int detectBINARY (const fileName &)
 Determine the file type. More...
 

Private Attributes

bool sorted_
 
pointField points_
 The points supporting the facets. More...
 
List< labelzoneIds_
 The zones associated with the faces. More...
 
List< wordnames_
 The solid names, in the order of their first appearance. More...
 
List< labelsizes_
 The solid count, in the order of their first appearance. More...
 

Detailed Description

Internal class used by the STLsurfaceFormat.

Source files

Definition at line 54 of file STLsurfaceFormatCore.H.

Constructor & Destructor Documentation

◆ STLsurfaceFormatCore() [1/2]

Disallow default bitwise copy construct.

◆ STLsurfaceFormatCore() [2/2]

STLsurfaceFormatCore ( const fileName filename)

Read from file, filling in the information.

Definition at line 210 of file STLsurfaceFormatCore.C.

References Foam::fileSize().

Here is the call graph for this function:

◆ ~STLsurfaceFormatCore()

Destructor.

Definition at line 244 of file STLsurfaceFormatCore.C.

Member Function Documentation

◆ operator=()

void operator= ( const STLsurfaceFormatCore )
private

Disallow default bitwise assignment.

◆ detectBINARY()

int detectBINARY ( const fileName filename)
staticprivate

Determine the file type.

Definition at line 44 of file STLsurfaceFormatCore.C.

References Foam::fileSize(), and IFstream::stdStream().

Here is the call graph for this function:

◆ readASCII()

bool readASCII ( istream &  ,
const  off_t 
)
private

Read ASCII.

◆ readBINARY()

bool readBINARY ( istream &  is,
const off_t  dataFileSize 
)
private

◆ writeHeaderBINARY()

void writeHeaderBINARY ( ostream &  os,
unsigned int  nTris 
)
static

Write "STL binary file" and number of triangles to stream.

Definition at line 251 of file STLsurfaceFormatCore.C.

◆ sorted()

bool sorted ( ) const
inline

File read was already sorted.

Definition at line 118 of file STLsurfaceFormatCore.H.

References STLsurfaceFormatCore::sorted_.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ clear()

void clear ( )
inline

◆ points()

pointField& points ( )
inline

Return full access to the points.

Definition at line 134 of file STLsurfaceFormatCore.H.

References STLsurfaceFormatCore::points_.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ zoneIds()

List<label>& zoneIds ( )
inline

Return full access to the zoneIds.

Definition at line 140 of file STLsurfaceFormatCore.H.

References STLsurfaceFormatCore::zoneIds_.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ names()

List<word>& names ( )
inline

The list of solid names in the order of their first appearance.

Definition at line 146 of file STLsurfaceFormatCore.H.

References STLsurfaceFormatCore::names_.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

◆ sizes()

List<label>& sizes ( )
inline

The list of solid sizes in the order of their first appearance.

Definition at line 152 of file STLsurfaceFormatCore.H.

References STLsurfaceFormatCore::sizes_.

Referenced by STLsurfaceFormat< Face >::read().

Here is the caller graph for this function:

Field Documentation

◆ sorted_

bool sorted_
private

◆ points_

pointField points_
private

The points supporting the facets.

Definition at line 61 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::points().

◆ zoneIds_

List<label> zoneIds_
private

The zones associated with the faces.

Definition at line 64 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::zoneIds().

◆ names_

List<word> names_
private

The solid names, in the order of their first appearance.

Definition at line 67 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::names().

◆ sizes_

List<label> sizes_
private

The solid count, in the order of their first appearance.

Definition at line 70 of file STLsurfaceFormatCore.H.

Referenced by STLsurfaceFormatCore::clear(), and STLsurfaceFormatCore::sizes().

◆ headerSize

const unsigned int headerSize = 80
static

The number of bytes in the STL binary header.

Definition at line 96 of file STLsurfaceFormatCore.H.


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