Interactive.src.Functions

Functions for C++ code generation and other functions used by the classes contained in the ViewElements package

Information

Functions package

Functions package includes the following Modelica functions:

        

Package Content

Name Description
Interactive.src.Functions.beginGUI beginGUI First lines of the C++ file
Interactive.src.Functions.endGUI endGUI Last lines of the main file
Interactive.src.Functions.mainWindow mainWindow Write the C++ code to generate the MainFrame
Interactive.src.Functions.dialog dialog Write the C++ code to generate a Dialog window
Interactive.src.Functions.canvas canvas Write the C++ code to generate a Canvas
Interactive.src.Functions.panel panel Write the C++ code to generate a Panel
Interactive.src.Functions.cube cube Write the C++ code to generate a Cube
Interactive.src.Functions.radioButton radioButton Write the C++ code to generate a RadioButton
Interactive.src.Functions.slider slider Write the C++ code to generate a Slider
Interactive.src.Functions.label label Write the C++ code to generate a Label
Interactive.src.Functions.sphere sphere Write the C++ code required to generate a Sphere
Interactive.src.Functions.Sum Sum Adding the components of a vector
Interactive.src.Functions.vectorText vectorText Write the C++ code to generate a Text
Interactive.src.Functions.arrow arrow Write the C++ code to generate an Arrow
Interactive.src.Functions.plottingPanel plottingPanel Write the C++ code to generate a PlottingPanel
Interactive.src.Functions.trail trail Write the C++ code to generate a Trail
Interactive.src.Functions.checkBox checkBox Write the C++ code to generate a CheckBox
Interactive.src.Functions.spring spring Write the C++ code to generate a Spring
Interactive.src.Functions.damper damper Write the C++ code to generate a Damper
Interactive.src.Functions.pauseButton pauseButton Write the C++ code to generate a PauseButton
Interactive.src.Functions.numberField numberField Write the C++ code to generate a NumberField
Interactive.src.Functions.infoButton infoButton Write the C++ code to generate an InfoButton
Interactive.src.Functions.button1Action button1Action Write the C++ code to generate a Button1Action
Interactive.src.Functions.button2Actions button2Actions Write the C++ code to generate a Button2Actions
Interactive.src.Functions.processingFile processingFile Reads the number written in the first line of a file. Then, writes the number read incremented by one
Interactive.src.Functions.groupBox groupBox Write the C++ code to generate a Panel
Interactive.src.Functions.cylinder cylinder Write the C++ code to generate a Cylinder
Interactive.src.Functions.regularPolygon regularPolygon Write the C++ code to generate a regular polygon inscribed in a circunference
Interactive.src.Functions.disk disk Write the C++ code to generate a Disk
Interactive.src.Functions.file3DSImporter file3DSImporter Write the C++ code to generate a importer of 3DS files
Interactive.src.Functions.cone cone Write the C++ code to generate a Cone
Interactive.src.Functions.halfPipe halfPipe Write the C++ code to generate a half pipe
Interactive.src.Functions.scalarBar scalarBar Write the C++ code to generate a scalar bar
Interactive.src.Functions.planarGrid planarGrid Write the C++ code to generate a planar grid
Interactive.src.Functions.plane plane Write the C++ code to generate a plane
Interactive.src.Functions.browser browser Write the C++ code to generate a HTML browser
Interactive.src.Functions.displayDouble displayDouble Write the C++ code to generate a DisplayDouble object
Interactive.src.Functions.plottingPanelQwt plottingPanelQwt Write the C++ code to generate a PlottingPanel
Interactive.src.Functions.trailQwt trailQwt Write the C++ code to generate a Trail
Interactive.src.Functions.polygon polygon Write the C++ code to generate a Polygon
Interactive.src.Functions.vectorTextReal vectorTextReal Write the C++ code to generate a TextReal
Interactive.src.Functions.trailQwtNPoints trailQwtNPoints Write the C++ code to generate Npoints Trail
Interactive.src.Functions.processingFile2 processingFile2 Reads the number written in the first line of a file. Then, writes the number read incremented by one
Interactive.src.Functions.debugFunction debugFunction Function for debugging purpose
Interactive.src.Functions.systemRun systemRun Program to run another program in a separate thread
Interactive.src.Functions.writeTreeNode writeTreeNode Write the node of a tree in a file
Interactive.src.Functions.line line Write the C++ code to generate a Line

Interactive.src.Functions.beginGUI

First lines of the C++ file

Inputs

