LibCarna Version 3.4.0
Loading...
Searching...
No Matches
NodeListener.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 - 2016 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 *
11 * Copyright (C) 2021 - 2025 Leonid Kostrykin
12 *
13 */
14
15#ifndef NODELISTENER_H_6014714286
16#define NODELISTENER_H_6014714286
17
18#include <LibCarna/LibCarna.hpp>
19
25namespace LibCarna
26{
27
28namespace base
29{
30
31
32
33// ----------------------------------------------------------------------------------
34// NodeListener
35// ----------------------------------------------------------------------------------
36
42class LIBCARNA NodeListener
43{
44
45public:
46
50 virtual ~NodeListener();
51
56 virtual void onNodeDelete( const Node& node ) = 0;
57
62 virtual void onTreeChange( Node& node, bool inThisSubtree ) = 0;
63
68 virtual void onTreeInvalidated( Node& subtree ) = 0;
69
70}; // NodeListener
71
72
73
74} // namespace LibCarna :: base
75
76} // namespace LibCarna
77
78#endif // NODELISTENER_H_6014714286
Contains forward-declarations.
Represents an association.
Notified by Node objects.
virtual void onNodeDelete(const Node &node)=0
Indicates that node is about to be deleted. Dying nodes never notify onTreeChange.
virtual void onTreeInvalidated(Node &subtree)=0
Indicates that subtree has been invalidated. This may include changes of the tree structure as well a...
virtual ~NodeListener()
Deletes.
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...
Defines the inner node of a scene graph. Implements a spatial scene element that is allowed to have c...
Definition Node.hpp:48