NutsnBolts  0.1.0
An extension library for Coin
Loading...
Searching...
No Matches
NbEventNode.h
1#ifndef NB_EVENT_NODE_H
2#define NB_EVENT_NODE_H
3
4#include <Inventor/nodekits/SoBaseKit.h>
5#include <Inventor/nodekits/SoSubKit.h>
6#include <Inventor/fields/SoMFNode.h>
7#include <NutsnBolts/Basic.h>
8
9class NbEventNodeP;
10class SoEvent;
11class SoSensor;
12
13class NB_DLL_API NbEventNode : public SoBaseKit {
14 typedef SoBaseKit inherited;
15
16 SO_KIT_HEADER(NbEventNode);
17 SO_KIT_CATALOG_ENTRY_HEADER(topSwitch);
18 SO_KIT_CATALOG_ENTRY_HEADER(topSeparator);
19
20 public:
21
22 NbEventNode(void);
23 static void initClass(void);
24
25 SoMFNode event;
26
27 virtual void jumpTo(void);
28 virtual void handleEvent(SoHandleEventAction * action);
29 virtual void write(SoWriteAction * action);
30 virtual SbBool readInstance(SoInput * in, unsigned short flags);
31 virtual SbBool handleEvent(const SoEvent * event, SoHandleEventAction * action);
32
33protected:
34 virtual ~NbEventNode();
35
36private:
37 friend class NbEventNodeP;
38 NbEventNodeP * pimpl;
39};
40
41
42#endif // NB_EVENT_NODE_H
The NbEventNode is a container for nodes which trigger scripts on events.
Definition NbEventNode.h:13