Interactive.ViewElements.Containers

Container elements

Information

Containers package

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.

        

Package Content

Name Description
Interactive.ViewElements.Containers.MainWindow MainWindow Main window
Interactive.ViewElements.Containers.Dialog Dialog Dialog window
Interactive.ViewElements.Containers.Panel Panel Panel container
Interactive.ViewElements.Containers.Canvas Canvas Drawing-panel
Interactive.ViewElements.Containers.PlottingPanel PlottingPanel  
Interactive.ViewElements.Containers.GroupBox GroupBox  

Interactive.ViewElements.Containers.MainWindow Interactive.ViewElements.Containers.MainWindow

Main window

Information

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).

Parameters

NameDescription
LayoutPolicyLayout policy
titleText displayed as title
xPositionX coordinate of the window upper left corner in pixels
yPositionY coordinate of the window upper left corner in pixels
WidthWindow width in pixels
HeightWindow height in pixels
size[2]Window size in pixels

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.ViewElements.Containers.Dialog Interactive.ViewElements.Containers.Dialog

Dialog window

Information

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).

Parameters

NameDescription
LayoutPolicyLayout policy
titleText displayed as title
xPositionX coordinate of the window upper left corner in pixels
yPositionY coordinate of the window upper left corner in pixels
WidthWindow width in pixels
HeightWindow height in pixels
size[2]Window size in pixels
varNameString 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

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.ViewElements.Containers.Panel Interactive.ViewElements.Containers.Panel

Panel container

Information

Panel model creates a panel where containers, basic elements and interactive controls can be placed.

Extends from Interactive.src.ViewElements.Containers.Panel (Panel).

Parameters

NameDescription
LayoutPolicyLayout policy
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.ViewElements.Containers.Canvas Interactive.ViewElements.Containers.Canvas

Drawing-panel

Information

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).

Parameters

NameDescription
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy
setCamera1: 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
viewAngleThe camera view angle controls perspective effects

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLLeftConnector of non drawable components - Parent information
cRightConnector of drawable components - Child information

Interactive.ViewElements.Containers.PlottingPanel Interactive.ViewElements.Containers.PlottingPanel

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).

Parameters

NameDescription
titleTitle to display at the top
titleXLabel of the X axis
titleYLabel of the Y axis
logx1: plotting of Log of x-values
plotColorPlot Color
placeLegendtrue=>a legend is placed
legendPositionLegend position
checkableLegendtrue=>the traces can be shown/hide by clicking the corresponding legend item
autoscalextrue=> x axis autoscales
autoscaleytrue=> y axis autoscales
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLLeftConnector of non drawable components - Parent information
cRightConnector of drawable components - Child information

Interactive.ViewElements.Containers.GroupBox Interactive.ViewElements.Containers.GroupBox

Information

GroupBox model provides a frame and a title, and displays various other widgets inside itself.

Extends from src.ViewElements.Containers.GroupBox.

Parameters

NameDescription
LayoutPolicyLayout policy
titleFrame title
flatBy 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
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information
Automatically generated Thu Apr 28 12:24:20 2022.