libsurf
Programmer's Documentation

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

Detailed Description

Container for components.

A plain array of pointers to AsyComponent objects grouped with global mesh generation parameters.

Todo:
Move to sumo
See Also
AsyComponent

#include <assembly.h>

Collaboration diagram for CmpAssembly:
[legend]

Public Member Functions

 CmpAssembly ()
 empty assembly
 
virtual ~CmpAssembly ()
 meant as a base class
 
const std::string & name () const
 access name
 
void rename (const std::string &s)
 change name
 
uint ncomponents () const
 number of components
 
AsyComponentPtr & component (uint k)
 access component
 
const AsyComponentPtr & component (uint k) const
 access component
 
uint find (const std::string &s) const
 return the index of a component name, or NotFound
 
virtual uint append (const AsyComponentPtr &c)
 add a component, return index
 
virtual void erase (uint k)
 erase a component by index
 
uint generateMesh (const MgProgressPtr &prog, ThreadPool *pool=0)
 generate surface mesh
 
const TriMeshmesh () const
 access mesh later
 
virtual XmlElement toXml () const
 convert to XML
 
virtual void fromXml (const XmlElement &xe)
 convert from XML
 

Protected Member Functions

virtual AsyComponentPtr createFromXml (const XmlElement &xe) const
 

Protected Attributes

std::string id
 assembly name
 
AsyComponentArray components
 components
 
TriMesh msh
 last surface mesh
 
Real ppMaxPhi
 global mesh postprocessing options
 
Real ppMaxStretch
 
Real ppMergeTol
 
uint ppIter
 number of postprocessing iterations
 

The documentation for this class was generated from the following files:
Generated on Wed Jan 19 2022 03:03:16 for libsurf by   doxygen 1.8.5