#include <boundingvolume.h>
Inheritance diagram for BoundingVolume:
Public Types | |
enum | BOUNDINGVOLUMETYPE { BV_AABB, BV_OBB, BV_SPHERE, BV_CAPSULE } |
Bounding volume type identifiers. More... | |
Public Member Functions | |
BoundingVolume () | |
BoundingVolume (const BoundingVolume &rkVolume) | |
virtual bool | Intersection (AABB *pkAABB, ContactSet *pkContactSet=0, bool bInvertNormal=false)=0 |
virtual bool | Intersection (OBB *pkOBB, ContactSet *pkContactSet=0, bool bInvertNormal=false)=0 |
virtual bool | Intersection (Sphere *pkSphere, ContactSet *pkContactSet=0, bool bInvertNormal=false)=0 |
virtual bool | Intersection (Capsule *pkCapsule, ContactSet *pkContactSet=0, bool bInvertNormal=false)=0 |
virtual bool | Intersection (Frustum *pkFrustum)=0 |
virtual bool | Intersection (const Vector3d &rkV0, const Vector3d &rkV1, const Vector3d &rkV2, ContactSet *pkContactSet=0, bool bForceTriNormal=true, const Vector3d &rkNormal=Vector3d::ZERO)=0 |
virtual bool | Intersection (BoundingVolume *pkObj, ContactSet *pkContactSet=0, bool bInvertNormal=false)=0 |
virtual bool | Intersection (const Vector3d &rkPoint)=0 |
virtual bool | Intersection (const Ray &rkRay, ContactSet *pkContactSet=0)=0 |
virtual bool | Intersection (const Line &rkLine)=0 |
virtual bool | Intersection (const Plane &rkPlane)=0 |
virtual void | Generate (AABB *pkAABB)=0 |
virtual void | Generate (OBB *pkOBB)=0 |
virtual void | Generate (Sphere *pkSphere)=0 |
virtual void | Generate (Capsule *pkCapsule)=0 |
void | Generate (BoundingVolume *pkObj) |
virtual void | Generate (VertexBufferPtr &pkVertexBuffer)=0 |
virtual void | Merge (AABB *pkAABB)=0 |
virtual void | Merge (OBB *pkOBB)=0 |
virtual void | Merge (Sphere *pkSphere)=0 |
virtual void | Merge (Capsule *pkCapsule)=0 |
void | Merge (BoundingVolume *pkObj) |
virtual BOUNDINGVOLUMETYPE | GetType ()=0 |
virtual BoundingVolume * | Duplicate () const=0 |
virtual void | RenderOutlines (const Color &rkColor=Color::GREEN) const=0 |
const Vector3d & | GetTranslation () const |
const Quaternion & | GetRotation () const |
float | GetScaling () const |
void | Translate (const Vector3d &rkTranslation, bool bNotifyUpdate=true) |
void | TranslateWorld (const Vector3d &rkTranslation, bool bNotifyUpdate=true) |
void | Rotate (const Quaternion &rkRotation, bool bNotifyUpdate=true) |
void | RotateWorld (const Quaternion &rkRotation, bool bNotifyUpdate=true) |
void | Scale (float fScaling, bool bNotifyUpdate=true) |
virtual void | SetTranslation (const Vector3d &rkTranslation, bool bNotifyUpdate=true) |
virtual void | SetRotation (const Quaternion &rkRotation, bool bNotifyUpdate=true) |
virtual void | SetScaling (float fScaling, bool bNotifyUpdate=true) |
Protected Attributes | |
float | m_fScaling |
Quaternion | m_kRotation |
Vector3d | m_kTranslation |
|
Bounding volume type identifiers.
|
|
|
|
Create from reference object
|
|
Intersection with AABB
|
|
Intersection with OBB
|
|
Intersection with sphere
|
|
Intersection with capsule
|
|
Intersection with frustum
|
|
Intersection with polygon
|
|
Intersection test with unknown object type
|
|
Intersection with point
|
|
Intersection with ray
|
|
Intersection with line
|
|
Intersection with plane
|
|
Generate from AABB
|
|
Generate from OBB
|
|
Generate from sphere
|
|
Generate from capsule
|
|
Generate from unknown object
|
|
Generate from vertex soup
|
|
Merge with AABB
|
|
Merge with OBB
|
|
Merge with sphere
|
|
Merge with capsule
|
|
Merge with unknown object
|
|
|
|
Duplicate volume
|
|
Render volume outlines
|
|
|
|
|
|
|
|
Translate node from current position, in local (along current rotated axes) coordinate system. Will call SetTranslation() for setting new translation of node, derived classes do not need to overload this method directly. Not affected by current scaling.
|
|
Translate node from current position, in world (along unrotated axes) coordinate system. Will call SetTranslation() for setting new translation of node, derived classes do not need to overload this method directly. Not affected by current scaling.
|
|
Rotate node in local (current rotation) coordinate system. Will call SetRotation() for setting new rotation of node, derived classes do not need to overload this method directly. Not affected by current scaling.
|
|
Rotate node in world (unrotated) coordinate system. Will call SetRotation() for setting new rotation of node, derived classes do not need to overload this method directly. Not affected by current scaling.
|
|
Scale node by uniform factor. Will use SetScaling for setting new scaling of node, derived classes do not need to overload this method directly. Must be >0, where a value of 1.0f indicates no scaling
|
|
Set translation for node. Derived classes used in hierarchy trees can overload this method and implement caching of world data, or use flag to indicate update needed later.
Reimplemented in HierarchyNode, HierarchyNode< Bone >, and HierarchyNode< SceneNode >. |
|
Set rotation for node. Derived classes used in hierarchy trees can overload this method and implement caching of world data, or use flag to indicate update needed later.
Reimplemented in AABB, HierarchyNode, HierarchyNode< Bone >, and HierarchyNode< SceneNode >. |
|
Set uniform scaling for node. Derived classes used in hierarchy trees can overload this method and implement caching of world data, or use flag to indicate update needed later. A value of 1.0f indicates no scaling.
Reimplemented in HierarchyNode, HierarchyNode< Bone >, and HierarchyNode< SceneNode >. |
|
Uniform scaling factor (must be >0, default 1) |
|
Rotation |
|
Translation |