Panda3D
 All Classes Functions Variables Enumerations
unionBoundingVolume.I
1 // Filename: unionBoundingVolume.I
2 // Created by: drose (08Feb12)
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: UnionBoundingVolume::Constructor
18 // Access: Published
19 // Description: Constructs an empty union.
20 ////////////////////////////////////////////////////////////////////
21 INLINE_MATHUTIL UnionBoundingVolume::
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: UnionBoundingVolume::get_num_components
27 // Access: Published
28 // Description: Returns the number of components in the union.
29 ////////////////////////////////////////////////////////////////////
30 INLINE_MATHUTIL int UnionBoundingVolume::
32  return (int)_components.size();
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: UnionBoundingVolume::get_component
37 // Access: Published
38 // Description: Returns the nth component in the union.
39 ////////////////////////////////////////////////////////////////////
41 get_component(int n) const {
42  nassertr(n >= 0 && n < (int)_components.size(), NULL);
43  return _components[n];
44 }
UnionBoundingVolume()
Constructs an empty union.
const GeometricBoundingVolume * get_component(int n) const
Returns the nth component in the union.
int get_num_components() const
Returns the number of components in the union.
This is another abstract class, for a general class of bounding volumes that actually enclose points ...