Interactive control elements
InteractiveControls package contains classes that allow modifying interactively the value of model variables. Each class includes a definition of an input real variable (var) and a boolean variable (event). The value of the event variable is true at those time instants at which the interactive control is manipulated by the virtual-lab user. Otherwise, the event variable is false The interactive model variable can be linked to the var variable by writing the corresponding equation.
Name | Description |
---|---|
![]() |
Allows editing a numeric value |
![]() |
Creates a radio-button |
![]() |
Shows a box displaying a number |
Allows editing a numeric value
Creates an element that allows editing a numeric value.
Extends from Interactive.src.ViewElements.InteractiveControls.NumberField (Allows editing a numeric value. Interactive var.: var, Enable.).
Name | Description |
---|---|
minValue | |
maxValue | |
step | |
initialValue | |
numberOfDecimals | |
row | |
column | |
rowSpan | |
columnSpan | |
EnableInt | |
Enablep | |
Initialization | |
event |
Name | Description |
---|---|
pLLeft | Connector of non drawable components |
cLLeft | Connector of non drawable components |
Creates a radio-button
Creates a radio-button. The var variable of this element can have the value 0 or 1.
Extends from Interactive.src.ViewElements.InteractiveControls.RadioButton (Creates a radio-button. Interactive var.: var.).
Name | Description |
---|---|
buttonValue | Initial value |
text | Text displayed by the element |
buttonGroup | The radio-button belongs to this group |
row | |
column | |
rowSpan | |
columnSpan | |
Initialization | |
event |
Name | Description |
---|---|
pLLeft | Connector of non drawable components |
cLLeft | Connector of non drawable components |
Shows a box displaying a number
Creates an element that allows editing a numeric value.
Extends from Interactive.src.ViewElements.InteractiveControls.DisplayDouble (Allows displaying a numeric value. Variable linked to the model: value.).
Name | Description |
---|---|
format | Numeric format |
precision | Number of digits after the decimal point |
alignment | Alignment |
prefix | Text inserted before the displayed value |
sufix | Text inserted after the displayed value |
row | |
column | |
rowSpan | |
columnSpan | |
Initialization | |
sdStatus1 |
Name | Description |
---|---|
pLLeft | Connector of non drawable components |
cLLeft | Connector of non drawable components |