The Explore command provides an easy-to-use tool for creating interactive applications within the current document or worksheet. Maple 18 introduces many significant updates and additions, including:
In addition to the list above, the interactive pop-up dialog window of the Explore command has also been enhanced. The dialog window appears when the parameters option is not supplied in the calling sequence of the Explore command. This includes the case of invoking Explore by using the context-sensitive menu after right-clicking on an expression or unevaluated function call.
The controls for parameters can now be placed either below, to the left, or to the right of the display component. All parameter controls can be placed via a single optional argument, placement, to the Explore command, as a customized default.
The parameter controls placement can also be specified individually as an override of any default setting.
> |
|
||||||
|
Parameters whose values are specified as a range can now be one of several types of variable controller.
The variable controller choices are: slider, dial, volumegauge, meter, and rotarygauge.
The size of the plotting component can be optionally specified. By default, its size is determined by the size of the initial plot.
> |
|
Parameters whose values are specified as lists are incorporated as ComboBox controls.
> |
|
The display of the generated frames at each set of parameter values can be animated. Each parameter control can have its own check box which determines whether it will play with the animation. These check boxes can be unselected while the animation is playing.
Note that any parameters whose animation check box is unselected during play can still be interactively controlled.
The animation check boxes can be specified as a single new default option, and this in turn can be overridden on any parameter's individual specification. The animation check boxes can be specified as present and initially selected, present and initially unselected, or absent altogether.
By default, any combo box control of a discrete valued parameter does not get an animation check box unless this is supplied in that parameter's individual specification.
> |
|
The loop option allows for looped play of the animated sequence.
The loop control checkbox can be omitted altogether (default), initially selected, or initially unselected.
> |
|
Pairs of range controls (e.g. sliding controls) can be coupled as interactive marker controls on 2-D plots. Each marker is displayed as a cross in the plot, which may be dragged interactively using the mouse pointer.
By default, the individual sliding controls associated with marker parameters are hidden, but these can be optionally shown either all together or individually.
> |
> |
> |
|
In Maple 18, procedures which return images can be explored interactively.
Arrays which are supported by the ImageTools package can be interpreted as images.
The following is a basic example involving a function call which evaluates to a 2-dimensional datatype=float[8] Array. This is interpreted as a grayscale image.
> |
|
||
|
A function call to a command or procedure, which returns an image, can also be explored.
> |
> |
|
Exploration of images can also be animated.
> | |
> |
|
The next example uses a self-initializing module to perform efficient in-place updates of an image Array as the parameter values change. Right click the code edit region and choose 'Execute Code' in order to initialize the procedure.
A single call to F will produce a color image as output, which can be visualized by embedding it in the current worksheet.
> |
An interactive application can now be easily constructed.
> |
|