Panda3D
nodeCullCallbackData.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file nodeCullCallbackData.I
10  * @author drose
11  * @date 2009-03-13
12  */
13 
14 /**
15  *
16  */
17 INLINE NodeCullCallbackData::
18 NodeCullCallbackData(CullTraverser *trav, CullTraverserData &data) :
19  _trav(trav),
20  _data(data)
21 {
22 }
23 
24 /**
25  * Returns the CullTraverser in use at the time of the callback. This object
26  * contains data that does not change during the traversal, such as the
27  * DisplayRegion and Camera in use.
28  */
30 get_trav() const {
31  return _trav;
32 }
33 
34 /**
35  * Returns the CullTraverserData in use at the time of the callback. This
36  * object contains data that changes at each node of the traversal, such as
37  * the current node and the current net transform to that node.
38  */
40 get_data() const {
41  return _data;
42 }
CullTraverser * get_trav() const
Returns the CullTraverser in use at the time of the callback.
CullTraverserData & get_data() const
Returns the CullTraverserData in use at the time of the callback.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
Definition: cullTraverser.h:45