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
const SoPath * getPath(void)
Definition: SoEventCallback.cpp:152
void setGrabber(SoNode *node)
Definition: SoHandleEventAction.cpp:237
const SoEvent * getEvent(void) const
Definition: SoEventCallback.cpp:217
void addEventCallback(SoType eventtype, SoEventCallbackCB *f, void *userdata=NULL)
Definition: SoEventCallback.cpp:164
void setPath(SoPath *path)
Definition: SoEventCallback.cpp:128
SoEventCallback(void)
Definition: SoEventCallback.cpp:95
const SoPickedPoint * getPickedPoint(void) const
Definition: SoEventCallback.cpp:229
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
void append(const Type item)
Definition: SbList.h:98
void releaseEvents(void)
Definition: SoEventCallback.cpp:307
SbBool containsPath(const SoPath *const path) const
Definition: SoPath.cpp:611
SbBool isDerivedFrom(const SoType type) const
Definition: SoType.cpp:687
void setHandled(void)
Definition: SoHandleEventAction.cpp:211
void unref(void) const
Definition: SoBase.cpp:627
virtual SoType getTypeId(void) const
Definition: SoEvent.cpp:55
The SoPath class is a container class for traversal path descriptions.
Definition: SoPath.h:43
int32_t getRefCount(void) const
Definition: SoBase.cpp:686
SbBool isHandled(void) const
Definition: SoHandleEventAction.cpp:223
The SoType class is the basis for the run-time type system in Coin.
Definition: SoType.h:50
int getLength(void) const
Definition: SbList.h:145
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
void ref(void) const
Definition: SoBase.cpp:574
The SoEventCallback class provides functionality for catching events.
Definition: SoEventCallback.h:43
SoPath * copy(const int startfromnodeindex=0, int numnodes=0) const
Definition: SoPath.cpp:673
void remove(const int index)
Definition: SbList.h:129
SbBool isHandled(void) const
Definition: SoEventCallback.cpp:269
SoHandleEventAction * getAction(void) const
Definition: SoEventCallback.cpp:203
The SoPickedPoint class is used for specifying picked points.
Definition: SoPickedPoint.h:39
void grabEvents(void)
Definition: SoEventCallback.cpp:288
virtual void handleEvent(SoHandleEventAction *action)
Definition: SoNode.cpp:1031
void releaseGrabber(void)
Definition: SoHandleEventAction.cpp:257
virtual void handleEvent(SoHandleEventAction *action)
Definition: SoEventCallback.cpp:324
const SoEvent * getEvent(void) const
Definition: SoHandleEventAction.cpp:196
const SoPickedPoint * getPickedPoint(void)
Definition: SoHandleEventAction.cpp:315
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
The SoHandleEventAction class distributes user events to the scene.
Definition: SoHandleEventAction.h:36
void removeEventCallback(SoType eventtype, SoEventCallbackCB *f, void *userdata=NULL)
Definition: SoEventCallback.cpp:179
void setHandled(void)
Definition: SoEventCallback.cpp:251
The SoEvent class is the base class for all Coin events.
Definition: SoEvent.h:34
virtual ~SoEventCallback()
Definition: SoEventCallback.cpp:106
SoPath * getPath() const
Definition: SoPickedPoint.cpp:178
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17