1#ifndef COIN_SOEVENTCALLBACK_H
2#define COIN_SOEVENTCALLBACK_H
36#include <Inventor/nodes/SoSubNode.h>
37#include <Inventor/lists/SbList.h>
41#include <Inventor/actions/SoHandleEventAction.h>
61 void setPath(
SoPath * path);
62 const SoPath * getPath(
void);
64 void addEventCallback(
SoType eventtype, SoEventCallbackCB * f,
65 void * userdata = NULL);
66 void removeEventCallback(
SoType eventtype, SoEventCallbackCB * f,
67 void * userdata = NULL);
70 const SoEvent * getEvent(
void)
const;
73 void setHandled(
void);
74 SbBool isHandled(
void)
const;
76 void grabEvents(
void);
77 void releaseEvents(
void);
87 SoEventCallbackCB * func;
95 SbBool operator==(
const CallbackInfo & cbi) {
96 return this->func == cbi.func && this->eventtype == cbi.eventtype && this->userdata == cbi.userdata;
98 SbBool operator!=(
const CallbackInfo & cbi) {
99 return !(*
this == cbi);
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:45
The SoEventCallback class provides functionality for catching events.
Definition: SoEventCallback.h:52
The SoEvent class is the base class for all Coin events.
Definition: SoEvent.h:45
The SoHandleEventAction class distributes user events to the scene.
Definition: SoHandleEventAction.h:46
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
virtual void handleEvent(SoHandleEventAction *action)
Definition: SoNode.cpp:1129
static void initClass(void)
Sets up initialization for data common to all instances of this class, like submitting necessary info...
Definition: SoNode.cpp:570
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:52
The SoPickedPoint class is used for specifying picked points.
Definition: SoPickedPoint.h:48
The SoType class is the basis for the runtime type system in Coin.
Definition: SoType.h:59
#define SO_NODE_HEADER(classname)