A ResultsQueryResultPosition object contains the Position and the ResultsQueryResult of a specific value. It holds the partId, the itemId (either nodeId or elementId) More...
Public Member Functions | |
ResultsQueryResultPosition () | |
Constructs and empty results query result position. More... | |
ResultsQueryResultPosition (const ResultsQueryResultPosition &other) | |
Constructs a result position as a copy of other. More... | |
ResultsQueryResultPosition & | operator= (const ResultsQueryResultPosition &other) |
Assigns other to this position and returns a reference to this position. More... | |
bool | operator== (const ResultsQueryResultPosition &other) const |
Returns true if two postions are equal. More... | |
void | initialize (Vec3d position, const double *resultData, size_t dimension, int partId, int itemId, ResultMapping mapping) |
Initializes this position with the given parameters. More... | |
double | scalar () const |
Returns the scalar. More... | |
Vec3d | vector () const |
Returns the vector. More... | |
SymmetricTensor | tensor () const |
Returns the tensor. More... | |
const double * | rawValuePointer () const |
Returns a raw pointer to the result positions. More... | |
void | setRawPointer (const double *resultData, size_t dataSize) |
Sets the result data as a raw pointer. More... | |
size_t | resultSize () const |
Returns the size of the result. More... | |
Vec3d | position () const |
Returns the node coordinate position or element centroid depending on the resultMappingType. More... | |
void | setPosition (const Vec3d &position) |
Sets the position. More... | |
int | partId () const |
Returns the part id. More... | |
void | setPartId (int partId) |
Sets the part id. More... | |
int | itemId () const |
Returns the item id. More... | |
void | setItemId (int itemId) |
Sets the item id. More... | |
ResultMapping | mapping () const |
Returns the result mapping type. More... | |
void | setMapping (ResultMapping mapping) const |
Sets the results mapping type. More... | |
ResultType | type () const |
Returns the result type. More... | |
A ResultsQueryResultPosition object contains the Position and the ResultsQueryResult of a specific value. It holds the partId, the itemId (either nodeId or elementId)
if it is Node result -> the Position is the nodeCoordinate if it is Element, ElementNodes or ElementSurface result -> the position is the element centroid
if it is Node result -> the referenceValue is the nodeResult if it is Element result -> the referenceValue is the ElementResult if it is ElementNode/ElementSurface -> the reference value is the average in the element
Example:
cee::ug::ResultsQueryResultPosition::ResultsQueryResultPosition | ( | ) |
Constructs and empty results query result position.
cee::ug::ResultsQueryResultPosition::ResultsQueryResultPosition | ( | const ResultsQueryResultPosition & | other | ) |
Constructs a result position as a copy of other.
void cee::ug::ResultsQueryResultPosition::initialize | ( | Vec3d | position, |
const double * | resultData, | ||
size_t | dimension, | ||
int | partId, | ||
int | itemId, | ||
ResultMapping | mapping | ||
) |
Initializes this position with the given parameters.
int cee::ug::ResultsQueryResultPosition::itemId | ( | ) | const |
Returns the item id.
ResultMapping cee::ug::ResultsQueryResultPosition::mapping | ( | ) | const |
Returns the result mapping type.
ResultsQueryResultPosition & cee::ug::ResultsQueryResultPosition::operator= | ( | const ResultsQueryResultPosition & | other | ) |
Assigns other to this position and returns a reference to this position.
bool cee::ug::ResultsQueryResultPosition::operator== | ( | const ResultsQueryResultPosition & | other | ) | const |
Returns true if two postions are equal.
int cee::ug::ResultsQueryResultPosition::partId | ( | ) | const |
Returns the part id.
Vec3d cee::ug::ResultsQueryResultPosition::position | ( | ) | const |
Returns the node coordinate position or element centroid depending on the resultMappingType.
const double * cee::ug::ResultsQueryResultPosition::rawValuePointer | ( | ) | const |
Returns a raw pointer to the result positions.
size_t cee::ug::ResultsQueryResultPosition::resultSize | ( | ) | const |
Returns the size of the result.
double cee::ug::ResultsQueryResultPosition::scalar | ( | ) | const |
Returns the scalar.
void cee::ug::ResultsQueryResultPosition::setItemId | ( | int | itemId | ) |
Sets the item id.
void cee::ug::ResultsQueryResultPosition::setMapping | ( | ResultMapping | mapping | ) | const |
Sets the results mapping type.
void cee::ug::ResultsQueryResultPosition::setPartId | ( | int | partId | ) |
Sets the part id.
void cee::ug::ResultsQueryResultPosition::setPosition | ( | const Vec3d & | position | ) |
Sets the position.
void cee::ug::ResultsQueryResultPosition::setRawPointer | ( | const double * | resultData, |
size_t | dataSize | ||
) |
Sets the result data as a raw pointer.
SymmetricTensor cee::ug::ResultsQueryResultPosition::tensor | ( | ) | const |
Returns the tensor.
ResultType cee::ug::ResultsQueryResultPosition::type | ( | ) | const |
Returns the result type.
Vec3d cee::ug::ResultsQueryResultPosition::vector | ( | ) | const |
Returns the vector.