Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BoundingHexahedron Class Reference

This defines a bounding convex hexahedron. More...

#include <boundingHexahedron.h>

Inheritance diagram for BoundingHexahedron:

FiniteBoundingVolume GeometricBoundingVolume BoundingVolume TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Types

enum  IntersectionFlags {
  IF_no_intersection = 0, IF_possible = 0x01, IF_some = 0x02, IF_all = 0x04,
  IF_dont_understand = 0x08
}

Public Member Functions

INLINE_MATHUTIL BoundingHexahedron ()
 BoundingHexahedron (const Frustumf &frustum, bool is_ortho, CoordinateSystem cs=CS_default)
 BoundingHexahedron (const LPoint3f &fll, const LPoint3f &flr, const LPoint3f &fur, const LPoint3f &ful, const LPoint3f &nll, const LPoint3f &nlr, const LPoint3f &nur, const LPoint3f &nul)
virtual BoundingVolumemake_copy () const
virtual LPoint3f get_min () const
virtual LPoint3f get_max () const
virtual LPoint3f get_approx_center () const
virtual void xform (const LMatrix4f &mat)
virtual void output (ostream &out) const
virtual void write (ostream &out, int indent_level=0) const
INLINE_MATHUTIL int get_num_points () const
INLINE_MATHUTIL LPoint3f get_point (int n) const
INLINE_MATHUTIL int get_num_planes () const
INLINE_MATHUTIL Planef get_plane (int n) const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()
INLINE_MATHUTIL bool extend_by (const GeometricBoundingVolume *vol)
 Increases the size of the volume to include the given volume.

INLINE_MATHUTIL bool extend_by (const LPoint3f &point)
 Increases the size of the volume to include the given point.

INLINE_MATHUTIL bool extend_by (const BoundingVolume *vol)
 Increases the size of the volume to include the given volume.

INLINE_MATHUTIL bool around (const GeometricBoundingVolume **first, const GeometricBoundingVolume **last)
 Resets the volume to enclose only the volumes indicated.

INLINE_MATHUTIL bool around (const LPoint3f *first, const LPoint3f *last)
 Resets the volume to enclose only the points indicated.

bool around (const BoundingVolume **first, const BoundingVolume **last)
 Resets the volume to enclose only the volumes indicated.

INLINE_MATHUTIL int contains (const GeometricBoundingVolume *vol) const
 Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated volume.

INLINE_MATHUTIL int contains (const LPoint3f &point) const
 Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated point.

INLINE_MATHUTIL int contains (const LPoint3f &a, const LPoint3f &b) const
 Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated line segment.

INLINE_MATHUTIL int contains (const BoundingVolume *vol) const
 Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated volume.

INLINE_MATHUTIL bool is_empty () const
 Any kind of volume might be empty.

INLINE_MATHUTIL bool is_infinite () const
 The other side of the empty coin is an infinite volume.

INLINE_MATHUTIL void set_infinite ()
 Marks the volume as infinite, even if it is normally finite.

int get_type_index () const
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type.

bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly.

int get_ref_count () const
 Returns the current reference count.

int ref () const
 Explicitly increments the reference count.

int unref () const
 Explicitly decrements the reference count.

void test_ref_count_integrity () const
 Does some easy checks to make sure that the reference count isn't completely bogus.


Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Types

enum  Flags { F_empty = 0x01, F_infinite = 0x02 }

Protected Member Functions

virtual bool extend_other (BoundingVolume *other) const
virtual bool around_other (BoundingVolume *other, const BoundingVolume **first, const BoundingVolume **last) const
virtual int contains_other (const BoundingVolume *other) const
virtual bool extend_by_point (const LPoint3f &point)
virtual bool extend_by_sphere (const BoundingSphere *sphere)
 Double-dispatch support: called by extend_other() when the type we're extending by is known to be a sphere.

virtual bool extend_by_hexahedron (const BoundingHexahedron *hexahedron)
 Double-dispatch support: called by extend_other() when the type we're extending by is known to be a hexahedron.

virtual bool around_points (const LPoint3f *first, const LPoint3f *last)
virtual bool around_spheres (const BoundingVolume **first, const BoundingVolume **last)
 Double-dispatch support: called by around_other() when the type of the first element in the list is known to be a nonempty sphere.

