![]() |
Maria GDK 5.0.0.1010
Documentation of native code in develop branch
|
#include <MGeoRenderItem.h>
Classes | |
| struct | RenderItemInstance |
Public Member Functions | |
| void | addRenderItem (const std::shared_ptr< STK::RenderItem2D > &renderItem, bool declutter=false, bool separateLabel=false) |
| Add a transient renderitem to the GeoRender. This item will not have a specific ID. | |
| const std::vector< RenderItemInstance > & | getTransientRenderItems () const |
| void | clearTransientRenderItems () |
| std::shared_ptr< STK::RenderItem2D > | getRenderItem (int id) |
| void | removeRenderItem (int id) |
| bool | hasRenderItem (int id) const |
| void | setRenderItem (int id, const std::shared_ptr< STK::RenderItem2D > &renderItem, bool declutter=false, bool separateLabel=false) |
| Set reusable render item at a specific ID. | |
| int | getGraphicsRenderItems (std::vector< std::shared_ptr< STK::RenderItem2D > > &renderItems) const |
| std::vector< RenderItemInstance > | getAllRenderItems () const |
| const std::unordered_map< int, RenderItemInstance > & | getReusableRenderItems () const |
| int | getDeclutterItems (std::vector< std::shared_ptr< STK::RenderItem2D > > &renderItems) const |
| void | setTimestamp (int64_t timestamp) |
| int64_t | getTimestamp () const |
| void | setOrientedBoundingBox (const STK::OrientedBoundingBox2f &obb) |
| const STK::OrientedBoundingBox2f & | getOrientedBoundingBox () const |
| void | addToGraphicsRender (STK::GraphicsRender2D &render) |
| void | removeFromGraphicsRender (STK::GraphicsRender2D &render) |
| void | setGraphicsProjectorGeneration (int generation) |
| int | getGraphicsProjectorGeneration () const |
| bool | needsUpdate (int gfxProjectorGeneration) const |
GeoRenderItem - Geographically placed render item corresponding to a draw object.
This item contains viewport oriented graphics items for all the graphics relevant for one draw object. This may include both STK graphics primitives for text and vector graphics, as well as point symbol entries in the point symbol renderer.
The render items are created in pixel coordinates for the current viewport and a local affine transform is created during rendering to transform the item from the creation viewport to the current rendering viewport.
The render items are divided into two categories; Reusable and transient. Reusable items have a specific ID and can be retrieved for update when data changes. Transient items must re-generated each time the GeoRenderItem is updated.
|
inline |
Add a transient renderitem to the GeoRender. This item will not have a specific ID.
| renderItem | item to add |
| declutter | if the object should be decluttered |
| separateLabel | If the object should be handled separately during tile rendering. |
|
inline |
Clean out all transient render items.
|
inline |
Get all render item instances, both transient and reusable.
|
inline |
Get all STK graphics render items, both transient and reusable.
|
inline |
Get specific render item by ID
|
inline |
Get if specific item (by ID) is in the set of reusable items.
| id | To Fetch |
|
inline |
Set reusable render item at a specific ID.
| renderItem | item to add |
| declutter | if the object should be decluttered |
| separateLabel | If the object should be handled separately during tile rendering. |