|
Maps SDK for C++ 1.0.0
|
Marker collection render settings. More...


Public Types | |
| using | Options |
| The render options. | |
Public Member Functions | |
| MarkerCollectionRenderSettings (const Image &img=Image(kDefValue), int pointsGroupingZLevel=kDefValue, const Image &lowGImg=Image(kDefValue), int lowGCount=50, const Image &medGImg=Image(kDefValue), int medGCount=300, const Image &highGImg=Image(kDefValue)) | |
| Constructor for MarkerCollectionRenderSettings. | |
| MarkerCollectionRenderSettings (const MarkerRenderSettings &settings) | |
| Copy constructor for MarkerCollectionRenderSettings. | |
| MarkerCollectionRenderSettings (MarkerRenderSettings &&settings) | |
| Move constructor for MarkerCollectionRenderSettings. | |
| MarkerCollectionRenderSettings & | setLowDensityGroupImage (const Image &img) |
| Sets the image for rendering low density points groups. | |
| MarkerCollectionRenderSettings & | setMediumDensityGroupImage (const Image &img) |
| Sets the image for rendering medium density points groups. | |
| MarkerCollectionRenderSettings & | setHighDensityGroupImage (const Image &img) |
| Sets the image for rendering high density points groups. | |
| MarkerCollectionRenderSettings & | setGroupingLevel (int level) |
| Sets the zoom level for points grouping. | |
| MarkerCollectionRenderSettings & | setLowGroupMaxCount (int count) |
| Sets the maximum count for low density points groups. | |
| MarkerCollectionRenderSettings & | setMediumGroupMaxCount (int count) |
| Sets the maximum count for medium density points groups. | |
| MarkerCollectionRenderSettings & | setBuildGroupConfig (bool v) |
| Sets the flag for building points group configuration. | |
| MarkerCollectionRenderSettings & | setGroupLabelTextColor (const Rgba &color) |
| Sets the text color for group labels. | |
| MarkerCollectionRenderSettings & | setMarkerLabelExtractor (std::function< String(const MarkerRef &)> fnct) |
| Sets the marker label extractor function. | |
| MarkerCollectionRenderSettings & | setGroupLabelTextSize (const double &sz) |
| Sets the text size for group labels. | |
| MarkerCollectionRenderSettings & | setImage (const Image &img) |
| Sets the image for rendering the markers. | |
| MarkerCollectionRenderSettings & | setPolylineInnerColor (const Rgba &color) |
| Sets the inner color for polylines. | |
| MarkerCollectionRenderSettings & | setPolylineType (const ELineType &type) |
| Sets the line type for polylines. | |
| MarkerCollectionRenderSettings & | setPolylineOuterColor (const Rgba &color) |
| Sets the outer color for polylines. | |
| MarkerCollectionRenderSettings & | setPolygonFillColor (const Rgba &color) |
| Sets the fill color for polygons. | |
| MarkerCollectionRenderSettings & | setPolylineInnerSize (const double &sz) |
| Sets the inner size for polylines. | |
| MarkerCollectionRenderSettings & | setPolylineOuterSize (const double &sz) |
| Sets the outer size for polylines. | |
| MarkerCollectionRenderSettings & | setLabelingMode (int mode) |
| Sets the labeling mode for markers. | |
| MarkerCollectionRenderSettings & | setLabelTextColor (const Rgba &color) |
| Sets the text color for labels. | |
| MarkerCollectionRenderSettings & | setLabelTextSize (const double &sz) |
| Sets the text size for labels. | |
| MarkerCollectionRenderSettings & | setImageSize (const double &sz) |
| Sets the image size. | |
| MarkerCollectionRenderSettings & | setCustomMarkerSettings (std::function< const MarkerRenderSettings *(const MarkerRef &)> fnct) |
| Sets the custom marker settings function. | |
| MarkerCollectionRenderSettings & | setPolylineTexture (const Image &img) |
| Sets the texture for polylines. | |
| MarkerCollectionRenderSettings & | setPolygonTexture (const Image &img) |
| Sets the texture for polygons. | |
| MarkerCollectionRenderSettings & | setPolylineDirectionArrows (bool enable) |
| Sets polyline direction arrows. | |
| MarkerCollectionRenderSettings & | setPolylineDirectionArrowsInnerColor (const Rgba &color) |
| Sets the polyline direction arrows inner color. | |
| MarkerCollectionRenderSettings & | setPolylineDirectionArrowsOuterColor (const Rgba &color) |
| Sets the polyline direction arrows outer color. | |
| MarkerCollectionRenderSettings & | setVisibilityMinZoomLevel (int zoom) |
| Sets the visibility min zoom level. | |
| MarkerCollectionRenderSettings & | setVisibilityMaxZoomLevel (int zoom) |
| Sets the visibility max zoom level. | |
| auto & | setOptions (Options options) |
| Set the render options. | |
| auto & | setOption (Options option) |
| Set the render options. | |
| auto & | resetOption (Options option) |
| Reset the render options. | |
| auto & | setContourInnerColor (const Rgba &color) |
| set contour inner color | |
| auto & | setContourOuterColor (const Rgba &color) |
| set contour outer color | |
| auto & | setContourInnerSize (const double &sz) |
| set contour inner size | |
| auto & | setContourOuterSize (const double &sz) |
| set contour outer size | |
| auto & | setTextSize (const double &sz) |
| set text size | |
| auto & | setTextColor (const Rgba &color) |
| set text color | |
| auto & | setLineType (ELineType type) |
| set line type | |
| auto & | setImagePosition (EImagePosition pos) |
| set image position | |
| bool | operator== (const RenderSettings &s) const |
| Equal operator. | |
| bool | operator!= (const RenderSettings &s) const |
| Not equal operator. | |
Static Public Member Functions | |
| static Rgba | getDefaultInnerColor () |
| Get default inner color. | |
| static Rgba | getDefaultOuterColor () |
| get default outer color | |
| static double | getDefaultInnnerSize () |
| get default inner size | |
| static double | getDefaultOuterSize () |
| get default outer size | |
| static double | getDefaultTextSize () |
| get default image size | |
| static Rgba | getDefaultTextColor () |
| get default text color | |
| static double | getDefaultImageSize () |
| get default image size | |
Public Attributes | |
| int | pointsGroupingZoomLevel |
| The zoom level at which points grouping is enabled. | |
| Image | lowDensityPointsGroupImage |
| The image for rendering low density points groups. | |
| int | lowDensityPointsGroupMaxCount |
| The maximum number of items in a low density points group. | |
| Image | mediumDensityPointsGroupImage |
| The image for rendering medium density points groups. | |
| int | mediumDensityPointsGroupMaxCount |
| The maximum number of items in a medium density points group. | |
| Image | highDensityPointsGroupImage |
| The image for rendering high density points groups. | |
| Rgba | labelGroupTextColor |
| The text color for group labels. | |
| double | labelGroupTextSize |
| The text size for group labels in mm. | |
| std::function< String(const MarkerRef &)> | markerLabelExtractor |
| The function used for extracting custom labels from marker data. | |
| std::function< const MarkerRenderSettings *(const MarkerRef &)> | customMarkerSettings |
| The function used for getting custom render settings for each marker. | |
| bool | buildPointsGroupConfig |
| Flag indicating whether to build points group configuration. | |
| Image | polylineTexture |
| The texture for polylines. | |
| Image | polygonTexture |
| The texture for polygons. | |
| bool | polylineDirArrow |
| Enable polyline direction arrow. | |
| Rgba | polylineDirArrowInnerColor |
| Polyline direction arrow inner color ( default not specified ). | |
| Rgba | polylineDirArrowOuterColor |
| Polyline direction arrow outer color ( default not specified ). | |
| int | minVisibilityZoomLevel |
| Visibility min zoom level. | |
| int | maxVisibilityZoomLevel |
| Visibility max zoom level. | |
| Image | image |
| Regular image for displaying points. | |
| Rgba | polygonFillColor |
| Polygon fill color ( default not specified ). | |
| Options | m_options |
| options | |
| Options | labelingMode |
| options for labeling | |
| union { | |
| Options m_options | |
| options | |
| Options labelingMode | |
| options for labeling | |
| }; | |
| The render options. | |
| Rgba | m_innerColor |
| inner color RGBA | |
| Rgba | polylineInnerColor |
| Polyline inner color RGBA. | |
| union { | |
| Rgba m_innerColor | |
| inner color RGBA | |
| Rgba polylineInnerColor | |
| Polyline inner color RGBA. | |
| }; | |
| The polyline inner color. | |
| Rgba | m_outerColor |
| outer color RGBA | |
| Rgba | polylineOuterColor |
| Polyline outer color RGBA. | |
| union { | |
| Rgba m_outerColor | |
| outer color RGBA | |
| Rgba polylineOuterColor | |
| Polyline outer color RGBA. | |
| }; | |
| The polyline outer color. | |
| double | m_innerSz |
| inner size in mm | |
| double | polylineInnerSize |
| Polyline inner size in mm. | |
| union { | |
| double m_innerSz | |
| inner size in mm | |
| double polylineInnerSize | |
| Polyline inner size in mm. | |
| }; | |
| The polyline inner size in mm. | |
| double | m_outerSz |
| outer size in mm | |
| double | polylineOuterSize |
| Polyline outer size in mm. | |
| union { | |
| double m_outerSz | |
| outer size in mm | |
| double polylineOuterSize | |
| Polyline outer size in mm. | |
| }; | |
| The polyline outer ( border ) size in mm. | |
| double | m_imgSz |
| image size in mm | |
| double | imageSize |
| image size in mm | |
| union { | |
| double m_imgSz | |
| image size in mm | |
| double imageSize | |
| image size in mm | |
| }; | |
| The image size in mm ( default: value from current style ). | |
| double | m_textSz |
| text size in mm | |
| double | labelTextSize |
| label text size in mm | |
| union { | |
| double m_textSz | |
| text size in mm | |
| double labelTextSize | |
| label text size in mm | |
| }; | |
| The text size in mm ( default: value from current style ). | |
| Rgba | m_textColor |
| text color RGBA | |
| Rgba | labelTextColor |
| label color RGBA | |
| union { | |
| Rgba m_textColor | |
| text color RGBA | |
| Rgba labelTextColor | |
| label color RGBA | |
| }; | |
| The text color ( default: value from current style ). | |
| ELineType | m_lineType |
| line type | |
| ELineType | polylineType |
| Polyline type. | |
| union { | |
| ELineType m_lineType | |
| line type | |
| ELineType polylineType | |
| Polyline type. | |
| }; | |
| The line type. | |
| EImagePosition | m_imgPos |
| image position | |
| EImagePosition | imagePosition |
| image position | |
| union { | |
| EImagePosition m_imgPos | |
| image position | |
| EImagePosition imagePosition | |
| image position | |
| }; | |
| The image position. | |
Static Public Attributes | |
| static constexpr const int | kDefValue = 0x7FFFFFFF |
| Default value of various members. Members assigned with this value will be changed internally to something more appropriate. | |
Marker collection render settings.
Represents the settings for rendering a collection of markers.
|
inline |
Constructor for MarkerCollectionRenderSettings.
| img | The image to be used for rendering the markers. Default value is kDefValue. |
| pointsGroupingZLevel | The zoom level at which points grouping is enabled. Default value is kDefValue. |
| lowGImg | The image to be used for rendering low density points groups. Default value is kDefValue. |
| lowGCount | The maximum number of items in a low density points group. Default value is 50. |
| medGImg | The image to be used for rendering medium density points groups. Default value is kDefValue. |
| medGCount | The maximum number of items in a medium density points group. Default value is 300. |
| highGImg | The image to be used for rendering high density points groups. Default value is kDefValue. |
|
inline |
Copy constructor for MarkerCollectionRenderSettings.
| settings | The MarkerRenderSettings object to be copied. |
|
inline |
Move constructor for MarkerCollectionRenderSettings.
| settings | The MarkerRenderSettings object to be moved. |
|
inlinestaticinherited |
get default image size
|
inlinestaticinherited |
Get default inner color.
|
inlinestaticinherited |
get default inner size
|
inlinestaticinherited |
get default outer color
|
inlinestaticinherited |
get default outer size
|
inlinestaticinherited |
get default text color
|
inlinestaticinherited |
get default image size
|
inlineinherited |
Not equal operator.
| s | The settings to compare |
|
inlineinherited |
Equal operator.
| s | The settings to compare |
|
inlineinherited |
Reset the render options.
| option | The render options |
|
inline |
Sets the flag for building points group configuration.
| v | The flag indicating whether to build points group configuration. |
|
inlineinherited |
set contour inner color
| color | The color |
|
inlineinherited |
set contour inner size
| sz | The size |
|
inlineinherited |
set contour outer color
| color | The color |
|
inlineinherited |
set contour outer size
| sz | The size |
|
inline |
Sets the custom marker settings function.
| fnct | The function to be used for getting custom render settings for each marker. |
|
inline |
Sets the zoom level for points grouping.
| level | The zoom level at which points grouping is enabled. |
|
inline |
Sets the text color for group labels.
| color | The color to be used for group labels. |
|
inline |
Sets the text size for group labels.
| sz | The text size to be used for group labels. |
|
inline |
Sets the image for rendering high density points groups.
| img | The image to be used for rendering high density points groups. |
|
inline |
Sets the image for rendering the markers.
| img | The image to be used for rendering the markers. |
|
inlineinherited |
set image position
| pos | The image position |
|
inline |
Sets the image size.
| sz | The size to be used for the image. |
|
inline |
Sets the labeling mode for markers.
| mode | The labeling mode to be used for markers, a bitset of EMarkerLabelingMode values |
|
inline |
Sets the text color for labels.
| color | The color to be used for labels. |
|
inline |
Sets the text size for labels.
| sz | The text size to be used for labels. |
|
inlineinherited |
set line type
| type | The line type |
|
inline |
Sets the image for rendering low density points groups.
| img | The image to be used for rendering low density points groups. |
|
inline |
Sets the maximum count for low density points groups.
| count | The maximum number of items in a low density points group. |
|
inline |
Sets the marker label extractor function.
| fnct | The function to be used for extracting custom labels from marker data. |
|
inline |
Sets the image for rendering medium density points groups.
| img | The image to be used for rendering medium density points groups. |
|
inline |
Sets the maximum count for medium density points groups.
| count | The maximum number of items in a medium density points group. |
|
inlineinherited |
Set the render options.
| option | The render option |
|
inlineinherited |
Set the render options.
| options | The render options |
|
inline |
Sets the fill color for polygons.
| color | The color to be used for filling polygons. |
|
inline |
Sets the texture for polygons.
| img | The image to be used as the texture for polygons. |
|
inline |
Sets polyline direction arrows.
| enable | Activate / deactivate the direction arrows |
|
inline |
Sets the polyline direction arrows inner color.
| color | The color |
|
inline |
Sets the polyline direction arrows outer color.
| color | The color |
|
inline |
Sets the inner color for polylines.
| color | The color to be used for the inner part of polylines. |
|
inline |
Sets the inner size for polylines.
| sz | The size to be used for the inner part of polylines. |
|
inline |
Sets the outer color for polylines.
| color | The color to be used for the outer part of polylines. |
|
inline |
Sets the outer size for polylines.
| sz | The size to be used for the outer part of polylines. |
|
inline |
Sets the texture for polylines.
| img | The image to be used as the texture for polylines. |
|
inline |
Sets the line type for polylines.
| type | The line type |
|
inlineinherited |
set text color
| color | The color |
|
inlineinherited |
set text size
| sz | The size |
|
inline |
Sets the visibility max zoom level.
| zoom | The zoom level. IN_MAX - always visible, 0 - always hidden |
|
inline |
Sets the visibility min zoom level.
| zoom | The zoom level. 0 - always visible, INT_MAX - always hidden |
| bool gem::MarkerCollectionRenderSettings::buildPointsGroupConfig |
Flag indicating whether to build points group configuration.
Default value is false.
If enabled, the user can access the marker -> points group relation, i.e. identify the points group head marker for every marker in the collection.
| std::function<const MarkerRenderSettings *(const MarkerRef &)> gem::MarkerCollectionRenderSettings::customMarkerSettings |
The function used for getting custom render settings for each marker.
If defined, the marker collection will call this function to get a custom render setting for each marker.
Typical usage is to keep the custom render settings in a map<marker id, MarkerRenderSettings>.
|
inherited |
Regular image for displaying points.
If not provided, the marker is considered to be rendered externally through the IViewListener::onMarkerRender notification
Only MT_Point type marker collections support external marker rendering
For MT_Polyline & MT_Polygon providing a default Image will disable the geometry points rendering
| Rgba gem::MarkerCollectionRenderSettings::labelGroupTextColor |
The text color for group labels.
Default value is obtained from the current style.
| double gem::MarkerCollectionRenderSettings::labelGroupTextSize |
The text size for group labels in mm.
Default value is current map view style based
| int gem::MarkerCollectionRenderSettings::lowDensityPointsGroupMaxCount |
The maximum number of items in a low density points group.
If the group items are less than or equal to this value, the lowDensityPointsGroupImage is used for displaying the group.
The function used for extracting custom labels from marker data.
If defined, the marker collection will call this function to extract a custom label from marker data.
| int gem::MarkerCollectionRenderSettings::maxVisibilityZoomLevel |
Visibility max zoom level.
Default value is current map view style based
| int gem::MarkerCollectionRenderSettings::mediumDensityPointsGroupMaxCount |
The maximum number of items in a medium density points group.
If the group items are less than or equal to this value, the mediumDensityPointsGroupImage is used for displaying the group.
| int gem::MarkerCollectionRenderSettings::minVisibilityZoomLevel |
Visibility min zoom level.
Default value is current map view style based
| int gem::MarkerCollectionRenderSettings::pointsGroupingZoomLevel |
The zoom level at which points grouping is enabled.
If equal to 0, grouping is disabled.
If equal to UINT_MAX, grouping is always enabled.
| Image gem::MarkerCollectionRenderSettings::polygonTexture |
The texture for polygons.
Default value is none.
The polygon texture will be blended with the polygonFillColor value. User must set polygonFillColor to Rgba::white() in order to preserve original texture colors.
| bool gem::MarkerCollectionRenderSettings::polylineDirArrow |
Enable polyline direction arrow.
Default value is false.
| Rgba gem::MarkerCollectionRenderSettings::polylineDirArrowInnerColor |
Polyline direction arrow inner color ( default not specified ).
Default value is none.
| Rgba gem::MarkerCollectionRenderSettings::polylineDirArrowOuterColor |
Polyline direction arrow outer color ( default not specified ).
Default value is none.
| Image gem::MarkerCollectionRenderSettings::polylineTexture |
The texture for polylines.
Default value is none.
The polyline texture will be blended with the polylineInnerColor value. User must set polylineInnerColor to Rgba::white() in order to preserve original texture colors.
The polyline texture will will override the polylineType selection.