NameDescription
fileNameName of the C++ file
ipAddressIp address in ipv4
serverPortNumber of the server port
numberGUINumber of GUIs

Outputs

NameDescription
o 

Interactive.src.Functions.endGUI

Last lines of the main file

Inputs

NameDescription
fileNameName of the main file

Interactive.src.Functions.mainWindow

Write the C++ code to generate the MainFrame

Inputs

NameDescription
fileNameName of the file
nameName of the component
titleText displayed as title
xPositionX coordinate of the window upper left corner in pixels
yPositionY coordinate of the window upper left corner in pixels
size[2]Size of the window in pixels
LayoutPolicyLayout policy of the element

Interactive.src.Functions.dialog

Write the C++ code to generate a Dialog window

Inputs

NameDescription
fileNameName of the C++ file
nameName of the component
titleText displayed as title
xPositionX coordinate of the window upper left corner in pixels
yPositionY coordinate of the window upper left corner in pixels
size[2]Size of the window in pixels
varNameString associated to a check-box
LayoutPolicyLayout policy

Interactive.src.Functions.canvas

Write the C++ code to generate a Canvas

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
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
positionSelection1: the container hosting the element has 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

Interactive.src.Functions.panel

Write the C++ code to generate a Panel

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
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
positionSelection1: the container hosting the element has Grid policy
layoutLayout policy

Interactive.src.Functions.cube

Write the C++ code to generate a Cube

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the sphere center
xLengthLength of the cube in the x-direction
yLengthLength of the cube in the y-direction
zLengthLength of the cube in the z-direction
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time

Interactive.src.Functions.radioButton

Write the C++ code to generate a RadioButton

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the component hosting the element
buttonValueInitial value
indexNumber identifying the interactive element
textText displayed by the element
buttonGroupThe radio-button belongs to this group
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.slider

Write the C++ code to generate a Slider

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the container hosting the element
initialValueInitial value
stringFormatFormat of the text displayed by the component
tickFormatFormat of the text displayed with the ticks
tickNumberNumber of ticks
minimumMinimum value of the variable linked to the component
maximumMaximum value of the variable linked to the component
factorScale factor
enable1: enabled, 0: disabled
positionNumber identifying the interactive element
positionSelection1: the container hosting the element has BorderLayout policy
positionInBorderLayoutPosition in the container hosting the element

Interactive.src.Functions.label

Write the C++ code to generate a Label

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the container hosting the element
textText to be displayed
alignmentText alignment
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.sphere

Write the C++ code required to generate a Sphere

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the sphere center
RadiusRadius
Origin[3]Point about which rotations take place
Degrees[3]Rotational degrees in x, y and z
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
thetaResolution 
startTheta 
endTheta 
phiResolution 
startPhi 
endPhi 
tessellation 

Interactive.src.Functions.Sum

Adding the components of a vector

Inputs

NameDescription
A[:]Vector

Outputs

NameDescription
ResultResult

Interactive.src.Functions.vectorText

Write the C++ code to generate a Text

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the circunference center
TextText displayed by the component
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
scale 

Interactive.src.Functions.arrow

Write the C++ code to generate an Arrow

Inputs

NameDescription
fileNameName of the C++ file
parentName of the container hosting the element
nameName of the element
numNumber identifying the component
Center[3]Position of the arrow center
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
TipResolutionBy default, the tip resolution is 6. TipResolution = 1 ==> the tip is represented by a triangle
TipLength 
TipRadius 
ShaftRadius 
ShaftResolutionSet the resolution of the shaft. 2 gives a rectangle
scale 

Interactive.src.Functions.plottingPanel

Write the C++ code to generate a PlottingPanel

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
titleTitle to display at the top
titleXLabel of the x axis
titleYLabel of the y axis
logx1: plotting of Log of x-values
plotColor[3]Plot Color
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.trail

Write the C++ code to generate a Trail

Inputs

NameDescription
fileNameName of the C++ file
parentName of the container hosting the element
nameName of the element
numNumber identifying the element
maximumPointsMaximum number of points to be displayed
nSkipNumber of points to skip before plotting one
trailLabelLabel of the trail
lineColor[3]Color of the line

Interactive.src.Functions.checkBox

Write the C++ code to generate a CheckBox

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the container hosting the element
initialValueInitial value
labelText displayed with the checkBox
varNameString variable that can be linked to the corresponding variable of a dialog window in order to show and hide the window by clicking on the check-box
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.spring

