cee::app::Parts

class Parts : public RefCountedObject

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

Public Functions

size_t count() const

Returns number of parts.

cee::ug::DataPart *current() const

Returns current part.

cee::ug::PartInfo currentInfo() const

Returns current part info.

void setCurrent(cee::ug::DataPart *part)

Sets part to current.

size_t currentIndex() const

Returns current index.

void setCurrentIndex(size_t index)

Sets current index.

size_t indexOf(const cee::ug::DataPart *part) const

Returns index of part.

cee::ug::DataPart *get(size_t index) const

Returns part at given index.

cee::ug::DataPart *get(const cee::Str &wildcard) const

Returns the Part matching the search string wildcard.

Return NULL if none found

cee::ug::PartInfo info(size_t index) const

Returns the part info for the given index.

cee::ug::PartInfo info(cee::ug::DataPart *part) const

Returns the part info for the specified part.

size_t geometryIndex(size_t index) const

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

size_t geometryIndex(const cee::ug::DataPart *part) const

Returns the geometry index of the specified part.

Public Static Functions

static Parts *instance()

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