OpenCOVER
|
#include <coSensor.h>
Public Member Functions | |
virtual int | hit (vrui::vruiHit *hit) |
virtual void | miss () |
coPickSensor (osg::Node *n, vrui::coInteraction::InteractionType type=vrui::coInteraction::ButtonA, vrui::coInteraction::InteractionPriority priority=vrui::coInteraction::Medium) | |
virtual | ~coPickSensor () |
virtual void | update () |
virtual int | getType () |
Public Member Functions inherited from coSensor | |
coSensor (osg::Node *n, vrui::coInteraction::InteractionType type=vrui::coInteraction::ButtonA, vrui::coInteraction::InteractionPriority priority=vrui::coInteraction::Medium) | |
virtual | ~coSensor () |
virtual void | activate () |
virtual void | disactivate () |
virtual void | enable () |
virtual void | disable () |
virtual void | calcDistance () |
virtual float | getDistance () |
virtual void | setThreshold (float d) |
virtual void | setButtonSensitive (int s) |
osg::Node * | getNode () |
Public Member Functions inherited from vrui::coAction | |
coAction () | |
Constructor. More... | |
virtual | ~coAction () |
Destructor. More... | |
void | setFrame (unsigned int frame) |
INTERNAL set the framecounter (used to produce the miss call) More... | |
unsigned int | getFrame () const |
INTERNAL get the framecounter (used to produce the miss call) More... | |
void | setNode (vruiNode *) |
INTERNAL set the node this action belongs to. More... | |
void | addChild (coAction *) |
INTERNAL add a child action. More... | |
virtual int | hitAll (vruiHit *hit) |
INTERNAL same as miss/hit, but do it for all children as well. More... | |
virtual void | missAll () |
INTERNAL same as miss/hit, but do it for all children as well. More... | |
Public Attributes | |
osg::Vec3 | hitPoint |
bool | hitActive |
bool | hitWasActive |
vrui::OSGVruiNode * | vNode |
Additional Inherited Members | |
Public Types inherited from coSensor | |
enum | { NONE = 0, PROXIMITY, TOUCH, ISECT, PICK, HAND } |
Public Types inherited from vrui::coAction | |
enum | Result { ACTION_DONE = 0x00, ACTION_CALL_ON_MISS = 0x01, ACTION_UNDEF = 0x02 } |
Protected Attributes inherited from coSensor | |
osg::Node * | node |
int | active |
float | threshold |
float | sqrDistance |
int | buttonSensitive |
int | enabled |
vrui::coCombinedButtonInteraction * | interaction = nullptr |
Protected Attributes inherited from vrui::coAction | |
std::string | actionName |
coPickSensor::coPickSensor | ( | osg::Node * | n, |
vrui::coInteraction::InteractionType | type = vrui::coInteraction::ButtonA , |
||
vrui::coInteraction::InteractionPriority | priority = vrui::coInteraction::Medium |
||
) |
|
virtual |
|
virtual |
Reimplemented from coSensor.
|
virtual |
hit is called whenever the node, or any node underneath the node with this action is intersected return ACTION_CALL_ON_MISS if you want miss to be called otherwise return ACTION_DONE
Implements vrui::coAction.
|
virtual |
miss is called once after a hit, if the node is not intersected anymore
Reimplemented from vrui::coAction.
|
virtual |
Reimplemented from coSensor.
bool coPickSensor::hitActive |
osg::Vec3 coPickSensor::hitPoint |
bool coPickSensor::hitWasActive |
vrui::OSGVruiNode* coPickSensor::vNode |