cee::ug::ResultsQuery Class Reference

A query object to retrieve results from a given DataSource. More...

Public Member Functions

 ResultsQuery (DataSource *dataSource)
 Creates a query object from a data source. More...
 
bool scalars (int scalarId, int stateId, size_t geometryIndex, const std::vector< ResultsQueryItem > *items, std::vector< ResultsQueryResult > *results)
 Returns scalar results values for given items (nodes, elements). More...
 
bool vectors (int vectorId, int stateId, size_t geometryIndex, const std::vector< ResultsQueryItem > *items, std::vector< ResultsQueryResult > *results)
 Returns vector results values for given items (nodes, elements). More...
 
bool tensors (int tensorId, int stateId, size_t geometryIndex, const std::vector< ResultsQueryItem > *items, std::vector< ResultsQueryResult > *results)
 Returns vector results values for given items (nodes, elements). More...
 
bool minimumAndMaximumScalar (int scalarId, int stateId, size_t geometryIndex, ResultsQueryResultPosition *minScalarPositionAndResult, ResultsQueryResultPosition *maxScalarPositionAndResult)
 Search the minimum and maximum scalar value. Report its Position, Node/Element Id, part Id and values. More...
 
bool minimumScalars (size_t scalarsCount, int scalarId, int stateId, size_t geometryIndex, std::vector< ResultsQueryResultPosition > *minScalarPositionAndResults)
 Search the minimums scalar value. Report its Position, Node/Element Id, part Id and values. More...
 
bool maximumScalars (size_t scalarsCount, int scalarId, int stateId, size_t geometryIndex, std::vector< ResultsQueryResultPosition > *maxScalarPositionAndResults)
 Search the maximums scalar value. Report its Position, Node/Element Id, part Id and values. More...
 
bool minimumAndMaximumVector (int vectorId, int stateId, size_t geometryIndex, ResultsQueryResultPosition *minVectorPositionAndResult, ResultsQueryResultPosition *maxVectorPositionAndResult)
 Search the minimum and maximum vector value. Report its Position, Node/Element Id, part Id and values. More...
 
bool minimumVectors (size_t vectorsCount, int vectorId, int stateId, size_t geometryIndex, std::vector< ResultsQueryResultPosition > *minVectorPositionAndResults)
 Search the minimums vector value. Report its Position, Node/Element Id, part Id and values. More...
 
bool maximumVectors (size_t vectorsCount, int vectorId, int stateId, size_t geometryIndex, std::vector< ResultsQueryResultPosition > *maxVectorPositionAndResults)
 Search the maximums scalar value. Report its Position, Node/Element Id, part Id and values. More...
 

Detailed Description

A query object to retrieve results from a given DataSource.

Create the ResultsQuery by assigning its data source in the constructor, and the use its methods to retrieve results from it.

Classes related to ResultsQuery are ResultsQueryItem, which is used to define specific nodes or elements to perform the query on, and ResultsQueryResult, which is a container associated to one of the items and holds the values found by the query.

Constructor & Destructor Documentation

cee::ug::ResultsQuery::ResultsQuery ( DataSource dataSource)

Creates a query object from a data source.

Member Function Documentation

bool cee::ug::ResultsQuery::maximumScalars ( size_t  searchCounts,
int  scalarId,
int  stateId,
size_t  geometryIndex,
std::vector< ResultsQueryResultPosition > *  queryPositions 
)

Search the maximums scalar value. Report its Position, Node/Element Id, part Id and values.

searchCounts parameter determines how many values are going to be reported. The position reported depended on the result Mapping. If being a Node or ElementNode Result the position is the node Position For elements, the element centroid position is reported, ad for PER_ELEMENT_SURFACE result mapping the ElementSurfaceCentroid is reported

the ItemId whithin is expressed accordingly to the resul Mapping.

bool cee::ug::ResultsQuery::maximumVectors ( size_t  searchCounts,
int  vectorId,
int  stateId,
size_t  geometryIndex,
std::vector< ResultsQueryResultPosition > *  queryPositions 
)

Search the maximums scalar value. Report its Position, Node/Element Id, part Id and values.

