Interactive.src.ViewElements

Interactive graphic elements

Information

ViewElements package

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: Using the predefined base classes, Modelica classes describing interactive graphic elements have the following structure:

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.

        

Package Content

Name Description
Interactive.src.ViewElements.Containers Containers Container elements and base classes
Interactive.src.ViewElements.Drawables Drawables Drawable elements and base classes
Interactive.src.ViewElements.InteractiveControls InteractiveControls Interactive controls and base classes
Interactive.src.ViewElements.BasicElements BasicElements Basic elements and base classes
Automatically generated Thu Apr 28 12:24:22 2022.