15 #ifndef INTERSECTIONBOUNDINGVOLUME_H
16 #define INTERSECTIONBOUNDINGVOLUME_H
18 #include "pandabase.h"
20 #include "geometricBoundingVolume.h"
35 ALLOC_DELETED_CHAIN(IntersectionBoundingVolume);
38 IntersectionBoundingVolume(
const IntersectionBoundingVolume ©);
43 virtual LPoint3 get_approx_center()
const;
44 virtual void xform(
const LMatrix4 &mat);
46 virtual void output(ostream &out)
const;
47 virtual void write(ostream &out,
int indent_level)
const;
50 INLINE_MATHUTIL
int get_num_components()
const;
52 MAKE_SEQ(get_components, get_num_components, get_component);
54 void clear_components();
64 virtual int contains_point(
const LPoint3 &point)
const;
65 virtual int contains_lineseg(
const LPoint3 &a,
const LPoint3 &b)
const;
67 virtual int contains_box(
const BoundingBox *box)
const;
69 virtual int contains_line(
const BoundingLine *line)
const;
72 virtual int contains_intersection(
const IntersectionBoundingVolume *intersection)
const;
75 int other_contains_intersection(
const BoundingVolume *other)
const;
85 static void init_type() {
86 GeometricBoundingVolume::init_type();
87 register_type(_type_handle,
"IntersectionBoundingVolume",
88 GeometricBoundingVolume::get_class_type());
91 return get_class_type();
93 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
101 #include "intersectionBoundingVolume.I"
An axis-aligned bounding box; that is, a minimum and maximum coordinate triple.
This defines a bounding sphere, consisting of a center and a radius.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
This funny bounding volume is an infinite plane that divides space into two regions: the part behind ...
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
This special bounding volume is the intersection of all of its constituent bounding volumes...
This special bounding volume is the union of all of its constituent bounding volumes.
This is a 4-by-4 transform matrix.
A special kind of GeometricBoundingVolume that is known to be finite.
TypeHandle is the identifier used to differentiate C++ class types.
This defines a bounding convex hexahedron.
This funny bounding volume is an infinite line with no thickness and extending to infinity in both di...