Classes | Defines | Enumerations | Functions
IceAABB.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AABB

Defines

#define AABB_COMMON_METHODS
 Declarations of type-independent methods (most of them implemented in the .cpp)
#define AABB_COMMON_METHODS

Enumerations

enum  AABBType { AABB_RENDER = 0, AABB_UPDATE = 1, AABB_FORCE_DWORD = 0x7fffffff }

Functions

inline_ void ComputeAABB (AABB &aabb, const Point *list, udword nb_pts)
inline_ void ComputeMinMax (const Point &p, Point &min, Point &max)

Detailed Description

Contains AABB-related code. (axis-aligned bounding box)

Author:
Pierre Terdiman
Date:
January, 13, 2000

Definition in file IceAABB.h.


Define Documentation

Value:
AABB&                   Add(const AABB& aabb);                                                                                                                                                                  \
                        float                   MakeCube(AABB& cube)                                                                                                                                                    const;  \
                        void                    MakeSphere(Sphere& sphere)                                                                                                                                              const;  \
                        const sbyte*    ComputeOutline(const Point& local_eye, sdword& num)                                                                                             const;  \
                        float                   ComputeBoxArea(const Point& eye, const Matrix4x4& mat, float width, float height, sdword& num)  const;  \
                        bool                    IsInside(const AABB& box)                                                                                                                                               const;  \
                        bool                    ComputePlanes(Plane* planes)                                                                                                                                    const;  \
                        bool                    ComputePoints(Point* pts)                                                                                                                                               const;  \
                        const Point*    GetVertexNormals()                                                                                                                                                              const;  \
                        const udword*   GetEdges()                                                                                                                                                                              const;  \
                        const Point*    GetEdgeNormals()                                                                                                                                                                const;  \
        inline_ BOOL                    ContainsPoint(const Point& p)                                                                                                                                   const   \
                                                        {                                                                                                                                                                                                               \
                                                                if(p.x > GetMax(0) || p.x < GetMin(0)) return FALSE;                                                                                            \
                                                                if(p.y > GetMax(1) || p.y < GetMin(1)) return FALSE;                                                                                            \
                                                                if(p.z > GetMax(2) || p.z < GetMin(2)) return FALSE;                                                                                            \
                                                                return TRUE;                                                                                                                                                                            \
                                                        }

Declarations of type-independent methods (most of them implemented in the .cpp)

Definition at line 20 of file OPC_IceHook.h.

Value:
AABB&                   Add(const AABB& aabb);                                                                                                                                                                  \
                        float                   MakeCube(AABB& cube)                                                                                                                                                    const;  \
                        void                    MakeSphere(Sphere& sphere)                                                                                                                                              const;  \
                        const sbyte*    ComputeOutline(const Point& local_eye, sdword& num)                                                                                             const;  \
                        float                   ComputeBoxArea(const Point& eye, const Matrix4x4& mat, float width, float height, sdword& num)  const;  \
                        bool                    IsInside(const AABB& box)                                                                                                                                               const;  \
                        bool                    ComputePlanes(Plane* planes)                                                                                                                                    const;  \
                        bool                    ComputePoints(Point* pts)                                                                                                                                               const;  \
                        const Point*    GetVertexNormals()                                                                                                                                                              const;  \
                        const udword*   GetEdges()                                                                                                                                                                              const;  \
                        const Point*    GetEdgeNormals()                                                                                                                                                                const;  \
        inline_ BOOL                    ContainsPoint(const Point& p)                                                                                                                                   const   \
                                                        {                                                                                                                                                                                                               \
                                                                if(p.x > GetMax(0) || p.x < GetMin(0)) return FALSE;                                                                                            \
                                                                if(p.y > GetMax(1) || p.y < GetMin(1)) return FALSE;                                                                                            \
                                                                if(p.z > GetMax(2) || p.z < GetMin(2)) return FALSE;                                                                                            \
                                                                return TRUE;                                                                                                                                                                            \
                                                        }

Enumeration Type Documentation

enum AABBType
Enumerator:
AABB_RENDER 

AABB used for rendering. Not visible == not rendered.

AABB_UPDATE 

AABB used for dynamic updates. Not visible == not updated.

AABB_FORCE_DWORD 

Definition at line 39 of file IceAABB.h.


Function Documentation

inline_ void ComputeAABB ( AABB aabb,
const Point list,
udword  nb_pts 
)

Definition at line 490 of file IceAABB.h.

inline_ void ComputeMinMax ( const Point p,
Point min,
Point max 
)

Definition at line 478 of file IceAABB.h.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:58