BoundingHexahedron

Inheritance:

Methods of BoundingHexahedron:

Methods of FiniteBoundingVolume:

Methods of GeometricBoundingVolume:

Methods of BoundingVolume:

Methods of TypedReferenceCount:

Methods of TypedObject:

Methods of ReferenceCount:

Constants in BoundingVolume:

getClassType
static TypeHandle BoundingHexahedron::get_class_type(void);

Undocumented function.

getNumPlanes
int BoundingHexahedron::get_num_planes(void) const;

Description: Returns 6: the number of faces of a hexahedron.

getNumPoints
int BoundingHexahedron::get_num_points(void) const;

Description: Returns 8: the number of vertices of a hexahedron.

getPlane
Planef BoundingHexahedron::get_plane(int n) const;

Description: Returns the nth face of the hexahedron.

getPoint
LPoint3f BoundingHexahedron::get_point(int n) const;

Description: Returns the nth vertex of the hexahedron.

getClassType
static TypeHandle FiniteBoundingVolume::get_class_type(void);

Undocumented function.

getMax
virtual LPoint3f FiniteBoundingVolume::get_max(void) const = 0;

Undocumented function.

getMin
virtual LPoint3f FiniteBoundingVolume::get_min(void) const = 0;

Undocumented function.

getVolume
virtual float FiniteBoundingVolume::get_volume(void) const;

Description:

around
bool GeometricBoundingVolume::around(GeometricBoundingVolume const **first, GeometricBoundingVolume const **last);

It might be nice to make these template member functions so we could have true STL-style first/last iterators, but that's impossible for virtual functions.
Description: Resets the volume to enclose only the volumes indicated.
Description: Resets the volume to enclose only the points indicated.

contains
int GeometricBoundingVolume::contains(GeometricBoundingVolume const *vol) const;

Description: Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated volume.
Description: Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated point.
Description: Returns the appropriate set of IntersectionFlags to indicate the amount of intersection with the indicated line segment.

extendBy
bool GeometricBoundingVolume::extend_by(GeometricBoundingVolume const *vol);

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

getApproxCenter
virtual LPoint3f GeometricBoundingVolume::get_approx_center(void) const = 0;

Undocumented function.

getClassType
static TypeHandle GeometricBoundingVolume::get_class_type(void);

Undocumented function.

xform
virtual void GeometricBoundingVolume::xform(LMatrix4f const &mat) = 0;

Undocumented function.

around
bool BoundingVolume::around(BoundingVolume const **first, BoundingVolume const **last);

It might be nice to make these template member functions so we could have true STL-style first/last iterators, but that's impossible for virtual functions.
Description: 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.

contains
int BoundingVolume::contains(BoundingVolume const *vol) const;

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

extendBy
bool BoundingVolume::extend_by(BoundingVolume const *vol);

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

getClassType
static TypeHandle BoundingVolume::get_class_type(void);

Undocumented function.

isEmpty
bool BoundingVolume::is_empty(void) const;

Description: 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.

isInfinite
bool BoundingVolume::is_infinite(void) const;

Description: 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.

makeCopy
virtual BoundingVolume *BoundingVolume::make_copy(void) const = 0;

Undocumented function.

output
virtual void BoundingVolume::output(ostream &out) const = 0;

Undocumented function.

setInfinite
void BoundingVolume::set_infinite(void);

Description: Marks the volume as infinite, even if it is normally finite. You can think of this as an infinite extend_by() operation.

write
virtual void BoundingVolume::write(ostream &out, int indent_level = (0)) const;

Description:

getClassType
static TypeHandle TypedReferenceCount::get_class_type(void);

Undocumented function.

getClassType
static TypeHandle TypedObject::get_class_type(void);

Undocumented function.

getType
virtual TypeHandle TypedObject::get_type(void) const = 0;

Derived classes should override this function to return get_class_type().

getTypeIndex
int TypedObject::get_type_index(void) const;

Description: 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().

isExactType
bool TypedObject::is_exact_type(TypeHandle handle) const;

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

isOfType
bool TypedObject::is_of_type(TypeHandle handle) const;

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

getClassType
static TypeHandle ReferenceCount::get_class_type(void);

Undocumented function.

getRefCount
int ReferenceCount::get_ref_count(void) const;

Description: Returns the current reference count.

ref
void ReferenceCount::ref(void) const;

Description: 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.

testRefCountIntegrity
bool ReferenceCount::test_ref_count_integrity(void) const;

Description: Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise.

testRefCountNonzero
bool ReferenceCount::test_ref_count_nonzero(void) const;

Description: Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise.

unref
bool ReferenceCount::unref(void) const;

Description: 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 true if the new reference count is nonzero, false if it is zero.