|
Maps SDK for C++ 1.0.0
|
Renders basic geometric shapes onto a Canvas. More...


Classes | |
| struct | __allow_private_constructor |
Public Member Functions | |
| void | renderShapes (XyF translationFactor=XyF(0.0f, 0.0f), XyF scaleFactor=XyF(1.0f, 1.0f)) |
| Renders the shapes. | |
| unsigned int | createTexture (const void *pImage, unsigned int width, unsigned int height, EColorFormat format) |
| Creates a texture. | |
| unsigned int | createTexture (const String &fileName, EImageFileFormat fileFormat, EColorFormat format) |
| Creates a texture by file name. | |
| void | deleteTexture (unsigned int textureId) |
| Deletes a texture. | |
| void | drawCircle (const XyF ¢er, float radius, unsigned int color, bool bFilled=false) |
| Draws a circle. | |
| void | drawLine (const XyF &start, const XyF &end, unsigned int color=0, float thickness=1.f) |
| Draws a line. | |
| void | drawTexturedRectangle (unsigned int nTextureId, const XyF &topLeft, const XyF &botRight, unsigned int color=0, bool bFilled=false, float thickness=1.f) |
| Draws a textured rectangle. | |
| void | drawRectangle (const XyF &topLeft, const XyF &botRight, unsigned int color=0, bool bFilled=false, float thickness=1.f) |
| Draws a rectangle. | |
| void | drawRoundedRectangle (const XyF &topLeft, const XyF &botRight, unsigned int color=0, bool bFilled=false, float thickness=1.f) |
| Draws a rounded rectangle. | |
| void | drawText (const String &text, XyF position, TextState style) |
| Draws text with style. | |
| int | getTextWidth (const String &text, TextState style) |
| Gets the text width. | |
| int | getTextAscent (TextState style) |
| Gets the text ascent. | |
| int | getTextDescent (TextState style) |
| Gets the text descent. | |
Static Public Member Functions | |
| static StrongPointer< BasicShapeDrawer > | produce (StrongPointer< Canvas > canvas) |
| Creates a BasicShapeDrawer object. | |
Protected Types | |
| using | Base = ApiObject<IBasicShapesRenderer, false> |
| The base class. | |
Renders basic geometric shapes onto a Canvas.
Provides utilities to draw lines, circles, and polygons for overlays, debugging, or visualization.Shapes are rendered into a Canvas and displayed within a MapView.
|
inline |
Creates a texture by file name.
| fileName | The file name |
| fileFormat | The file format |
| format | The color format |
|
inline |
Creates a texture.
| pImage | The image |
| width | The width |
| height | The height |
| format | The color format |
|
inline |
Deletes a texture.
| textureId | The texture ID |
|
inline |
Draws a circle.
| center | The center |
| radius | The radius |
| color | The color |
| bFilled | The flag indicating whether the circle is filled |
|
inline |
Draws a line.
| start | The start |
| end | The end |
| color | The color |
| thickness | The thickness of the line |
|
inline |
Draws a rectangle.
| topLeft | The top-left |
| botRight | The bottom-right |
| color | The color |
| bFilled | The flag indicating whether the rectangle is filled |
| thickness | The thickness of the rectangle |
|
inline |
Draws a rounded rectangle.
| topLeft | The top-left |
| botRight | The bottom-right |
| color | The color |
| bFilled | The flag indicating whether the rectangle is filled |
| thickness | The thickness of the rectangle |
Draws text with style.
| text | The text |
| position | The position |
| style | The text style |
|
inline |
Draws a textured rectangle.
| nTextureId | The texture ID |
| topLeft | The top-left |
| botRight | The bottom-right |
| color | The color |
| bFilled | The flag indicating whether the rectangle is filled |
| thickness | The thickness of the rectangle |
|
inline |
Gets the text ascent.
| style | The text style |
|
inline |
Gets the text descent.
| style | The text style |
Gets the text width.
| text | The text |
| style | The text style |
|
inlinestatic |