<<<<<<<<<<<<<<<<<

interactive_renderer(Metaclass) interactive_renderer(Metaclass)

NAME

interactive_renderer - adds plot3d mouse interaction to rendering windows.

DESCRIPTION

The interactive renderer is a metaclass that handles plot3d interaction for a rendering window. You treat it just like a renderer. The plot3d interactor style is as follows. The left mouse button rotates the camera. As long as you hold the left mouse button down the camera will continue to rotate. The direction and speed of rotation is determined by the position of the mouse. At the center of the window there will be no rotation the farther away from the center you go the faster the image will rotate in that direction.

The middle mouse button controls zooming. It works much like the left mouse button, moving the mouse up will zoom out, down zooms in. The right mouse button controls translation. It works much like rotation with the left mouse button. There are some keys that can be used also. Pressing "w" will switch all the actors to wireframe, pressing "s" switches all to surface. Pressing "r" will reset the camera so the actors are centered in the window. This is good to use when you get lost.

This renderer has to run on top of X windows. It also will handle window resizing and expose events for you. This object is currently located in /projects/biomag/meta or $LYMB_ROOT/meta. Easiest just to add it to your lymb_path

SUPERCLASS

renderer (sort of)

INSTANCE VARIABLES

A whole bunch o' stuff you typically don't want to mess with.

MESSAGES

render! See renderer for more info.

pick_start_action=arg_procedure_name sets the actions that will be run when a pick is initiated

pick_drag_action=arg_procedure_name sets the actions that will be run while a picked object is being dragged

pick_end_action=arg_procedure_name sets the actions that will be run when a pick is completed

picked_actor? returns true (1) if an actor was picked ot false (0) if not.

picked_actor? returns the name of the picked actor.

picked_coords? returns the name of the picked actor.

picked_primitive? returns the id of the picked geometric primtive.

picked_primitive_type? returns the type (a string label) of the picked geometric primtive. The type varies depending on the form of surface data.

EXAMPLE

<interactive_renderer.meta

interactive_renderer new: aren actors= some_actor render!;

SEE ALSO

renderer metaclass


Please send comments and suggestions to
consult@rpi.edu