virtual bool around_hexahedrons (const BoundingVolume **first, const BoundingVolume **last)
 Double-dispatch support: called by around_other() when the type of the first element in the list is known to be a nonempty hexahedron.

virtual int contains_point (const LPoint3f &point) const
virtual int contains_lineseg (const LPoint3f &a, const LPoint3f &b) const
virtual int contains_sphere (const BoundingSphere *sphere) const
 Double-dispatch support: called by contains_other() when the type we're testing for intersection is known to be a sphere.

virtual int contains_hexahedron (const BoundingHexahedron *hexahedron) const
 Double-dispatch support: called by contains_other() when the type we're testing for intersection is known to be a hexahedron.

virtual bool extend_by_line (const BoundingLine *line)
 Double-dispatch support: called by extend_other() when the type we're extending by is known to be a line.

virtual bool around_lines (const BoundingVolume **first, const BoundingVolume **last)
 Double-dispatch support: called by around_other() when the type of the first element in the list is known to be a nonempty line.

virtual int contains_line (const BoundingLine *line) const
 Double-dispatch support: called by contains_other() when the type we're testing for intersection is known to be a line.


Protected Attributes

int _flags

Private Types

enum  { num_points = 8, num_planes = 6 }

Private Member Functions

void set_planes ()
void set_centroid ()

Private Attributes

LPoint3f _points [num_points]
Planef _planes [num_planes]
LPoint3f _centroid

Static Private Attributes

TypeHandle _type_handle

Friends

class BoundingSphere

Detailed Description

This defines a bounding convex hexahedron.

It is typically used to represent a frustum, but may represent any enclosing convex hexahedron.

This class does not support any of the around() or extend_by() functions, but all other functionality should be well-defined.

Definition at line 53 of file boundingHexahedron.h.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
num_points 
num_planes 

Definition at line 107 of file boundingHexahedron.h.

enum BoundingVolume::Flags [protected, inherited]
 

Enumeration values:
F_empty 
F_infinite 

Definition at line 110 of file boundingVolume.h.

enum BoundingVolume::IntersectionFlags [inherited]
 

Enumeration values:
IF_no_intersection 
IF_possible 
IF_some 
IF_all 
IF_dont_understand 

Definition at line 74 of file boundingVolume.h.


Constructor & Destructor Documentation

INLINE_MATHUTIL BoundingHexahedron::BoundingHexahedron  ) 
 

Definition at line 23 of file boundingHexahedron.I.

References INLINE_MATHUTIL, and num_points.

BoundingHexahedron::BoundingHexahedron const Frustumf &  frustum,
bool  is_ortho,
CoordinateSystem  cs = CS_default
 

Definition at line 32 of file boundingHexahedron.cxx.

References cs, and default_coordinate_system.

BoundingHexahedron::BoundingHexahedron const LPoint3f &  fll,
const LPoint3f &  flr,
const LPoint3f &  fur,
const LPoint3f &  ful,
const LPoint3f &  nll,
const LPoint3f &  nlr,
const LPoint3f &  nur,
const LPoint3f &  nul
 

Definition at line 67 of file boundingHexahedron.cxx.

References BoundingVolume::_flags, _points, set_centroid(), and set_planes().


Member Function Documentation

bool BoundingVolume::around const BoundingVolume **  first,
const BoundingVolume **  last
[inherited]
 

Resets the volume to enclose only the volumes indicated.

Returns true if successful, false if the volume doesn't know how to do that or can't do that.

Definition at line 43 of file boundingVolume.cxx.

References BoundingVolume::_flags, and BoundingVolume::F_infinite.

Referenced by GeomNode::add_geoms_from().

INLINE_MATHUTIL bool GeometricBoundingVolume::around const LPoint3f *  first,
const LPoint3f *  last
[inherited]
 

Resets the volume to enclose only the points indicated.

Definition at line 91 of file geometricBoundingVolume.I.

References GeometricBoundingVolume::contains_point(), BoundingVolume::IF_no_intersection, INLINE_MATHUTIL, and BoundingVolume::is_empty().

