Loading [MathJax]/extensions/tex2jax.js
Carna  Version 3.3.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NodeListener.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 - 2015 Leonid Kostrykin
3  *
4  * Chair of Medical Engineering (mediTEC)
5  * RWTH Aachen University
6  * Pauwelsstr. 20
7  * 52074 Aachen
8  * Germany
9  *
10  */
11 
12 #ifndef NODELISTENER_H_6014714286
13 #define NODELISTENER_H_6014714286
14 
15 #include <Carna/Carna.h>
16 
21 namespace Carna
22 {
23 
24 namespace base
25 {
26 
27 
28 
29 // ----------------------------------------------------------------------------------
30 // NodeListener
31 // ----------------------------------------------------------------------------------
32 
39 class CARNA_LIB NodeListener
40 {
41 
42 public:
43 
47  virtual ~NodeListener();
48 
53  virtual void onNodeDelete( const Node& node ) = 0;
54 
59  virtual void onTreeChange( Node& node, bool inThisSubtree ) = 0;
60 
65  virtual void onTreeInvalidated( Node& subtree ) = 0;
66 
67 }; // NodeListener
68 
69 
70 
71 } // namespace Carna :: base
72 
73 } // namespace Carna
74 
75 #endif // NODELISTENER_H_6014714286
Defines the inner node of a scene graph. Implements a spatial scene element that is allowed to have c...
Definition: Node.h:44
Notified by Node objects.
Definition: NodeListener.h:39