00001 // Filename: geometricBoundingVolume.cxx00002 // Created by: drose (07Oct99)00003 //00004 ////////////////////////////////////////////////////////////////////00005 //00006 // PANDA 3D SOFTWARE00007 // Copyright (c) Carnegie Mellon University. All rights reserved.00008 //00009 // All use of this software is subject to the terms of the revised BSD00010 // license. You should have received a copy of this license along00011 // 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_volume00022 // Access: Public, Virtual00023 // Description: Virtual downcast method. Returns this object as a00024 // pointer of the indicated type, if it is in fact that00025 // type. Returns NULL if it is not that type.00026 ////////////////////////////////////////////////////////////////////00027 constGeometricBoundingVolume *GeometricBoundingVolume::00028as_geometric_bounding_volume() const {
00029 returnthis;
00030 }
00031
00032 ////////////////////////////////////////////////////////////////////00033 // Function: GeometricBoundingVolume::extend_by_point00034 // Access: Protected, Virtual00035 // Description: Extends the volume to include the indicated point.00036 // Returns true if possible, false if not.00037 ////////////////////////////////////////////////////////////////////00038 boolGeometricBoundingVolume::00039extend_by_point(constLPoint3f &) {
00040 returnfalse;
00041 }
00042
00043 ////////////////////////////////////////////////////////////////////00044 // Function: GeometricBoundingVolume::around_points00045 // Access: Protected, Virtual00046 // Description: Puts the volume around the indicated list of points,00047 // identified by an STL-style begin/end list.00048 ////////////////////////////////////////////////////////////////////00049 boolGeometricBoundingVolume::00050around_points(constLPoint3f *, constLPoint3f *) {
00051 _flags = F_empty;
00052 returnfalse;
00053 }
00054
00055 ////////////////////////////////////////////////////////////////////00056 // Function: GeometricBoundingVolume::contains_point00057 // Access: Protected, Virtual00058 // Description: Tests whether the volume contains the indicated00059 // point.00060 ////////////////////////////////////////////////////////////////////00061 intGeometricBoundingVolume::00062contains_point(constLPoint3f &) const {
00063 return IF_dont_understand;
00064 }
00065
00066 ////////////////////////////////////////////////////////////////////00067 // Function: GeometricBoundingVolume::contains_lineseg00068 // Access: Protected, Virtual00069 // Description: Tests whether the volume contains the indicated line00070 // segment.00071 ////////////////////////////////////////////////////////////////////00072 intGeometricBoundingVolume::00073contains_lineseg(constLPoint3f &, constLPoint3f &) const {
00074 return IF_dont_understand;
00075 }