.. _markup-example:

###################################################
Visualization: Draw Bounding Box Using Markup Model
###################################################

The MarkupModel enables the user to draw custom markup figures and texts into the model.
Markup can, for instance, be used to:

-   Draw measure lines (distance/angle/...)
-   Add annotations as labels
-   Position 2D symbols in the model

This example loads the demo file and draws the models bounding box as a markup
model in the view. The bounding box is draw as yellow lines.

.. image:: ../images/tut_markup.png
    :height: 300 
    :align: center


.. literalinclude:: ../../../../EnvisionDesktop/Tutorials/MarkupModel.cpp
    :language: cpp
    :lines: 39-116