MeVisLab Toolbox Reference
SoActionNotify.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2015, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
15 // Include base-class header.
16 #include <Inventor/nodes/SoSubNode.h>
17 // Include field headers.
18 #include <Inventor/fields/SoSFTrigger.h>
19 
20 
21 // Forward declarations
22 class SoGLRenderAction;
23 class SoGetBoundingBoxAction;
24 class SoHandleEventAction;
25 
26 class SoActionNotify : public SoNode
27 {
28  typedef SoNode inherited;
29 
30  SO_NODE_HEADER(SoActionNotify);
31 
32 public:
33 
34  SoSFTrigger notifyOnGLRender;
36  SoSFTrigger notifyOnHandleEvent;
37 
39 
41  void GLRender(SoGLRenderAction *action) override;
42  void getBoundingBox(SoGetBoundingBoxAction *action) override;
43  void handleEvent(SoHandleEventAction *action) override;
44 
46  static void initClass();
47 };
SoSFTrigger notifyOnGLRender
SoSFTrigger notifyOnGetBoundingBox
static void initClass()
Register this node with the Open Inventor runtime system.
void GLRender(SoGLRenderAction *action) override
Action handlers.
SoSFTrigger notifyOnHandleEvent
void getBoundingBox(SoGetBoundingBoxAction *action) override
void handleEvent(SoHandleEventAction *action) override