cee::app::Parts Class Reference

Class that provides access by index or by name pattern to all parts of the current UnstructGridModel. More...

Public Member Functions

size_t count () const
 Returns number of parts. More...
 
cee::ug::DataPartcurrent () const
 Returns current part. More...
 
cee::ug::PartInfo currentInfo () const
 Returns current part info. More...
 
void setCurrent (cee::ug::DataPart *part)
 Sets part to current. More...
 
size_t currentIndex () const
 Returns current index. More...
 
void setCurrentIndex (size_t index)
 Sets current index. More...
 
size_t indexOf (const cee::ug::DataPart *part) const
 Returns index of part. More...
 
cee::ug::DataPartget (size_t index) const
 Returns part at given index. More...
 
cee::ug::DataPartget (const cee::Str &wildcard) const
 Returns the Part matching the search string wildcard. More...
 
cee::ug::PartInfo info (size_t index) const
 Returns the part info for the given index. More...
 
cee::ug::PartInfo info (cee::ug::DataPart *part) const
 Returns the part info for the specified part. More...
 
size_t geometryIndex (size_t index) const
 Returns the geometry index of the part at the specified index. More...
 
size_t geometryIndex (const cee::ug::DataPart *part) const
 Returns the geometry index of the specified part. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 

Static Public Member Functions

static Partsinstance ()
 Parts is a singleton. Always access Parts using this instance() More...
 
Inheritance diagram for cee::app::Parts:
cee::RefCountedObject

Detailed Description

Class that provides access by index or by name pattern to all parts of the current UnstructGridModel.

Member Function Documentation

size_t cee::app::Parts::count ( ) const

Returns number of parts.

DataPart * cee::app::Parts::current ( ) const

Returns current part.

size_t cee::app::Parts::currentIndex ( ) const

Returns current index.

PartInfo cee::app::Parts::currentInfo ( ) const

Returns current part info.

size_t cee::app::Parts::geometryIndex ( size_t  index) const

Returns the geometry index of the part at the specified index.

size_t cee::app::Parts::geometryIndex ( const cee::ug::DataPart part) const

Returns the geometry index of the specified part.

DataPart * cee::app::Parts::get ( size_t  index) const

Returns part at given index.

DataPart * cee::app::Parts::get ( const cee::Str wildcard) const

Returns the Part matching the search string wildcard.

Return NULL if none found

size_t cee::app::Parts::indexOf ( const cee::ug::DataPart part) const

Returns index of part.

PartInfo cee::app::Parts::info ( size_t  index) const

Returns the part info for the given index.

PartInfo cee::app::Parts::info ( cee::ug::DataPart part) const

Returns the part info for the specified part.

Parts * cee::app::Parts::instance ( )
static

Parts is a singleton. Always access Parts using this instance()

void cee::app::Parts::setCurrent ( cee::ug::DataPart part)

Sets part to current.

void cee::app::Parts::setCurrentIndex ( size_t  index)

Sets current index.