cee::ug::DataElementSetItem
-
class DataElementSetItem
This class identifies an element within an UnstructGrid model and is used as an item in a DataElementSet.
An element is uniquely identified within a UnstructGrid DataSource by three numbers:
Geometry id: id of the corresponding DataGeometry as returned by DataGeometry::id()
Part id: id of the corresponding DataPart of the DataGeometry as returned by DataPart::partId()
Element index: index of the element in the DataElements of the DataPart
See also
Public Functions
-
DataElementSetItem()
Constructs and empty item.
-
DataElementSetItem(int geometryId, int partId, size_t elementIndex)
Constructs a set item with the given data.
-
DataElementSetItem(const DataElementSetItem &other)
Copy constructor.
-
DataElementSetItem &operator=(const DataElementSetItem &other)
Assignment operator.
-
bool operator==(const DataElementSetItem &rhs) const
Returns true if this set item is equal to the given rhs item.
-
bool operator!=(const DataElementSetItem &rhs) const
Returns true if this set item is not equal to the given rhs item.
-
int geometryId() const
Returns the geometry id of this set item.
See also
-
void setGeometryId(int geometryId)
Sets the geometry id of this set item.
This id must correspond to the DataGeometry::id() of the geometry of the element
See also
-
int partId() const
Returns the part id of this set item.
See also
-
void setPartId(int partId)
Sets the part id of this set item.
This id must correspond to the DataPart::partId() of the part of the element
See also
-
size_t elementIndex() const
Returns the element index or the set item.
-
void setElementIndex(size_t elementIndex)
Sets the element index of the set item.
The index must correspond to the index of the element in the DataElements object identified by the geometry and part id.