Interactive graphic elements
ViewElements package includes the Containers, Drawables, InteractiveControls and BasicElements packages. These packages contain classes describing the interactive graphic elements and the base classes of these elements. The library developer has to extend these base classes to implement new interactive graphic elements.
Each interactive element has associated the following elements:The ''initial algorithm'' section contains the code required to obtain the integer number identifying the component in the view description (value of the num variable) and a call to the Modelica function that encapsulates a call to the external C function which generates the C++ code of the interactive graphic element. The value of the num variable is obtained by executing the function writeTreeNode. This function has as input the path of a file and as output an integer value. The writeTreeNode function reads a value from the input file. Then, it writes in that file a sequence of number identifying the object. The function output value is a number. The external C- function generates the C++ code by writing in a file the code require to create an instance of the C++ class describing the element.
Name | Description |
---|---|
![]() |
Container elements and base classes |
![]() |
Drawable elements and base classes |
![]() |
Interactive controls and base classes |
![]() |
Basic elements and base classes |