Panda3D

nodeCullCallbackData.I

00001 // Filename: nodeCullCallbackData.I
00002 // Created by:  drose (13Mar09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: NodeCullCallbackData::Constructor
00018 //       Access: Public
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE NodeCullCallbackData::
00022 NodeCullCallbackData(CullTraverser *trav, CullTraverserData &data) :
00023   _trav(trav),
00024   _data(data)
00025 {
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: NodeCullCallbackData::get_trav
00030 //       Access: Published
00031 //  Description: Returns the CullTraverser in use at the time of the
00032 //               callback.  This object contains data that does not
00033 //               change during the traversal, such as the
00034 //               DisplayRegion and Camera in use.
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE CullTraverser *NodeCullCallbackData::
00037 get_trav() const {
00038   return _trav;
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: NodeCullCallbackData::get_data
00043 //       Access: Published
00044 //  Description: Returns the CullTraverserData in use at the time of the
00045 //               callback.  This object contains data that changes at
00046 //               each node of the traversal, such as the current node
00047 //               and the current net transform to that node.
00048 ////////////////////////////////////////////////////////////////////
00049 INLINE CullTraverserData &NodeCullCallbackData::
00050 get_data() const {
00051   return _data;
00052 }
 All Classes Functions Variables Enumerations