Carna Version 3.3.3
Loading...
Searching...
No Matches
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
21namespace Carna
22{
23
24namespace base
25{
26
27
28
29// ----------------------------------------------------------------------------------
30// NodeListener
31// ----------------------------------------------------------------------------------
32
39class CARNA_LIB NodeListener
40{
41
42public:
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
Represents an association.
Definition Association.h:45
Notified by Node objects.
virtual ~NodeListener()
Deletes.
virtual void onTreeInvalidated(Node &subtree)=0
Indicates that subtree has been invalidated. This may include changes of the tree structure as well a...
virtual void onTreeChange(Node &node, bool inThisSubtree)=0
Indicates that the scene's tree structure has changed. The tree structure of node only has changed if...
virtual void onNodeDelete(const Node &node)=0
Indicates that node is about to be deleted. Dying nodes never notify onTreeChange.
Defines the inner node of a scene graph. Implements a spatial scene element that is allowed to have c...
Definition Node.h:45