Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
STLAsciiParse Class Reference

Internal class used when parsing STL ASCII format. More...

Inheritance diagram for STLAsciiParse:
Inheritance graph
[legend]
Collaboration diagram for STLAsciiParse:
Collaboration graph
[legend]

Public Member Functions

 STLAsciiParse (const label approxNpoints)
 
void clear ()
 
bool sorted () const
 
DynamicList< STLpoint > & points ()
 
DynamicList< label > & facets ()
 
DynamicList< word > & names ()
 
DynamicList< label > & sizes ()
 

Protected Member Functions

void beginSolid (word solidName)
 
void beginFacet ()
 
void resetVertex ()
 
bool addVertexComponent (float val)
 
bool addVertexComponent (const char *text)
 
void endFacet ()
 
 STLAsciiParse (const STLAsciiParse &)=delete
 
void operator= (const STLAsciiParse &)=delete
 

Protected Attributes

bool sorted_
 
label groupId_
 
label lineNum_
 
int nFacetPoints_
 
int nVertexCmpt_
 
STLpoint currVertex_
 
DynamicList< STLpointpoints_
 
DynamicList< label > facets_
 
DynamicList< wordnames_
 
DynamicList< label > sizes_
 
HashTable< label > nameLookup_
 

Detailed Description

Internal class used when parsing STL ASCII format.

Source files

Definition at line 50 of file STLAsciiParse.H.

Constructor & Destructor Documentation

◆ STLAsciiParse() [1/2]

STLAsciiParse ( const STLAsciiParse )
protecteddelete

◆ STLAsciiParse() [2/2]

STLAsciiParse ( const label  approxNpoints)
inline

Definition at line 126 of file STLAsciiParseI.H.

Member Function Documentation

◆ beginSolid()

void beginSolid ( word  solidName)
inlineprotected

◆ beginFacet()

void beginFacet ( )
inlineprotected

Definition at line 56 of file STLAsciiParseI.H.

Referenced by STLAsciiParseManual::execute().

Here is the caller graph for this function:

◆ resetVertex()

void resetVertex ( )
inlineprotected

Definition at line 63 of file STLAsciiParseI.H.

◆ addVertexComponent() [1/2]

bool addVertexComponent ( float  val)
inlineprotected

Definition at line 69 of file STLAsciiParseI.H.

Referenced by STLAsciiParseManual::execute().

Here is the caller graph for this function:

◆ addVertexComponent() [2/2]

bool addVertexComponent ( const char *  text)
inlineprotected

Definition at line 84 of file STLAsciiParseI.H.

◆ endFacet()

void endFacet ( )
inlineprotected

Definition at line 100 of file STLAsciiParseI.H.

Referenced by STLAsciiParseManual::execute().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const STLAsciiParse )
protecteddelete

◆ clear()

void clear ( )
inline

Definition at line 140 of file STLAsciiParseI.H.

◆ sorted()

bool sorted ( ) const
inline

Definition at line 157 of file STLAsciiParseI.H.

◆ points()

Foam::DynamicList< Foam::STLpoint > & points ( )
inline

Definition at line 163 of file STLAsciiParseI.H.

◆ facets()

Foam::DynamicList< Foam::label > & facets ( )
inline

Definition at line 169 of file STLAsciiParseI.H.

◆ names()

Foam::DynamicList< Foam::word > & names ( )
inline

Definition at line 175 of file STLAsciiParseI.H.

◆ sizes()

Foam::DynamicList< Foam::label > & sizes ( )
inline

Definition at line 181 of file STLAsciiParseI.H.

Member Data Documentation

◆ sorted_

bool sorted_
protected

Definition at line 56 of file STLAsciiParse.H.

Referenced by STLAsciiParse::beginSolid().

◆ groupId_

label groupId_
protected

Definition at line 57 of file STLAsciiParse.H.

Referenced by STLAsciiParse::beginSolid().

◆ lineNum_

label lineNum_
protected

Definition at line 58 of file STLAsciiParse.H.

Referenced by STLAsciiParseManual::execute().

◆ nFacetPoints_

int nFacetPoints_
protected

Definition at line 61 of file STLAsciiParse.H.

◆ nVertexCmpt_

int nVertexCmpt_
protected

Definition at line 64 of file STLAsciiParse.H.

◆ currVertex_

STLpoint currVertex_
protected

Definition at line 67 of file STLAsciiParse.H.

◆ points_

DynamicList<STLpoint> points_
protected

Definition at line 69 of file STLAsciiParse.H.

◆ facets_

DynamicList<label> facets_
protected

Definition at line 70 of file STLAsciiParse.H.

◆ names_

DynamicList<word> names_
protected

Definition at line 71 of file STLAsciiParse.H.

Referenced by STLAsciiParse::beginSolid().

◆ sizes_

DynamicList<label> sizes_
protected

Definition at line 72 of file STLAsciiParse.H.

Referenced by STLAsciiParse::beginSolid().

◆ nameLookup_

HashTable<label> nameLookup_
protected

Definition at line 73 of file STLAsciiParse.H.

Referenced by STLAsciiParse::beginSolid().


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