- Aide Scilab
- Bibliothèque graphique
- 2d_plot
- 3d_plot
- annotation
- axes_operations
- axis
- bar_histogram
- Gestion des couleurs
- geometric_shapes
- handle
- interaction
- pie
- polygon
- style
- text
- transform
- window_control
- Datatips
- figure_operations
- load_save
- property
- Graphics
- alufunctions
- object_editor
- square
- xbasr
- xchange
- xclear
- xdel
- xgetech
- xgraduate
- xgrid
- xname
- xnumb
- xpause
- xsegs
- xset
- xsetech
- xsetm
- GlobalProperty
- clear_pixmap
- Compound_properties
- graphics_entities
- pixel_drawing_mode
- plzr
- rubberbox
- segs_properties
- show_pixmap
- twinkle
- xget
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
rubberbox
Rubberband box for rectangle selection
Calling Sequence
[final_rect,btn]=rubberbox() [final_rect,btn]=rubberbox(initial_rect) [final_rect,btn]=rubberbox(edition_mode) [final_rect,btn]=rubberbox(initial_rect, edition_mode)
Arguments
- initial_rect
vector with two or four entries. With four entries it gives the initial rectangle defined by [x_left, y_top, width, height], with two entries width and height are supposed to be 0.
- edition_mode
a boolean, if edition_mode is
%t
button press selects the first corner, release selects the opposite corner. If edition_mode is%f
, a button press or click selects the first corner, a click is requested to select the opposite corner. The default value is %f.- final_rect
a rectangle defined by [x_left, y_top, width, height]
- btn
an integer, the number of the mouse button clicked
Description
rubberbox(initial_rect)
tracks a rubberband box in
the current graphic window, following the mouse. When a button is clicked rubberbox
returns the final
rectangles definition in final_Rect
. If the argument
initial_rect
is not specified, a click is needed to fix the initial
corner position.
Examples
See Also
<< plzr | Bibliothèque graphique | segs_properties >> |