Panda3D
 All Classes Functions Variables Enumerations
cullBin.I
1 // Filename: cullBin.I
2 // Created by: drose (28Feb02)
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: CullBin::Copy Constructor
18 // Access: Protected
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE CullBin::
22 CullBin(const CullBin &copy) :
23  _name(copy._name),
24  _bin_type(copy._bin_type),
25  _gsg(copy._gsg),
26  _cull_this_pcollector(copy._cull_this_pcollector),
27  _draw_this_pcollector(copy._draw_this_pcollector)
28 {
29 }
30 
31 ////////////////////////////////////////////////////////////////////
32 // Function: CullBin::Constructor
33 // Access: Public
34 // Description:
35 ////////////////////////////////////////////////////////////////////
36 INLINE CullBin::
37 CullBin(const string &name, CullBin::BinType bin_type,
39  const PStatCollector &draw_region_pcollector) :
40  _name(name),
41  _bin_type(bin_type),
42  _gsg(gsg),
43  _cull_this_pcollector(_cull_bin_pcollector, name),
44  _draw_this_pcollector(draw_region_pcollector, name)
45 {
46 }
47 
48 ////////////////////////////////////////////////////////////////////
49 // Function: CullBin::get_name
50 // Access: Public
51 // Description:
52 ////////////////////////////////////////////////////////////////////
53 INLINE const string &CullBin::
54 get_name() const {
55  return _name;
56 }
57 
58 ////////////////////////////////////////////////////////////////////
59 // Function: CullBin::get_bin_tyep
60 // Access: Public
61 // Description:
62 ////////////////////////////////////////////////////////////////////
63 INLINE CullBin::BinType CullBin::
64 get_bin_type() const {
65  return _bin_type;
66 }
A collection of Geoms and their associated state, for a particular scene.
Definition: cullBin.h:44
A lightweight class that represents a single element that may be timed and/or counted via stats...
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...