cee::ug::PartHitItems
-
class PartHitItems
Class for storing identifier for a part (state id, geometry id, part id/index) and optionally also a list of element indices within this part.
This class is used to store the result of a regionIntersect() done on an UnstructGridModel.
See also
Ray and UnstructGridModel
Public Functions
-
PartHitItems()
Constructs an empty part hit items.
-
PartHitItems(const PartHitItems &other)
Copy constructor.
-
PartHitItems &operator=(const PartHitItems &other)
Assignment operator.
-
int stateId() const
Returns the state id of the hit item.
-
void setStateId(int stateId)
Sets the state id.
-
size_t frameIndex() const
Returns the frame index of the hit item.
-
void setFrameIndex(size_t frameIndex)
Sets the frame index of the hit item.
-
size_t geometryIndex() const
Returns the global geometry index, used to e.g. get the geometry from a DataState.
-
void setGeometryIndex(size_t geometryIndex)
Sets the geometry index.
-
int partId() const
Returns the part id of the hit item.
-
void setPartId(int itemId)
Sets the part id.
-
size_t partIndex() const
Returns the index of the part withing the geometry.
-
void setPartIndex(size_t partIndex)
Sets the index of of the part within the geometry.
-
const std::vector<unsigned int> &elementIndices() const
Returns the element indices stored in this items.
Zero-based indices for the elements in the specified part.
-
void setElementIndices(const std::vector<unsigned int> &indices)
Sets the element indices for this item.
Zero-based indices for the elements in the specified part.
-
size_t elementCount() const
Returns the number of element indices stored in this item.
-
PartHitItems()