Bounding Box

The bounding box, or more accurately the bounding shape, may be used to graphically subset data displayed on an application such as Image. It can also be used to control the inset display in WindowTool. Under Java 2, the bounding box may be created in the shape of an ellipse or polygon.

Bounding boxes can be inclusive or exclusive. Inclusive bounding boxes represent all the data within the edges of the box; exclusive ones represent all the data outside the edges of the box. The edges of the box are included in each case. If a bounding box is active on an application, the application will output the contents of the bounding box (or everything outside the bounding box in exclusive mode) via the dragNdrop button.

The Bounding Box can be created on a display app (such as Image) from the "Menu" button:

Menus
Selecting "Resize Bounding Box" will create a rectangular bounding box which has the same size as the window. Clicking the mouse anywhere in the data display window will anchor one corner of the bounding box. Drag the mouse and release to resize the bounding box.

"Move Bounding Box" fixes the size of the bounding box and allows the user to move the position of the box. Click anywhere in the data display window and drag the mouse to push the bounding box around. Note that you can push the bounding box off of the edge of the data window. Any part of the bounding box which is not over data will not be used.

"Remove Bounding Box" removes the Bounding Box and restores the Crosshair.

"Exclusive Bounding Box" puts an inclusive Bounding Box in exclusive mode, or puts an exclusive Bounding Box in inclusive mode. Exclusive bounding boxes are filled by a semi-transparent red color.

"Rectangle" is the default shape for a Bounding Box.

"Ellipse" changes the bounding box to an ellipse. Ellipses are drawn in the same way as rectangles; click to anchor a corner of the bounding rectangle and drag to create the ellipse.

"Polygon" changes the bounding box to a polygon. Polygons are drawn by clicking the mouse at each desired vertex. Double clicking at the last point will close the polygon (i.e. draw a line from the current mouse position to the first vertex). Once a polygon is closed, the vertices may be moved by clicking near them and dragging the mouse. A polygon which is not closed is designated by a dashed line. An exclusive polygon which is not closed is filled with a semi-transparent gradient pattern.

"New Polygon" removes the existing polygon. The user may now click anywhere in the image to select the first vertex of the new polygon.


WebWinds Home / Oct 5, 2001