Panda3D
 All Classes Functions Variables Enumerations
cullPlanes.I
1 // Filename: cullPlanes.I
2 // Created by: drose (23Aug05)
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: CullPlanes::Constructor
18 // Access: Protected
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE CullPlanes::
22 CullPlanes() {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: CullPlanes::Copy Constructor
27 // Access: Protected
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE CullPlanes::
31 CullPlanes(const CullPlanes &copy) :
32  _planes(copy._planes),
33  _occluders(copy._occluders)
34 {
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: CullPlanes::Copy Assignment Operator
39 // Access: Protected
40 // Description:
41 ////////////////////////////////////////////////////////////////////
42 INLINE void CullPlanes::
43 operator = (const CullPlanes &copy) {
44  _planes = copy._planes;
45  _occluders = copy._occluders;
46 }
47 
48 ////////////////////////////////////////////////////////////////////
49 // Function: CullPlanes::Destructor
50 // Access: Public
51 // Description:
52 ////////////////////////////////////////////////////////////////////
53 INLINE CullPlanes::
54 ~CullPlanes() {
55 }
56 
57 ////////////////////////////////////////////////////////////////////
58 // Function: CullPlanes::is_empty
59 // Access: Public
60 // Description: Returns true if there are no planes listed in the
61 // CullPlanes object.
62 ////////////////////////////////////////////////////////////////////
63 INLINE bool CullPlanes::
64 is_empty() const {
65  return _planes.empty() && _occluders.empty();
66 
67 }
bool is_empty() const
Returns true if there are no planes listed in the CullPlanes object.
Definition: cullPlanes.I:64
This represents the set of clip planes and/or occluders that are definitely in effect for the current...
Definition: cullPlanes.h:46