class CAVERN_perfCAVEPickNMove_c Performer CAVE Picking and Moving class
|
| PICKING_RAY_LENGTH Default picking ray length is set at 100. |
|
| setRayLength (int len) Set the length of the picking ray. |
| | CAVERN_perfCAVEPickNMove_c (pfScene* theScene, uint mask, int button ) Constructor for picking object |
| | process () Perform the check for button presses and picking and moving |
|
| setMask (uint mask) Set the intersection mask. |
|
| setScene (pfScene *theScene) Tell this class the Performer scene. |
|
| setCAVEButton (int button) Set the CAVE button to use to do picking. |
| | setIncludeBackFace (int val) Determine if you want backface polygons to be pickable |
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.
pfDCS* process()
void setIncludeBackFace(int val)
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