searchCounts parameter determines how many values are going to be reported. The position reported depended on the result Mapping. If being a Node or ElementNode Result the position is the node Position For elements, the element centroid position is reported, ad for PER_ELEMENT_SURFACE result mapping the ElementSurfaceCentroid is reported

the ItemId whithin is expressed accordingly to the resul Mapping.

bool cee::ug::ResultsQuery::minimumAndMaximumScalar ( int  scalarId,
int  stateId,
size_t  geometryIndex,
ResultsQueryResultPosition minScalarPositionAndResult,
ResultsQueryResultPosition maxScalarPositionAndResult 
)

Search the minimum and maximum scalar value. Report its Position, Node/Element Id, part Id and values.

The position reported depended on the result Mapping. If being a Node or ElementNode Result the position is the node Position For elements, the element centroid position is reported, and for PER_ELEMENT_SURFACE result mapping the ElementSurfaceCentroid is reported

the ItemId whithin is expressed accordingly to the result Mapping.

bool cee::ug::ResultsQuery::minimumAndMaximumVector ( int  vectorId,
int  stateId,
size_t  geometryIndex,
ResultsQueryResultPosition minVectorPositionAndResult,
ResultsQueryResultPosition maxVectorPositionAndResult 
)

Search the minimum and maximum vector value. Report its Position, Node/Element Id, part Id and values.

The position reported depended on the result Mapping. If being a Node or ElementNode Result the position is the node Position For elements, the element centroid position is reported, ad for PER_ELEMENT_SURFACE result mapping the ElementSurfaceCentroid is reported

the ItemId whithin is expressed accordingly to the resul Mapping.

bool cee::ug::ResultsQuery::minimumScalars ( size_t  searchCounts,
int  scalarId,
int  stateId,
size_t  geometryIndex,
std::vector< ResultsQueryResultPosition > *  queryPositions 
)

Search the minimums scalar value. Report its Position, Node/Element Id, part Id and values.

searchCounts parameter determines how many values are going to be reported. The position reported depended on the result Mapping. If being a Node or ElementNode Result the position is the node Position For elements, the element centroid position is reported, ad for PER_ELEMENT_SURFACE result mapping the ElementSurfaceCentroid is reported

the ItemId whithin is expressed accordingly to the resul Mapping.

bool cee::ug::ResultsQuery::minimumVectors ( size_t  searchCounts,
int  vectorId,
int  stateId,
size_t  geometryIndex,
std::vector< ResultsQueryResultPosition > *  queryPositions 
)

Search the minimums vector value. Report its Position, Node/Element Id, part Id and values.

searchCounts parameter determines how many values are going to be reported. The position reported depended on the result Mapping. If being a Node or ElementNode Result the position is the node Position For elements, the element centroid position is reported, ad for PER_ELEMENT_SURFACE result mapping the ElementSurfaceCentroid is reported

the ItemId whithin is expressed accordingly to the resul Mapping.

bool cee::ug::ResultsQuery::scalars ( int  scalarId,
int  stateId,
size_t  geometryIndex,
const std::vector< ResultsQueryItem > *  items,
std::vector< ResultsQueryResult > *  results 
)

Returns scalar results values for given items (nodes, elements).

The items must be defined according to the mapping of the queried result: nodes for node-mapped results, or elements for element, element-node- or element-surface-mapped results

bool cee::ug::ResultsQuery::tensors ( int  tensorId,
int  stateId,
size_t  geometryIndex,
const std::vector< ResultsQueryItem > *  items,
std::vector< ResultsQueryResult > *  results 
)

Returns vector results values for given items (nodes, elements).

The items must be defined according to the mapping of the queried result: nodes for node-mapped results, or elements for element, element-node- or element-surface-mapped results

bool cee::ug::ResultsQuery::vectors ( int  vectorId,
int  stateId,
size_t  geometryIndex,
const std::vector< ResultsQueryItem > *  items,
std::vector< ResultsQueryResult > *  results 
)

Returns vector results values for given items (nodes, elements).

The items must be defined according to the mapping of the queried result: nodes for node-mapped results, or elements for element, element-node- or element-surface-mapped results