INLINE_MATHUTIL bool GeometricBoundingVolume::around const GeometricBoundingVolume **  first,
const GeometricBoundingVolume **  last
[inherited]
 

Resets the volume to enclose only the volumes indicated.

Definition at line 74 of file geometricBoundingVolume.I.

bool BoundingHexahedron::around_hexahedrons const BoundingVolume **  first,
const BoundingVolume **  last
[protected, virtual]
 

Double-dispatch support: called by around_other() when the type of the first element in the list is known to be a nonempty hexahedron.

Reimplemented from BoundingVolume.

Definition at line 219 of file boundingHexahedron.cxx.

bool BoundingVolume::around_lines const BoundingVolume **  first,
const BoundingVolume **  last
[protected, virtual, inherited]
 

Double-dispatch support: called by around_other() when the type of the first element in the list is known to be a nonempty line.

Definition at line 196 of file boundingVolume.cxx.

References BoundingVolume::IF_dont_understand.

bool BoundingHexahedron::around_other BoundingVolume other,
const BoundingVolume **  first,
const BoundingVolume **  last
const [protected, virtual]
 

Implements BoundingVolume.

Definition at line 170 of file boundingHexahedron.cxx.

bool BoundingHexahedron::around_points const LPoint3f *  first,
const LPoint3f *  last
[protected, virtual]
 

Reimplemented from GeometricBoundingVolume.

Definition at line 204 of file boundingHexahedron.cxx.

bool BoundingHexahedron::around_spheres const BoundingVolume **  first,
const BoundingVolume **  last
[protected, virtual]
 

Double-dispatch support: called by around_other() when the type of the first element in the list is known to be a nonempty sphere.

Reimplemented from BoundingVolume.

Definition at line 211 of file boundingHexahedron.cxx.

INLINE_MATHUTIL int BoundingVolume::contains const BoundingVolume vol  )  const [inherited]
 

Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated volume.

Definition at line 145 of file boundingVolume.I.

INLINE_MATHUTIL int GeometricBoundingVolume::contains const LPoint3f &  a,
const LPoint3f &  b
const [inherited]
 

Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated line segment.

Definition at line 151 of file geometricBoundingVolume.I.

INLINE_MATHUTIL int GeometricBoundingVolume::contains const LPoint3f &  point  )  const [inherited]
 

Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated point.

Definition at line 130 of file geometricBoundingVolume.I.

INLINE_MATHUTIL int GeometricBoundingVolume::contains const GeometricBoundingVolume vol  )  const [inherited]
 

Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated volume.

Definition at line 113 of file geometricBoundingVolume.I.

References GeometricBoundingVolume::contains_lineseg(), BoundingVolume::IF_no_intersection, INLINE_MATHUTIL, and BoundingVolume::is_empty().

Referenced by CollisionTraverser::compare_collider_to_node().

int BoundingHexahedron::contains_hexahedron const BoundingHexahedron *  hexahedron  )  const [protected, virtual]
 

Double-dispatch support: called by contains_other() when the type we're testing for intersection is known to be a hexahedron.

Reimplemented from BoundingVolume.

Definition at line 304 of file boundingHexahedron.cxx.

References BoundingVolume::IF_no_intersection.

int BoundingVolume::contains_line const BoundingLine line  )  const [protected, virtual, inherited]
 

Double-dispatch support: called by contains_other() when the type we're testing for intersection is known to be a line.

Reimplemented in BoundingSphere.

Definition at line 257 of file boundingVolume.cxx.

int BoundingHexahedron::contains_lineseg const LPoint3f &  a,
const LPoint3f &  b
const [protected, virtual]
 

Reimplemented from GeometricBoundingVolume.

Definition at line 248 of file boundingHexahedron.cxx.

int BoundingHexahedron::contains_other const BoundingVolume other  )  const [protected, virtual]
 

Implements BoundingVolume.

Definition at line 177 of file boundingHexahedron.cxx.

int BoundingHexahedron::contains_point const LPoint3f &  point  )  const [protected, virtual]
 

Reimplemented from GeometricBoundingVolume.

Definition at line 227 of file boundingHexahedron.cxx.

int BoundingHexahedron::contains_sphere const BoundingSphere sphere  )  const [protected, virtual]
 

