Functions for C++ code generation and other functions used by the classes contained in the ViewElements package
Functions package includes the following Modelica functions:
Name | Description |
---|---|
![]() |
First lines of the C++ file |
![]() |
Last lines of the main file |
![]() |
Write the C++ code to generate the MainFrame |
![]() |
Write the C++ code to generate a Dialog window |
![]() |
Write the C++ code to generate a Canvas |
![]() |
Write the C++ code to generate a Panel |
![]() |
Write the C++ code to generate a Cube |
![]() |
Write the C++ code to generate a RadioButton |
![]() |
Write the C++ code to generate a Slider |
![]() |
Write the C++ code to generate a Label |
![]() |
Write the C++ code required to generate a Sphere |
![]() |
Adding the components of a vector |
![]() |
Write the C++ code to generate a Text |
![]() |
Write the C++ code to generate an Arrow |
![]() |
Write the C++ code to generate a PlottingPanel |
![]() |
Write the C++ code to generate a Trail |
![]() |
Write the C++ code to generate a CheckBox |
![]() |
Write the C++ code to generate a Spring |
![]() |
Write the C++ code to generate a Damper |
![]() |
Write the C++ code to generate a PauseButton |
![]() |
Write the C++ code to generate a NumberField |
![]() |
Write the C++ code to generate an InfoButton |
![]() |
Write the C++ code to generate a Button1Action |
![]() |
Write the C++ code to generate a Button2Actions |
![]() |
Reads the number written in the first line of a file. Then, writes the number read incremented by one |
![]() |
Write the C++ code to generate a Panel |
![]() |
Write the C++ code to generate a Cylinder |
![]() |
Write the C++ code to generate a regular polygon inscribed in a circunference |
![]() |
Write the C++ code to generate a Disk |
![]() |
Write the C++ code to generate a importer of 3DS files |
![]() |
Write the C++ code to generate a Cone |
![]() |
Write the C++ code to generate a half pipe |
![]() |
Write the C++ code to generate a scalar bar |
![]() |
Write the C++ code to generate a planar grid |
![]() |
Write the C++ code to generate a plane |
![]() |
Write the C++ code to generate a HTML browser |
![]() |
Write the C++ code to generate a DisplayDouble object |
![]() |
Write the C++ code to generate a PlottingPanel |
![]() |
Write the C++ code to generate a Trail |
![]() |
Write the C++ code to generate a Polygon |
![]() |
Write the C++ code to generate a TextReal |
![]() |
Write the C++ code to generate Npoints Trail |
![]() |
Reads the number written in the first line of a file. Then, writes the number read incremented by one |
![]() |
Function for debugging purpose |
![]() |
Program to run another program in a separate thread |
![]() |
Write the node of a tree in a file |
![]() |
Write the C++ code to generate a Line |
First lines of the C++ file
Name | Description |
---|---|
fileName | Name of the C++ file |
ipAddress | Ip address in ipv4 |
serverPort | Number of the server port |
numberGUI | Number of GUIs |
Name | Description |
---|---|
o |
Last lines of the main file
Name | Description |
---|---|
fileName | Name of the main file |
Write the C++ code to generate the MainFrame
Name | Description |
---|---|
fileName | Name of the file |
name | Name of the component |
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 |
size[2] | Size of the window in pixels |
LayoutPolicy | Layout policy of the element |
Write the C++ code to generate a Dialog window
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the component |
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 |
size[2] | Size of the window in pixels |
varName | String associated to a check-box |
LayoutPolicy | Layout policy |
Write the C++ code to generate a Canvas
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
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 |
positionSelection | 1: the container hosting the element has 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 |
Write the C++ code to generate a Panel
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
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 |
positionSelection | 1: the container hosting the element has Grid policy |
layout | Layout policy |
Write the C++ code to generate a Cube
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the sphere center |
xLength | Length of the cube in the x-direction |
yLength | Length of the cube in the y-direction |
zLength | Length of the cube in the z-direction |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
Write the C++ code to generate a RadioButton
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the component hosting the element |
buttonValue | Initial value |
index | Number identifying the interactive element |
text | Text displayed by the element |
buttonGroup | The radio-button belongs to this group |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code to generate a Slider
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the container hosting the element |
initialValue | Initial value |
stringFormat | Format of the text displayed by the component |
tickFormat | Format of the text displayed with the ticks |
tickNumber | Number of ticks |
minimum | Minimum value of the variable linked to the component |
maximum | Maximum value of the variable linked to the component |
factor | Scale factor |
enable | 1: enabled, 0: disabled |
position | Number identifying the interactive element |
positionSelection | 1: the container hosting the element has BorderLayout policy |
positionInBorderLayout | Position in the container hosting the element |
Write the C++ code to generate a Label
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the container hosting the element |
text | Text to be displayed |
alignment | Text alignment |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code required to generate a Sphere
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the sphere center |
Radius | Radius |
Origin[3] | Point about which rotations take place |
Degrees[3] | Rotational degrees in x, y and z |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
thetaResolution | |
startTheta | |
endTheta | |
phiResolution | |
startPhi | |
endPhi | |
tessellation |
Adding the components of a vector
Name | Description |
---|---|
A[:] | Vector |
Name | Description |
---|---|
Result | Result |
Write the C++ code to generate a Text
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the circunference center |
Text | Text displayed by the component |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
scale |
Write the C++ code to generate an Arrow
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the container hosting the element |
name | Name of the element |
num | Number identifying the component |
Center[3] | Position of the arrow center |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
TipResolution | By default, the tip resolution is 6. TipResolution = 1 ==> the tip is represented by a triangle |
TipLength | |
TipRadius | |
ShaftRadius | |
ShaftResolution | Set the resolution of the shaft. 2 gives a rectangle |
scale |
Write the C++ code to generate a PlottingPanel
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
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[3] | Plot Color |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code to generate a Trail
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the container hosting the element |
name | Name of the element |
num | Number identifying the element |
maximumPoints | Maximum number of points to be displayed |
nSkip | Number of points to skip before plotting one |
trailLabel | Label of the trail |
lineColor[3] | Color of the line |
Write the C++ code to generate a CheckBox
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the container hosting the element |
initialValue | Initial value |
label | Text displayed with the checkBox |
varName | String 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 |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code to generate a Spring
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
d | Drawing Parameter |
N | Drawing Parameter |
A | Drawing Parameter |
stroke | Stroke of the line |
x1 | X- Coordinate of P1. P1 is one spring extremity |
x2 | X- Coordinate of P2. P2 is one spring extremity |
y1 | Y- Coordinate of P1. P1 is one spring extremity |
y2 | Y- 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 |
Write the C++ code to generate a Damper
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the container hosting the element |
name | Name of the element |
num | Number identifying the element |
d | Drawing parameter |
L1 | Drawing parameter |
L2 | Drawing parameter |
x1 | X- Coordinate of P1. P1 is one spring extremity |
x2 | X- Coordinate of P2. P2 is one spring extremity |
y1 | Y- Coordinate of P1. P1 is one spring extremity |
y2 | Y- 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 |
Write the C++ code to generate a PauseButton
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the container hosting the element |
initialValue | Initial value |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code to generate a NumberField
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
num | Number identifying the element |
parent | Name of the container hosting the elemnt |
minValue | Minimum value of the numeric field |
maxValue | Maximum value of the numeric field |
step | When 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 |
initialValue | Initial value |
numberOfDecimals | Precision 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 |
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 |
index | |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
EnableInt | |
Enable |
Write the C++ code to generate an InfoButton
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the container hosting the elment |
selected | Initial value |
label | Text displayed with the element |
alignment | Alignment of the text |
image | Path of the image |
bgcolor[4] | Background color |
tooltip | Text of the tooltip |
lettercolor[4] | Color of the text |
typeFont | Type of font |
styleFont | Style of font |
sizeFont | Size of font |
path | Path of the HTML pages |
xPos | X coordinate of the window upper left corner in pixels |
yPos | Y coordinate of the window upper left corner in pixels |
xWidth | Width of the window in Pixels |
yWidth | Height of the window in Pixels |
title | Text displayed by the window |
positionSelection | 1: the container hosting the element has BorderLayout policy |
positionInBorderLayout | Position in the container hosting the element |
Write the C++ code to generate a Button1Action
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the component hosting the element |
selected | Initial value |
label | Text dispayed with the element |
alignment | Text alignment |
image | Path of the image dispayed with the element |
bgcolor[4] | Background color |
tooltip | Text of the tooltip |
lettercolor[4] | Letter color |
typeFont | Type of font |
styleFont | Style of font |
sizeFont | Size of font |
position | Number identifying the interactive element |
positionSelection | 1: the container hosting the element has BorderLayout policy |
positionInBorderLayout | Position in the container hosting the element |
Write the C++ code to generate a Button2Actions
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the container hosting the element |
selected | Initial value |
label | Name of the text dispayed with the element |
alignment | Alignment of the text |
image | Paht of the image displayed with the element |
bgcolor[4] | Background color |
tooltip | Text of the tooltip |
lettercolor[4] | Letter color |
typeFont | Type of font |
styleFont | Style of font |
sizeFont | Size of font |
position | Number identifying the interactive element |
positionSelection | 1: the container hosting the element has BorderLayout policy |
positionInBorderLayout | Position in the container hosting the element |
Reads the number written in the first line of a file. Then, writes the number read incremented by one
Name | Description |
---|---|
file | Path of the file |
Name | Description |
---|---|
num | Number read in the file incremented by one |
Write the C++ code to generate a Panel
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
title | Name displayed in the frame |
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 |
positionSelection | 1: the container hosting the element has Grid policy |
layout | Layout policy |
Write the C++ code to generate a Cylinder
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Position[3] | Coordinates of the cylinder center |
Radius | Cylinder radius |
Height | Cylinder height |
Origin[3] | Point about which rotations take place |
Degrees[3] | rotation degrees in x, y and z (from 0 to 360) |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
resolution | |
capping |
Write the C++ code to generate a regular polygon inscribed in a circunference
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the circunference center |
Radius | Circunference radius |
Normal[3] | Normal to the polygon surface |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
nSides | Number of polygon sides |
polygon | control whether a polygon is produced |
polyline | control whether a polyline is produced |
Write the C++ code to generate a Disk
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the circunference center |
InnerRadius | Inner radius of hole in disc |
OuterRadius | Outer radius of disc |
RadialResolution | Number of points in radius direction |
CircumferentialResolution | Number of points in circumferential direction |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
Write the C++ code to generate a importer of 3DS files
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
fil33DS | Name of the 3DS file |
Center[3] | Position of the circunference center |
Origin[3] | Point about which all rotation take place |
Degrees[3] | |
ScaleX | Scale factor |
ScaleY | |
ScaleZ | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
Write the C++ code to generate a Cone
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the cylinder center |
Radius | Cylinder radius |
Height | Cylinder height |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
resolution | |
capping |
Write the C++ code to generate a half pipe
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the cylinder center |
RadiusMin | Inner radius |
RadiusMax | Outer radius |
Length | length |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
nx | |
ny | |
nz |
Write the C++ code to generate a scalar bar
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
title | Title displayed by the scalarBar |
x | X coordinate of the scalarBar left corner |
y | Y coordinate of the scalarBar left corner |
Width | ScalarBar width |
Height | ScalarBar height |
nLabels | Number of labels displayed by the scalarBar |
maxNColors | Number of colors diplayed by the scalarBar |
labelFormat | format of the labels displayed by the scalarBar |
horizontal | 1/0: horizontal/vertical orientation of the scalarBar |
minHueRange | Set the minimum range in hue |
maxHueRange | Set the maximum range in hue |
minRange | Set the minimum range of values mapped into the scalarBar |
maxRange | Set the maximum range of values mapped into the scalarBar |
linearScaleLut | 1/0: linear/log10 scale of values |
linearLut | 1/0: the values are mapped into colors using a linear ramp/S-curve |
Write the C++ code to generate a planar grid
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the cylinder center |
LengthX | Longitud of the grid in the x direction |
LengthY | Longitud of the grid in the y direction |
LengthZ | Longitud of the grid in the z direction |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
x0 | X coordinate of the bottom left corner of the grid |
y0 | Y coordinate of the bottom left corner of the grid |
z0 | Z coordinate of the bottom left corner of the grid |
dimx | Number of cells in the x dimension |
dimy | Number of cells in the y dimension |
dimz | Number 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))] | |
scaleVector | Scale factor of the vectors |
minHueRangeCellLUT | Set the minimum range in hue |
maxHueRangeCellLUT | Set the maximum range in hue |
minSatRangeCellLUT | Set the minimum range in saturation |
maxSatRangeCellLUT | Set the maximum range in saturation |
minValueRangeCellLUT | Set the minimum range in value |
maxValueRangeCellLUT | Set the maximum range in value |
minAlphaRangeCellLUT | Set the minimum range in alpha |
maxAlphaRangeCellLUT | Set the maximum range in alpha |
minRangeCellLUT | Set the minimum range of values mapped |
maxRangeCellLUT | Set the maximum range of values mapped |
linearScaleCellLUT | 1/0: linear/log10 scale of values |
linearCellLUT | 1/0: the values are mapped into colors using a linear ramp/S-curve |
displayVectors | 1/0: enable/disable the vector display |
px | |
py | |
pz | |
minHueRangeVectorLUT | Set the minimum range in hue |
maxHueRangeVectorLUT | Set the maximum range in hue |
minSatRangeVectorLUT | Set the minimum range in saturation |
maxSatRangeVectorLUT | Set the maximum range in saturation |
minValueRangeVectorLUT | Set the minimum range in value |
maxValueRangeVectorLUT | Set the maximum range in value |
minAlphaRangeVectorLUT | Set the minimum range in alpha |
maxAlphaRangeVectorLUT | Set the maximum range in alpha |
minRangeVectorLUT | Set the minimum range of values mapped |
maxRangeVectorLUT | Set the maximum range of values mapped |
linearScaleVectorLUT | 1/0: linear/log10 scale of values |
linearVectorLUT | 1/0: the values are mapped into colors using a linear ramp/S-curve |
intPos | 1: position changes in time |
intColor | 1: color changes in time |
Write the C++ code to generate a plane
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number 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 |
ResolutionX | Set the number of x subdivisions in the plane |
ResolutionY | Set the number of y subdivisions in the plane |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
Write the C++ code to generate a HTML browser
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
parent | Name of the container hosting the element |
path | Path where the HTML file is located |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code to generate a DisplayDouble object
Name | Description |
---|---|
fileName | Name of the C++ file |
name | Name of the element |
num | Number identifying the element |
parent | Name of the container hosting the elemnt |
format | Scientific notation (format as [-]9.9e[+|-]999) or standar format (format as [-]9.9) |
precision | Number of digits after the decimal point |
initialValue | Initial value |
prefix | Text inserted before the displayed value |
sufix | Text inserted after the displayed value |
alignment | |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code to generate a PlottingPanel
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
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 |
positionSelection | 1 if the layout policy is Grid, and 0 otherwise |
Write the C++ code to generate a Trail
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the container hosting the element |
name | Name of the element |
num | Number identifying the element |
maximumPoints | Maximum number of points to be displayed |
nSkip | Number of points to skip before plotting one |
trailLabel | Label of the trail |
lineColor | Color of the line |
sizeSymbol | Symbol size |
fillingColorS | Filling color of the symbol |
outlineColorS | Color of the symbol outline |
styleSymbol | Symbol style |
Write the C++ code to generate a Polygon
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the circunference center |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
nSides | Number of polygon sides |
posVertexes[3*nSides] | Position of the polygon vertexes |
polygon | control whether a polygon is produced |
polyline | control whether a polyline is produced |
Write the C++ code to generate a TextReal
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
Center[3] | Position of the circunference center |
initText | Text displayed by the component before the real value |
finalText | Text displayed by the component after the real value |
var | Real value displayed by the component |
intValue | 1: real value changes in time |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
intPos | 1: position changes in time |
colors[11] | Colors |
intColor | 1: colors change in time |
scale |
Write the C++ code to generate Npoints Trail
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the container hosting the element |
name | Name of the element |
num | Number identifying the element |
nPoints | Number of points to be drawn |
maximumPoints | Maximum number of points to be displayed |
nSkip | Number of points to skip before plotting one |
trailLabel | Label of the trail |
lineColor | Color of the line |
sizeSymbol | Symbol size |
fillingColorS | Filling color of the symbol |
outlineColorS | Color of the symbol outline |
styleSymbol | Symbol style |
Reads the number written in the first line of a file. Then, writes the number read incremented by one
Name | Description |
---|---|
file | Path of the file |
parentNum | Number identifying the parent |
Name | Description |
---|---|
num | Number read in the file incremented by one |
Function for debugging purpose
Name | Description |
---|---|
dato | Variable a escribir en fichero |
num | Number written in ficheroDebug.txt |
Program to run another program in a separate thread
Name | Description |
---|---|
fileName | Name of the C++ file |
Write the node of a tree in a file
Name | Description |
---|---|
vec[50] | |
ind | |
file |
Name | Description |
---|---|
notFound | |
num |
Write the C++ code to generate a Line
Name | Description |
---|---|
fileName | Name of the C++ file |
parent | Name of the component hosting the element |
name | Name of the element |
num | Number identifying the element |
nPoints | Number of line points |
points[nPoints*3] | Position of the points |
Center[3] | Position of the line center |
lineWidth | Line width |
representationWireframe | 1: line, 0: closed polygonal |
Origin[3] | Point about which rotations take place |
Degrees[3] | |
colors[11] | Colors |
intPos | 1: position changes in time |
intColor | 1: colors change in time |