Panda3D
nodeCullCallbackData.I
1 // Filename: nodeCullCallbackData.I
2 // Created by: drose (13Mar09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: NodeCullCallbackData::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE NodeCullCallbackData::
22 NodeCullCallbackData(CullTraverser *trav, CullTraverserData &data) :
23  _trav(trav),
24  _data(data)
25 {
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: NodeCullCallbackData::get_trav
30 // Access: Published
31 // Description: Returns the CullTraverser in use at the time of the
32 // callback. This object contains data that does not
33 // change during the traversal, such as the
34 // DisplayRegion and Camera in use.
35 ////////////////////////////////////////////////////////////////////
37 get_trav() const {
38  return _trav;
39 }
40 
41 ////////////////////////////////////////////////////////////////////
42 // Function: NodeCullCallbackData::get_data
43 // Access: Published
44 // Description: Returns the CullTraverserData in use at the time of the
45 // callback. This object contains data that changes at
46 // each node of the traversal, such as the current node
47 // and the current net transform to that node.
48 ////////////////////////////////////////////////////////////////////
50 get_data() const {
51  return _data;
52 }
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:48