Double-dispatch support: called by contains_other() when the type we're testing for intersection is known to be a sphere.

Reimplemented from BoundingVolume.

Definition at line 274 of file boundingHexahedron.cxx.

References _planes, BoundingVolume::IF_all, BoundingVolume::IF_no_intersection, BoundingVolume::IF_possible, BoundingVolume::IF_some, and num_planes.

INLINE_MATHUTIL bool BoundingVolume::extend_by const BoundingVolume vol  )  [inherited]
 

Increases the size of the volume to include the given volume.

Definition at line 118 of file boundingVolume.I.

Referenced by GeometricBoundingVolume::GeometricBoundingVolume(), and CollisionSphere::get_collision_origin().

INLINE_MATHUTIL bool GeometricBoundingVolume::extend_by const LPoint3f &  point  )  [inherited]
 

Increases the size of the volume to include the given point.

Definition at line 59 of file geometricBoundingVolume.I.

INLINE_MATHUTIL bool GeometricBoundingVolume::extend_by const GeometricBoundingVolume vol  )  [inherited]
 

Increases the size of the volume to include the given volume.

Definition at line 44 of file geometricBoundingVolume.I.

References GeometricBoundingVolume::extend_by_point(), and INLINE_MATHUTIL.

Referenced by CollisionLevelState::prepare_collider().

bool BoundingHexahedron::extend_by_hexahedron const BoundingHexahedron *  hexahedron  )  [protected, virtual]
 

Double-dispatch support: called by extend_other() when the type we're extending by is known to be a hexahedron.

Reimplemented from BoundingVolume.

Definition at line 197 of file boundingHexahedron.cxx.

bool BoundingVolume::extend_by_line const BoundingLine line  )  [protected, virtual, inherited]
 

Double-dispatch support: called by extend_other() when the type we're extending by is known to be a line.

Reimplemented in BoundingLine.

Definition at line 142 of file boundingVolume.cxx.

References BoundingVolume::_flags, and BoundingVolume::F_infinite.

bool BoundingHexahedron::extend_by_point const LPoint3f &  point  )  [protected, virtual]
 

Reimplemented from GeometricBoundingVolume.

Definition at line 183 of file boundingHexahedron.cxx.

bool BoundingHexahedron::extend_by_sphere const BoundingSphere sphere  )  [protected, virtual]
 

Double-dispatch support: called by extend_other() when the type we're extending by is known to be a sphere.

Reimplemented from BoundingVolume.

Definition at line 190 of file boundingHexahedron.cxx.

bool BoundingHexahedron::extend_other BoundingVolume other  )  const [protected, virtual]
 

Implements BoundingVolume.

Definition at line 165 of file boundingHexahedron.cxx.

virtual TypeHandle BoundingHexahedron::force_init_type void   )  [inline, virtual]
 

Reimplemented from FiniteBoundingVolume.

Definition at line 128 of file boundingHexahedron.h.

LPoint3f BoundingHexahedron::get_approx_center  )  const [virtual]
 

Implements GeometricBoundingVolume.

Definition at line 119 of file boundingHexahedron.cxx.

References _centroid.

TypeHandle BoundingHexahedron::get_class_type void   )  [inline, static]
 

Reimplemented from FiniteBoundingVolume.

Definition at line 117 of file boundingHexahedron.h.

LPoint3f BoundingHexahedron::get_max  )  const [virtual]
 

Implements FiniteBoundingVolume.

Definition at line 105 of file boundingHexahedron.cxx.

References _points, and num_points.

LPoint3f BoundingHexahedron::get_min  )  const [virtual]
 

Implements FiniteBoundingVolume.

Definition at line 91 of file boundingHexahedron.cxx.

References _points, and num_points.

INLINE_MATHUTIL int BoundingHexahedron::get_num_planes  )  const
 

Definition at line 38 of file boundingHexahedron.I.

References _planes, INLINE_MATHUTIL, nassertr, and num_planes.

INLINE_MATHUTIL int BoundingHexahedron::get_num_points  )  const
 

Definition at line 27 of file boundingHexahedron.I.

References _points, INLINE_MATHUTIL, nassertr, and num_points.

INLINE_MATHUTIL Planef BoundingHexahedron::get_plane int  n  )  const
 

