Functions | |
void | Button (string Name, string ToolTip) |
Create a button tool. | |
scalar | CheckBox (string Name) |
Evaluate a check box tool. | |
scalar | CheckBox (string Name, scalar Init, string ToolTip) |
Create a check box tool. | |
scalar | Choice (string Name) |
Evaluate a combo box tool. | |
scalar | Choice (string Name, list Elts, counter Init, string ToolTip) |
Create a combo box tool. | |
scalar | Input (string Name) |
Evaluate an input tool. | |
scalar | Input (string Name, scalar Min, scalar Max, scalar Init, string ToolTip) |
Create an input tool. | |
string | InputText (string sName) |
Evaluate a text input tool. | |
string | InputText (string sName, counter bCallback, string sText, string ToolTip) |
Create a text input tool. | |
scalar | Slider (string sName) |
Evaluate a stepper tool. | |
scalar | Slider (string Name, scalar Min, scalar Max, scalar Step, scalar Init, string ToolTip) |
Create a slider tool. | |
scalar | Stepper (string sName) |
Evaluate a stepper tool. | |
scalar | Stepper (string sName, scalar dMin, scalar dMax, scalar dStep, scalar dLargeStep, scalar dInit, string ToolTip) |
Create a stepper tool. |
|
Create a button tool.
Button("Show Sphere"); creates a tool that looks like this
![]() The name of the button is drawn inside it. When a button is pressed the script is reexecuted with ExecMode set to EM_TOOL and ToolName set to the name of the button tool. See also User Interaction with Tools for more details and examples. |
|
Evaluate a check box tool.
|
|
Create a check box tool.
CheckBox("Show Sphere", 0); creates an input that looks like this
![]() The title is drawn on top. The initial value of the check box is given by Init. If the Init is zero, the check box is not selected, otherwise it is selected. The return value is 1 for a selected check box and 0 for an unselected check box. See also User Interaction with Tools for more details and examples. |
|
Evaluate a combo box tool.
|
|
Create a combo box tool.
FactorizeBlade into two orthogonal spheres. The user may now select the sphere that shall be displayed.
DefVarsN3(); :IPNS; :Red; :P1 = VecN3(1,-2,3); :P2 = VecN3( 3,-1,4); :P3 = VecN3( 2,7,-1); :C = (P1 ^ P2 ^ P3) * I:Yellow; L = FactorizeBlade( C ); // C ~ 'L(1) ^ L(2)'. c = Choice("Spheres", L, 1); :L(c):Blue + Alpha + Alpha; // Display one of the spheres.
![]() |
|
Evaluate an input tool.
|
|
Create an input tool.
Input("Radius", 0, 2, 1); creates an input that looks like this
![]() The title is drawn on top, while the current value is displayed in the input field. The minimum and maximum allowed values are set by Min and Max, respectively. The initial value of the input is given by Init. See also User Interaction with Tools for more details and examples. |
|
Evaluate a text input tool.
|
|
Create a text input tool.
|
|
Evaluate a stepper tool.
|
|
Create a slider tool.
Slider("Radius", 0, 2, 0.1, 1); creates a slider that looks like this
![]() The title is drawn on top, while the current value is displayed to the left of the slider. When the slider is moved into its left most position, it takes on the value Min. At its right most position its value is Max. The values in between can only be selected in steps of Step. The initial value of the slider is given by Init. See also User Interaction with Tools for more details and examples. |
|
Evaluate a stepper tool.
|
|
Create a stepper tool.
Stepper("Radius", 0, 1, 0.01, 0.1, 0.5); creates a stepper that looks like this
![]() The title is drawn on top, while the current value is displayed in the middle of the stepper tool. Clicking on the single arrows changes the current value by a small step, while clicking on the double arrows changes the current value by a large step. See also User Interaction with Tools for details and examples. |