1 #ifndef COIN_SOEVENTCALLBACK_H 
    2 #define COIN_SOEVENTCALLBACK_H 
   27 #include <Inventor/nodes/SoSubNode.h> 
   28 #include <Inventor/lists/SbList.h> 
   32 #include <Inventor/actions/SoHandleEventAction.h> 
   33 #endif // !COIN_INTERNAL 
   41 typedef void SoEventCallbackCB(
void * userdata, 
SoEventCallback * node);
 
   49   static void initClass(
void);
 
   52   void setPath(
SoPath * path);
 
   53   const SoPath * getPath(
void);
 
   55   void addEventCallback(
SoType eventtype, SoEventCallbackCB * f,
 
   56                         void * userdata = NULL);
 
   57   void removeEventCallback(
SoType eventtype, SoEventCallbackCB * f,
 
   58                            void * userdata = NULL);
 
   61   const SoEvent * getEvent(
void) 
const;
 
   64   void setHandled(
void);
 
   65   SbBool isHandled(
void) 
const;
 
   67   void grabEvents(
void);
 
   68   void releaseEvents(
void);
 
   78     SoEventCallbackCB * func;
 
   86     SbBool operator==(
const CallbackInfo & cbi) {
 
   87       return this->func == cbi.func && this->eventtype == cbi.eventtype && this->userdata == cbi.userdata;
 
   89     SbBool operator!=(
const CallbackInfo & cbi) {
 
   90       return !(*
this == cbi);
 
  100 #endif // !COIN_SOEVENTCALLBACK_H 
The SoBase class is the top-level superclass for a number of class-hierarchies.SoBase provides the ba...
Definition: SoBase.h:36
#define SO_NODE_HEADER(classname)
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
The SoPath class is a container class for traversal path descriptions.SoPath objects contain a list o...
Definition: SoPath.h:43
The SoHandleEventAction class distributes user events to the scene.This is the action used by the GUI...
Definition: SoHandleEventAction.h:37
The SoPickedPoint class is used for specifying picked points.It holds miscellaneous information about...
Definition: SoPickedPoint.h:39
The SoEventCallback class provides functionality for catching events.Use SoEventCallback nodes in the...
Definition: SoEventCallback.h:43
The SoEvent class is the base class for all Coin events.Coin contains its own set of event classes...
Definition: SoEvent.h:34
The SoType class is the basis for the run-time type system in Coin.Many of the classes in the Coin li...
Definition: SoType.h:50
virtual void handleEvent(SoHandleEventAction *action)
Definition: SoNode.cpp:1059