Panda3D
|
00001 // Filename: geometricBoundingVolume.cxx 00002 // Created by: drose (07Oct99) 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 #include "geometricBoundingVolume.h" 00016 00017 TypeHandle GeometricBoundingVolume::_type_handle; 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: GeometricBoundingVolume::as_geometric_bounding_volume 00022 // Access: Public, Virtual 00023 // Description: Virtual downcast method. Returns this object as a 00024 // pointer of the indicated type, if it is in fact that 00025 // type. Returns NULL if it is not that type. 00026 //////////////////////////////////////////////////////////////////// 00027 const GeometricBoundingVolume *GeometricBoundingVolume:: 00028 as_geometric_bounding_volume() const { 00029 return this; 00030 } 00031 00032 //////////////////////////////////////////////////////////////////// 00033 // Function: GeometricBoundingVolume::extend_by_point 00034 // Access: Protected, Virtual 00035 // Description: Extends the volume to include the indicated point. 00036 // Returns true if possible, false if not. 00037 //////////////////////////////////////////////////////////////////// 00038 bool GeometricBoundingVolume:: 00039 extend_by_point(const LPoint3 &) { 00040 return false; 00041 } 00042 00043 //////////////////////////////////////////////////////////////////// 00044 // Function: GeometricBoundingVolume::around_points 00045 // Access: Protected, Virtual 00046 // Description: Puts the volume around the indicated list of points, 00047 // identified by an STL-style begin/end list. 00048 //////////////////////////////////////////////////////////////////// 00049 bool GeometricBoundingVolume:: 00050 around_points(const LPoint3 *, const LPoint3 *) { 00051 _flags = F_empty; 00052 return false; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function: GeometricBoundingVolume::contains_point 00057 // Access: Protected, Virtual 00058 // Description: Tests whether the volume contains the indicated 00059 // point. 00060 //////////////////////////////////////////////////////////////////// 00061 int GeometricBoundingVolume:: 00062 contains_point(const LPoint3 &) const { 00063 return IF_dont_understand; 00064 } 00065 00066 //////////////////////////////////////////////////////////////////// 00067 // Function: GeometricBoundingVolume::contains_lineseg 00068 // Access: Protected, Virtual 00069 // Description: Tests whether the volume contains the indicated line 00070 // segment. 00071 //////////////////////////////////////////////////////////////////// 00072 int GeometricBoundingVolume:: 00073 contains_lineseg(const LPoint3 &, const LPoint3 &) const { 00074 return IF_dont_understand; 00075 }