Definition at line 43 of file boundingHexahedron.I.

INLINE_MATHUTIL LPoint3f BoundingHexahedron::get_point int  n  )  const
 

Definition at line 32 of file boundingHexahedron.I.

int ReferenceCount::get_ref_count  )  const [inline, inherited]
 

Returns the current reference count.

Definition at line 183 of file referenceCount.I.

Referenced by RenderState::determine_bin_index(), RenderEffects::determine_show_bounds(), FontPool::ns_garbage_collect(), TexturePool::ns_garbage_collect(), MaterialPool::ns_get_material(), and TexturePool::ns_release_texture().

virtual TypeHandle BoundingHexahedron::get_type void   )  const [inline, virtual]
 

Reimplemented from FiniteBoundingVolume.

Definition at line 125 of file boundingHexahedron.h.

int TypedObject::get_type_index  )  const [inline, inherited]
 

Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

This is equivalent to get_type().get_index().

Definition at line 71 of file typedObject.I.

References TypeHandle::get_name(), TypedObject::get_type(), and INLINE.

void BoundingHexahedron::init_type void   )  [inline, static]
 

Reimplemented from FiniteBoundingVolume.

Definition at line 120 of file boundingHexahedron.h.

INLINE_MATHUTIL bool BoundingVolume::is_empty  )  const [inherited]
 

Any kind of volume might be empty.

This is a degenerate volume that contains no points; it's not the same as, for instance, a sphere with radius zero, since that contains one point (the center). It intersects with no other volumes.

Definition at line 51 of file boundingVolume.I.

References BoundingVolume::_flags, BoundingVolume::F_infinite, and INLINE_MATHUTIL.

Referenced by GeometricBoundingVolume::around(), GeometricBoundingVolume::contains(), BoundingLine::contains_other(), BoundingSphere::extend_by_hexahedron(), BoundingSphere::make_copy(), BoundingLine::make_copy(), make_copy(), and BoundingVolume::set_infinite().

bool TypedObject::is_exact_type TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is the indicated type exactly.

Definition at line 101 of file typedObject.I.

Referenced by PT(), and CollisionNode::xform().

INLINE_MATHUTIL bool BoundingVolume::is_infinite  )  const [inherited]
 

The other side of the empty coin is an infinite volume.

This is a degenerate state of a normally finite volume that contains all points. (Note that some kinds of infinite bounding volumes, like binary separating planes, do not contain all points and thus correctly return is_infinite() == false, even though they are technically infinite. This is a special case of the word 'infinite' meaning the volume covers all points in space.)

It completely intersects with all other volumes except empty volumes.

Definition at line 86 of file boundingVolume.I.

Referenced by BoundingLine::contains_other(), BoundingSphere::make_copy(), BoundingLine::make_copy(), make_copy(), and BoundingVolume::set_infinite().

bool TypedObject::is_of_type TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is or derives from the indicated type.

Definition at line 86 of file typedObject.I.

Referenced by EggMaterialCollection::collapse_equivalent_materials(), EggTextureCollection::collapse_equivalent_textures(), DeferredNodeProperty::compose(), AnimBundleMaker::create_s_channel(), CharacterMaker::create_slider(), ProjectionScreen::cull_callback(), DataNode::define_output(), EggNode::determine_draw_order(), CharacterMaker::egg_to_index(), EggGroupUniquifier::EggGroupUniquifier(), EggPoolUniquifier::EggPoolUniquifier(), EggGroupNode::find_textures(), StaticTextFont::get_glyph(), EggMaterialCollection::insert_materials(), EggTextureCollection::insert_textures(), CharacterJoint::make_copy(), PT(), EggGroupNode::r_flatten_transforms(), EggGroupNode::r_transform_vertices(), EggGroupNode::recompute_polygon_normals(), CollisionLevelState::reserve(), PandaFramework::reset_frame_rate(), PandaFramework::set_texture(), EggGroupNode::steal_children(), and DataGraphTraverser::traverse().

BoundingVolume * BoundingHexahedron::make_copy  )  const [virtual]
 

Implements BoundingVolume.

Definition at line 86 of file boundingHexahedron.cxx.

References BoundingVolume::is_empty(), BoundingVolume::is_infinite(), and nassertr.