Write the C++ code to generate a Spring

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
dDrawing Parameter
NDrawing Parameter
ADrawing Parameter
strokeStroke of the line
x1X- Coordinate of P1. P1 is one spring extremity
x2X- Coordinate of P2. P2 is one spring extremity
y1Y- Coordinate of P1. P1 is one spring extremity
y2Y- Coordinate of P2. P2 is one spring extremity
intX1Y1= 0 if the point (x1, y1) change in time and 0 otherwise
intX2Y2= 0 if the point (x2, y2) change in time and 0 otherwise
lineColor[4]Line color

Interactive.src.Functions.damper

Write the C++ code to generate a Damper

Inputs

NameDescription
fileNameName of the C++ file
parentName of the container hosting the element
nameName of the element
numNumber identifying the element
dDrawing parameter
L1Drawing parameter
L2Drawing parameter
x1X- Coordinate of P1. P1 is one spring extremity
x2X- Coordinate of P2. P2 is one spring extremity
y1Y- Coordinate of P1. P1 is one spring extremity
y2Y- Coordinate of P2. P2 is one spring extremity
intX1Y2= 0 if the point (x1, y1) change in time and 0 otherwise
intX2Y2= 0 if the point (x2, y2) change in time and 0 otherwise
color1[4]The damper color changes form this color to color2
color2[4]The damper color changes form this color to color1

Interactive.src.Functions.pauseButton

Write the C++ code to generate a PauseButton

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the container hosting the element
initialValueInitial value
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.numberField

Write the C++ code to generate a NumberField

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
numNumber identifying the element
parentName of the container hosting the elemnt
minValueMinimum value of the numeric field
maxValueMaximum value of the numeric field
stepWhen the user uses the arrows to change the numeric field value the value will be incremented/decremented by the amount of the step. The default value is 1.0
initialValueInitial value
numberOfDecimalsPrecision of the numeric field, in decimals. Sets how many decimals the spinbox will use for displaying and interpreting doubles. The valid decimal range is 0-13. The default is 2. decimals will be bounded to a value that is within the valid range
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
index 
positionSelection1 if the layout policy is Grid, and 0 otherwise
EnableInt 
Enable 

Interactive.src.Functions.infoButton

Write the C++ code to generate an InfoButton

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the container hosting the elment
selectedInitial value
labelText displayed with the element
alignmentAlignment of the text
imagePath of the image
bgcolor[4]Background color
tooltipText of the tooltip
lettercolor[4]Color of the text
typeFontType of font
styleFontStyle of font
sizeFontSize of font
pathPath of the HTML pages
xPosX coordinate of the window upper left corner in pixels
yPosY coordinate of the window upper left corner in pixels
xWidthWidth of the window in Pixels
yWidthHeight of the window in Pixels
titleText displayed by the window
positionSelection1: the container hosting the element has BorderLayout policy
positionInBorderLayoutPosition in the container hosting the element

Interactive.src.Functions.button1Action

Write the C++ code to generate a Button1Action

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the component hosting the element
selectedInitial value
labelText dispayed with the element
alignmentText alignment
imagePath of the image dispayed with the element
bgcolor[4]Background color
tooltipText of the tooltip
lettercolor[4]Letter color
typeFontType of font
styleFontStyle of font
sizeFontSize of font
positionNumber identifying the interactive element
positionSelection1: the container hosting the element has BorderLayout policy
positionInBorderLayoutPosition in the container hosting the element

Interactive.src.Functions.button2Actions

Write the C++ code to generate a Button2Actions

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the container hosting the element
selectedInitial value
labelName of the text dispayed with the element
alignmentAlignment of the text
imagePaht of the image displayed with the element
bgcolor[4]Background color
tooltipText of the tooltip
lettercolor[4]Letter color
typeFontType of font
styleFontStyle of font
sizeFontSize of font
positionNumber identifying the interactive element
positionSelection1: the container hosting the element has BorderLayout policy
positionInBorderLayoutPosition in the container hosting the element

Interactive.src.Functions.processingFile

Reads the number written in the first line of a file. Then, writes the number read incremented by one

Inputs

NameDescription
filePath of the file

Outputs

NameDescription
numNumber read in the file incremented by one

Interactive.src.Functions.groupBox

Write the C++ code to generate a Panel

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
titleName displayed in the frame
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
positionSelection1: the container hosting the element has Grid policy
layoutLayout policy

Interactive.src.Functions.cylinder

Write the C++ code to generate a Cylinder

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Position[3]Coordinates of the cylinder center
RadiusCylinder radius
HeightCylinder height
Origin[3]Point about which rotations take place
Degrees[3]rotation degrees in x, y and z (from 0 to 360)
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
resolution 
capping 

