2D Visualization
2D visualizations are drawn on canvas entities, which are embedded in the 3D space.
This makes it possible to combine 2D and 3D visualizations.
2D visualizations can be viewed with the cockpit in the same way as 3D visualizations.
This makes it possible to combine 2D and 3D visualizations.
2D visualizations can be viewed with the cockpit in the same way as 3D visualizations.
Drawing operations
The Function Development Kit (FDK) provides support for the drawing operations:

Drawing some rects

Scene
2D visualizations use the same scene entity as 3D visualizations: a scene represents a specific visualization, can be viewed via the Diafunc cockpit, and carries the common scene attributes such as 'size'. The full scene attribute table is documented on the 3D Visualization page.
Scene Attributes
One scene attribute is specific to 2D visualization:
| Attribute | Type | Example | Description |
|---|---|---|---|
| canvas | bool | true | Activates the support for canvas visualization |
Canvas
The canvas is the container entity for 2D graphics which are linked as drawing entities via the linkId 'drawings'.
A scene can contain multiple canvas entities which must be linked from the scene via the linkId 'canvas' or 'canvases'.
A scene can contain multiple canvas entities which must be linked from the scene via the linkId 'canvas' or 'canvases'.
Drawing entity
A drawing entity contains multiple drawing operations which are applied to a canvas entity.
Drawings are primarily created via the type 'DrawingBuilder' which is accessible through the type 'Canvas' of the Function Development Kit (FDK).
DrawingBuilder Canvas
Drawings are primarily created via the type 'DrawingBuilder' which is accessible through the type 'Canvas' of the Function Development Kit (FDK).