void BoundingHexahedron::output ostream &  out  )  const [virtual]
 

Implements BoundingVolume.

Definition at line 137 of file boundingHexahedron.cxx.

int ReferenceCount::ref  )  const [inline, inherited]
 

Explicitly increments the reference count.

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 225 of file referenceCount.I.

Referenced by ClientDevice::ClientDevice(), EggGroupNode::find_textures(), EggGroupNode::r_apply_texmats(), EggGroupNode::r_flatten_transforms(), and EggGroupNode::reverse_vertex_ordering().

void BoundingHexahedron::set_centroid  )  [private]
 

Definition at line 365 of file boundingHexahedron.cxx.

Referenced by BoundingHexahedron().

INLINE_MATHUTIL void BoundingVolume::set_infinite  )  [inherited]
 

Marks the volume as infinite, even if it is normally finite.

You can think of this as an infinite extend_by() operation.

Definition at line 103 of file boundingVolume.I.

References BoundingVolume::IF_all, BoundingVolume::IF_no_intersection, BoundingVolume::IF_possible, BoundingVolume::IF_some, INLINE_MATHUTIL, BoundingVolume::is_empty(), and BoundingVolume::is_infinite().

Referenced by OmniBoundingVolume::extend_other().

void BoundingHexahedron::set_planes  )  [private]
 

Definition at line 335 of file boundingHexahedron.cxx.

References _centroid, _planes, _points, and nassertv.

Referenced by BoundingHexahedron().

void ReferenceCount::test_ref_count_integrity  )  const [inline, inherited]
 

Does some easy checks to make sure that the reference count isn't completely bogus.

Definition at line 328 of file referenceCount.I.

References INLINE.

Referenced by EggNode::determine_bin(), and ReferenceCount::~ReferenceCount().

int ReferenceCount::unref  )  const [inline, inherited]
 

Explicitly decrements the reference count.

Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete().

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 293 of file referenceCount.I.

References INLINE.

Referenced by RenderState::determine_bin_index(), and RenderEffects::determine_show_bounds().

void BoundingHexahedron::write ostream &  out,
int  indent_level = 0
const [virtual]
 

Reimplemented from BoundingVolume.

Definition at line 148 of file boundingHexahedron.cxx.

void BoundingHexahedron::xform const LMatrix4f &  mat  )  [virtual]
 

Implements GeometricBoundingVolume.

Definition at line 126 of file boundingHexahedron.cxx.

References _points.


Friends And Related Function Documentation

friend class BoundingSphere [friend]
 

Reimplemented from BoundingVolume.

Definition at line 133 of file boundingHexahedron.h.


Member Data Documentation

LPoint3f BoundingHexahedron::_centroid [private]
 

Definition at line 113 of file boundingHexahedron.h.

Referenced by get_approx_center(), and set_planes().

int BoundingVolume::_flags [protected, inherited]
 

Definition at line 114 of file boundingVolume.h.

Referenced by BoundingVolume::around(), BoundingHexahedron(), BoundingLine::BoundingLine(), BoundingSphere::BoundingSphere(), BoundingVolume::BoundingVolume(), BoundingSphere::extend_by_finite(), BoundingVolume::extend_by_hexahedron(), BoundingVolume::extend_by_line(), BoundingLine::extend_by_line(), GeometricBoundingVolume::extend_by_point(), BoundingSphere::extend_by_point(), BoundingSphere::extend_by_sphere(), BoundingVolume::is_empty(), BoundingVolume::write(), and BoundingLine::xform().

Planef BoundingHexahedron::_planes[num_planes] [private]
 

Definition at line 112 of file boundingHexahedron.h.

Referenced by contains_sphere(), get_num_planes(), and set_planes().

LPoint3f BoundingHexahedron::_points[num_points] [private]
 

Definition at line 111 of file boundingHexahedron.h.

Referenced by BoundingHexahedron(), get_max(), get_min(), get_num_points(), set_planes(), and xform().

TypeHandle BoundingHexahedron::_type_handle [static, private]
 

Reimplemented from FiniteBoundingVolume.

Definition at line 29 of file boundingHexahedron.cxx.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:47:46 2003 for Panda by doxygen1.3