Interactive.src.Functions.regularPolygon

Write the C++ code to generate a regular polygon inscribed in a circunference

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the circunference center
RadiusCircunference radius
Normal[3]Normal to the polygon surface
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
nSidesNumber of polygon sides
polygoncontrol whether a polygon is produced
polylinecontrol whether a polyline is produced

Interactive.src.Functions.disk

Write the C++ code to generate a Disk

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the circunference center
InnerRadiusInner radius of hole in disc
OuterRadiusOuter radius of disc
RadialResolutionNumber of points in radius direction
CircumferentialResolutionNumber of points in circumferential direction
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time

Interactive.src.Functions.file3DSImporter

Write the C++ code to generate a importer of 3DS files

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
fil33DSName of the 3DS file
Center[3]Position of the circunference center
Origin[3]Point about which all rotation take place
Degrees[3] 
ScaleXScale factor
ScaleY 
ScaleZ 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time

Interactive.src.Functions.cone

Write the C++ code to generate a Cone

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the cylinder center
RadiusCylinder radius
HeightCylinder height
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
resolution 
capping 

Interactive.src.Functions.halfPipe

Write the C++ code to generate a half pipe

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the cylinder center
RadiusMinInner radius
RadiusMaxOuter radius
Lengthlength
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
nx 
ny 
nz 

Interactive.src.Functions.scalarBar

Write the C++ code to generate a scalar bar

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
titleTitle displayed by the scalarBar
xX coordinate of the scalarBar left corner
yY coordinate of the scalarBar left corner
WidthScalarBar width
HeightScalarBar height
nLabelsNumber of labels displayed by the scalarBar
maxNColorsNumber of colors diplayed by the scalarBar
labelFormatformat of the labels displayed by the scalarBar
horizontal1/0: horizontal/vertical orientation of the scalarBar
minHueRangeSet the minimum range in hue
maxHueRangeSet the maximum range in hue
minRangeSet the minimum range of values mapped into the scalarBar
maxRangeSet the maximum range of values mapped into the scalarBar
linearScaleLut1/0: linear/log10 scale of values
linearLut1/0: the values are mapped into colors using a linear ramp/S-curve

Interactive.src.Functions.planarGrid

Write the C++ code to generate a planar grid

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the cylinder center
LengthXLongitud of the grid in the x direction
LengthYLongitud of the grid in the y direction
LengthZLongitud of the grid in the z direction
Origin[3]Point about which rotations take place
Degrees[3] 
x0X coordinate of the bottom left corner of the grid
y0Y coordinate of the bottom left corner of the grid
z0Z coordinate of the bottom left corner of the grid
dimxNumber of cells in the x dimension
dimyNumber of cells in the y dimension
dimzNumber of cells in the z dimension
scalarsV[max(1, max(dimx, 1)*max(dimy, 1)*max(dimz, 1))] 
magnitudeV[max(1, max(dimx, 1)*max(dimy, 1)*max(dimz, 1))] 
vectors[3*max(1, max(dimx, 1)*max(dimy, 1)*max(dimz, 1))] 
scaleVectorScale factor of the vectors
minHueRangeCellLUTSet the minimum range in hue
maxHueRangeCellLUTSet the maximum range in hue
minSatRangeCellLUTSet the minimum range in saturation
maxSatRangeCellLUTSet the maximum range in saturation
minValueRangeCellLUTSet the minimum range in value
maxValueRangeCellLUTSet the maximum range in value
minAlphaRangeCellLUTSet the minimum range in alpha
maxAlphaRangeCellLUTSet the maximum range in alpha
minRangeCellLUTSet the minimum range of values mapped
maxRangeCellLUTSet the maximum range of values mapped
linearScaleCellLUT1/0: linear/log10 scale of values
linearCellLUT1/0: the values are mapped into colors using a linear ramp/S-curve
displayVectors1/0: enable/disable the vector display
px 
py 
pz 
minHueRangeVectorLUTSet the minimum range in hue
maxHueRangeVectorLUTSet the maximum range in hue
minSatRangeVectorLUTSet the minimum range in saturation
maxSatRangeVectorLUTSet the maximum range in saturation
minValueRangeVectorLUTSet the minimum range in value
maxValueRangeVectorLUTSet the maximum range in value
minAlphaRangeVectorLUTSet the minimum range in alpha
maxAlphaRangeVectorLUTSet the maximum range in alpha
minRangeVectorLUTSet the minimum range of values mapped
maxRangeVectorLUTSet the maximum range of values mapped
linearScaleVectorLUT1/0: linear/log10 scale of values
linearVectorLUT1/0: the values are mapped into colors using a linear ramp/S-curve
intPos1: position changes in time
intColor1: color changes in time

