class CAVERN_perfCAVEPickNMove_c

Performer CAVE Picking and Moving class

Public Fields

static const int PICKING_RAY_LENGTH
Default picking ray length is set at 100.

Public Methods

void setRayLength (int len)
Set the length of the picking ray.
CAVERN_perfCAVEPickNMove_c (pfScene* theScene, uint mask, int button )
Constructor for picking object
pfDCS* process ()
Perform the check for button presses and picking and moving
void setMask (uint mask)
Set the intersection mask.
void setScene (pfScene *theScene)
Tell this class the Performer scene.
void setCAVEButton (int button)
Set the CAVE button to use to do picking.
void setIncludeBackFace (int val)
Determine if you want backface polygons to be pickable

Documentation

Performer CAVE Picking and Moving class. This class lets you pick and move objects in a Performer CAVE program. When adding objects to your performer scene graph you need to place them under a DCS (or a pfNetDCS (see netdcs module directory). Then you need to select an intersection mask for the DCS. The intersection mask allows you to isolate classes of objects that are pickable.

Once that's done you can create the CAVERN_perfCAVEPickNMove_c class (see constructor). Call the process() member function in your CAVE main loop to do the picking and moving.

See the demo program for an example.

CAVERN_perfCAVEPickNMove_c(pfScene* theScene, uint mask, int button )
Constructor for picking object
Parameters:
theScene - the performer pfScene.
mask - the Performer intersection mask to use.
button - the CAVE wand button to use for selection. 1=left, 2=middle, 3=right.

pfDCS* process()
Perform the check for button presses and picking and moving
Returns:
Returns the DCS of the object being picked and moved.

void setIncludeBackFace(int val)
Determine if you want backface polygons to be pickable
Parameters:
val - set to 1 for yes and 0 for no. Default is yes.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de