Classes | Macros | 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
 

Macros

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

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.

Macro Definition Documentation

◆ AABB_COMMON_METHODS

#define AABB_COMMON_METHODS
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 19 of file IceAABB.h.

Enumeration Type Documentation

◆ AABBType

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

◆ ComputeAABB()

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

Definition at line 490 of file IceAABB.h.

◆ ComputeMinMax()

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

Definition at line 478 of file IceAABB.h.

width
png_infop png_uint_32 * width
Definition: png.h:2306
Matrix4x4
Definition: IceMatrix4x4.h:21
box
Definition: jquant2.c:258
udword
unsigned int udword
sizeof(udword) must be 4
Definition: IceTypes.h:65
BOOL
int BOOL
Another boolean type.
Definition: IceTypes.h:102
sbyte
signed char sbyte
sizeof(sbyte) must be 1
Definition: IceTypes.h:60
TRUE
#define TRUE
Definition: OPC_IceHook.h:13
FALSE
#define FALSE
Definition: OPC_IceHook.h:9
Point
Definition: IcePoint.h:25
Plane
Definition: IcePlane.h:17
height
png_infop png_uint_32 png_uint_32 * height
Definition: png.h:2306
Sphere
Definition: IceBoundingSphere.h:24
sdword
signed int sdword
sizeof(sdword) must be 4
Definition: IceTypes.h:64
AABB
Definition: IceAABB.h:267
num
int num
Definition: png.h:1499


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:05