Interactive.src.Functions.plane

Write the C++ code to generate a plane

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the circunference center
OriginPoint[3]Specify a point defining the origin of the plane
Point1[3]Specify a point defining the first axis of the plane
Point2[3]Specify a point defining the second axis of the plane
ResolutionXSet the number of x subdivisions in the plane
ResolutionYSet the number of y subdivisions in the plane
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time

Interactive.src.Functions.browser

Write the C++ code to generate a HTML browser

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
parentName of the container hosting the element
pathPath where the HTML file is located
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.displayDouble

Write the C++ code to generate a DisplayDouble object

Inputs

NameDescription
fileNameName of the C++ file
nameName of the element
numNumber identifying the element
parentName of the container hosting the elemnt
formatScientific notation (format as [-]9.9e[+|-]999) or standar format (format as [-]9.9)
precisionNumber of digits after the decimal point
initialValueInitial value
prefixText inserted before the displayed value
sufixText inserted after the displayed value
alignment 
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.plottingPanelQwt

Write the C++ code to generate a PlottingPanel

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
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
positionSelection1 if the layout policy is Grid, and 0 otherwise

Interactive.src.Functions.trailQwt

Write the C++ code to generate a Trail

Inputs

NameDescription
fileNameName of the C++ file
parentName of the container hosting the element
nameName of the element
numNumber identifying the element
maximumPointsMaximum number of points to be displayed
nSkipNumber of points to skip before plotting one
trailLabelLabel of the trail
lineColorColor of the line
sizeSymbolSymbol size
fillingColorSFilling color of the symbol
outlineColorSColor of the symbol outline
styleSymbolSymbol style

Interactive.src.Functions.polygon

Write the C++ code to generate a Polygon

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the circunference center
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
nSidesNumber of polygon sides
posVertexes[3*nSides]Position of the polygon vertexes
polygoncontrol whether a polygon is produced
polylinecontrol whether a polyline is produced

Interactive.src.Functions.vectorTextReal

Write the C++ code to generate a TextReal

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
Center[3]Position of the circunference center
initTextText displayed by the component before the real value
finalTextText displayed by the component after the real value
varReal value displayed by the component
intValue1: real value changes in time
Origin[3]Point about which rotations take place
Degrees[3] 
intPos1: position changes in time
colors[11]Colors
intColor1: colors change in time
scale 

Interactive.src.Functions.trailQwtNPoints

Write the C++ code to generate Npoints Trail

Inputs

NameDescription
fileNameName of the C++ file
parentName of the container hosting the element
nameName of the element
numNumber identifying the element
nPointsNumber of points to be drawn
maximumPointsMaximum number of points to be displayed
nSkipNumber of points to skip before plotting one
trailLabelLabel of the trail
lineColorColor of the line
sizeSymbolSymbol size
fillingColorSFilling color of the symbol
outlineColorSColor of the symbol outline
styleSymbolSymbol style

Interactive.src.Functions.processingFile2

Reads the number written in the first line of a file. Then, writes the number read incremented by one

Inputs

NameDescription
filePath of the file
parentNumNumber identifying the parent

Outputs

NameDescription
numNumber read in the file incremented by one

Interactive.src.Functions.debugFunction

Function for debugging purpose

Inputs

NameDescription
datoVariable a escribir en fichero
numNumber written in ficheroDebug.txt

Interactive.src.Functions.systemRun

Program to run another program in a separate thread

Inputs

NameDescription
fileNameName of the C++ file

Interactive.src.Functions.writeTreeNode

Write the node of a tree in a file

Inputs

NameDescription
vec[50] 
ind 
file 

Outputs

NameDescription
notFound 
num 

Interactive.src.Functions.line

Write the C++ code to generate a Line

Inputs

NameDescription
fileNameName of the C++ file
parentName of the component hosting the element
nameName of the element
numNumber identifying the element
nPointsNumber of line points
points[nPoints*3]Position of the points
Center[3]Position of the line center
lineWidthLine width
representationWireframe1: line, 0: closed polygonal
Origin[3]Point about which rotations take place
Degrees[3] 
colors[11]Colors
intPos1: position changes in time
intColor1: colors change in time
Automatically generated Thu Apr 28 12:24:24 2022.