Container elements
Containers package has those graphic elements that are intended to host other graphic elements. The container properties are set in the view definition and they can not be modified during the simulation run.
Name | Description |
---|---|
![]() |
Main window |
![]() |
Dialog window |
![]() |
Panel container |
![]() |
Drawing-panel |
![]() |
|
![]() |
Main window
Creates a window where containers, basic elements and interactive controls can be placed. The view can contain only one MainFrame object. The user can stop the simulation by closing this window.
Extends from Interactive.src.ViewElements.Containers.MainWindow (Main window).
Name | Description |
---|---|
LayoutPolicy | Layout policy |
title | Text displayed as title |
xPosition | X coordinate of the window upper left corner in pixels |
yPosition | Y coordinate of the window upper left corner in pixels |
Width | Window width in pixels |
Height | Window height in pixels |
size[2] | Window size in pixels |
Name | Description |
---|---|
pLLeft | Connector of non drawable components - Parent information |
cLRight | Connector of non drawable components - Child information |
cLLeft | Connector of non drawable components - Parent information |
Dialog window
This class, like MainFrame, creates a window where containers, basic elements and interactive controls can be placed. This class has only two differences with MainFrame class: simulation run doesn't stop by closing this window and there can be more than one Dialog object.
Extends from Interactive.src.ViewElements.Containers.Dialog (Dialog window).
Name | Description |
---|---|
LayoutPolicy | Layout policy |
title | Text displayed as title |
xPosition | X coordinate of the window upper left corner in pixels |
yPosition | Y coordinate of the window upper left corner in pixels |
Width | Window width in pixels |
Height | Window height in pixels |
size[2] | Window size in pixels |
varName | String variable that can be linked to the corresponding variable of a check-box in order to show and hide the window by clicking on the check-box |
Name | Description |
---|---|
pLLeft | Connector of non drawable components - Parent information |
cLRight | Connector of non drawable components - Child information |
cLLeft | Connector of non drawable components - Parent information |
Panel container
Panel model creates a panel where containers, basic elements and interactive controls can be placed.
Extends from Interactive.src.ViewElements.Containers.Panel (Panel).
Name | Description |
---|---|
LayoutPolicy | Layout policy |
row | Sets the row where the element is located if the parent has the Grid layout policy |
column | Sets the column where the element is located if the parent has the Grid layout policy |
rowSpan | Sets the number of rows the element spans (only appliable if the parent has the Grid layout policy |
columnSpan | Sets the number of columns the element spans (only appliable if the parent has the Grid layout policy |
Name | Description |
---|---|
pLLeft | Connector of non drawable components - Parent information |
cLRight | Connector of non drawable components - Child information |
cLLeft | Connector of non drawable components - Parent information |
Drawing-panel
Canvas model creates a three-dimensional container that only can host drawable objects. It has associated a camera, necessary to render the scene. By default, this camera is automatically set up to visualize all the objects placed in the container. The camera can also be set up by the virtual-lab developer.
Extends from Interactive.src.ViewElements.Containers.Canvas (Drawing panel).
Name | Description |
---|---|
row | Sets the row where the element is located if the parent has the Grid layout policy |
column | Sets the column where the element is located if the parent has the Grid layout policy |
rowSpan | Sets the number of rows the element spans (only appliable if the parent has the Grid layout policy |
columnSpan | Sets the number of columns the element spans (only appliable if the parent has the Grid layout policy |
setCamera | 1: the camera is positioned with the user settings; 0: the camera is automatically positioned to view every actor at initial time |
position[3] | Where the camera is located |
focalPoint[3] | Where the camera is pointing |
viewUp[3] | Which direction is up |
viewAngle | The camera view angle controls perspective effects |
Name | Description |
---|---|
pLLeft | Connector of non drawable components - Parent information |
cLLeft | Connector of non drawable components - Parent information |
cRight | Connector of drawable components - Child information |
PlottingPanel model creates a two-dimensional container that incorporates coordinate axes that can be zoomed in and out and optionally a legend. The PlottingPanel objects can only host objects of the Trail class.
Extends from Interactive.src.ViewElements.Containers.PlottingPanel (Plotting panel).
Name | Description |
---|---|
title | Title to display at the top |
titleX | Label of the X axis |
titleY | Label of the Y axis |
logx | 1: plotting of Log of x-values |
plotColor | Plot Color |
placeLegend | true=>a legend is placed |
legendPosition | Legend position |
checkableLegend | true=>the traces can be shown/hide by clicking the corresponding legend item |
autoscalex | true=> x axis autoscales |
autoscaley | true=> y axis autoscales |
row | Sets the row where the element is located if the parent has the Grid layout policy |
column | Sets the column where the element is located if the parent has the Grid layout policy |
rowSpan | Sets the number of rows the element spans (only appliable if the parent has the Grid layout policy |
columnSpan | Sets the number of columns the element spans (only appliable if the parent has the Grid layout policy |
Name | Description |
---|---|
pLLeft | Connector of non drawable components - Parent information |
cLLeft | Connector of non drawable components - Parent information |
cRight | Connector of drawable components - Child information |
GroupBox model provides a frame and a title, and displays various other widgets inside itself.
Extends from src.ViewElements.Containers.GroupBox.
Name | Description |
---|---|
LayoutPolicy | Layout policy |
title | Frame title |
flat | By default a group box has a surrounding frame, with the title being placed on the upper frame line. In flat mode the right, left and bottom frame lines are omitted, and only the thin line at the top is drawn |
row | Sets the row where the element is located if the parent has the Grid layout policy |
column | Sets the column where the element is located if the parent has the Grid layout policy |
rowSpan | Sets the number of rows the element spans (only appliable if the parent has the Grid layout policy |
columnSpan | Sets the number of columns the element spans (only appliable if the parent has the Grid layout policy |
Name | Description |
---|---|
pLLeft | Connector of non drawable components - Parent information |
cLRight | Connector of non drawable components - Child information |
cLLeft | Connector of non drawable components - Parent information |