| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sg/pickingcallback.h>

Public Member Functions | |
| PickingCallback (const SO< Callback1< IntersectionInfo * > > &callback, const SO< Shape > &shape=NULL, ButtonEvent::Button button=ButtonEvent::MouseButton1, ButtonEvent::Change action=ButtonEvent::Released, ButtonEvent::Modifier modifier=ButtonEvent::NoModifier) | |
| PickingCallback (const SO< Callback1< IntersectionInfo * > > &callback, const SO< Iterator< SO< Shape > > > &shapes, ButtonEvent::Button button=ButtonEvent::MouseButton1, ButtonEvent::Change action=ButtonEvent::Released, ButtonEvent::Modifier modifier=ButtonEvent::NoModifier) | |
| virtual BehaviorNode::InvalidationHint | handle (Event *event) |
| Realizes the picking callback behavior. | |
| VRS_TYPEINFO (PickingCallback, LeafBehavior) | |
| VRS::PickingCallback::PickingCallback | ( | const SO< Callback1< IntersectionInfo * > > & | callback, | |
| const SO< Shape > & | shape = NULL, |
|||
| ButtonEvent::Button | button = ButtonEvent::MouseButton1, |
|||
| ButtonEvent::Change | action = ButtonEvent::Released, |
|||
| ButtonEvent::Modifier | modifier = ButtonEvent::NoModifier | |||
| ) |
The given callback is called if the given shape is hit by the mouse pointer and the given conditions (mouse button, mouse action, and additional modifier key) are satisfied. The argument of the callback is an intersection info object (see IntersectionInfo) obtained by a ray query (see RayQuery). If no shape is specified, the callback is called for each shape.
| VRS::PickingCallback::PickingCallback | ( | const SO< Callback1< IntersectionInfo * > > & | callback, | |
| const SO< Iterator< SO< Shape > > > & | shapes, | |||
| ButtonEvent::Button | button = ButtonEvent::MouseButton1, |
|||
| ButtonEvent::Change | action = ButtonEvent::Released, |
|||
| ButtonEvent::Modifier | modifier = ButtonEvent::NoModifier | |||
| ) |
The given callback is called if one of the given shapes is hit by the mouse pointer and the given conditions (mouse button, mouse action, and additional modifier key) are satisfied. The argument of the callback is an intersection info object (see IntersectionInfo) obtained by a ray query (see RayQuery).
| virtual BehaviorNode::InvalidationHint VRS::PickingCallback::handle | ( | Event * | event | ) | [virtual] |
| VRS::PickingCallback::VRS_TYPEINFO | ( | PickingCallback | , | |
| LeafBehavior | ||||
| ) |