Panda3D
cullHandler.cxx
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 cullHandler.cxx
10  * @author drose
11  * @date 2002-02-23
12  */
13 
14 #include "cullHandler.h"
15 #include "cullableObject.h"
16 #include "geom.h"
17 #include "transformState.h"
18 #include "renderState.h"
19 #include "pnotify.h"
20 
21 /**
22  *
23  */
24 CullHandler::
25 CullHandler() {
26 }
27 
28 /**
29  *
30  */
31 CullHandler::
32 ~CullHandler() {
33 }
34 
35 /**
36  * This callback function is intended to be overridden by a derived class.
37  * This is called as each Geom is discovered by the CullTraverser.
38  *
39  * The CullHandler becomes the owner of the CullableObject pointer and is
40  * expected to delete it later.
41  */
42 void CullHandler::
43 record_object(CullableObject *object, const CullTraverser *traverser) {
44  nout << *object->_geom << " " << *object->_internal_transform << " "
45  << *object->_state << "\n";
46  delete object;
47 }
48 
49 /**
50  * This callback function is intended to be overridden by a derived class.
51  * This is called at the end of the traversal.
52  */
53 void CullHandler::
55 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void end_traverse()
This callback function is intended to be overridden by a derived class.
Definition: cullHandler.cxx:54
The smallest atom of cull.
virtual void record_object(CullableObject *object, const CullTraverser *traverser)
This callback function is intended to be overridden by a derived class.
Definition: cullHandler.cxx:43
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
Definition: cullTraverser.h:45