LuciadCPillar 2023.1.04
|
Contains information about (parts of) features hit by a Query, returned by Map::queryFeatures
.
More...
#include <luciad/maps/IMapQueryFeaturesCallback.h>
Public Member Functions | |
MapQueryFeaturesResult (LayerFeatureId featureId, std::optional< Coordinate > mapTouchPoint, bool overlay) | |
Create a MapQueryFeaturesResult containing information about (part of) a touched feature. More... | |
bool | operator!= (const MapQueryFeaturesResult &rhs) const |
bool | operator== (const MapQueryFeaturesResult &rhs) const |
Public Attributes | |
LayerFeatureId | featureId |
Object that has been hit by the query. More... | |
std::optional< Coordinate > | mapTouchPoint |
Location where a part of the feature has been touched in the Map reference. More... | |
bool | overlay = false |
When overlay is true, it means that the part of the feature that was touched is always painted on top of everything else. More... | |
Contains information about (parts of) features hit by a Query, returned by Map::queryFeatures
.
luciad::MapQueryFeaturesResult::MapQueryFeaturesResult | ( | LayerFeatureId | featureId, |
std::optional< Coordinate > | mapTouchPoint, | ||
bool | overlay | ||
) |
Create a MapQueryFeaturesResult containing information about (part of) a touched feature.
featureId | layer/feature that was touched. |
mapTouchPoint | location where the feature was touched. This parameter is optional: if absent, a screen space component (e.g. a label) has been hit. |
overlay | flag if the hit is drawn as an overlay and hence on top of other features. |
bool luciad::MapQueryFeaturesResult::operator!= | ( | const MapQueryFeaturesResult & | rhs | ) | const |
bool luciad::MapQueryFeaturesResult::operator== | ( | const MapQueryFeaturesResult & | rhs | ) | const |
LayerFeatureId luciad::MapQueryFeaturesResult::featureId |
Object that has been hit by the query.
std::optional<Coordinate> luciad::MapQueryFeaturesResult::mapTouchPoint |
Location where a part of the feature has been touched in the Map reference.
This field is optional:
labels
. Note that in that case, the overlay field will be true as well.bool luciad::MapQueryFeaturesResult::overlay = false |
When overlay is true, it means that the part of the feature that was touched is always painted on top of everything else.
This is currently the case for labels
.