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 __ICEAABB_H__
 
#define AABB_COMMON_METHODS
 
#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

#define __ICEAABB_H__

Definition at line 14 of file OPC_IceHook.h.

#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; \
}
#define FALSE
Definition: OPC_IceHook.h:9
signed int sdword
sizeof(sdword) must be 4
Definition: IceTypes.h:64
signed char sbyte
sizeof(sbyte) must be 1
Definition: IceTypes.h:60
#define TRUE
Definition: OPC_IceHook.h:13
#define inline_
png_infop png_uint_32 * width
Definition: png.h:2309
int BOOL
Another boolean type.
Definition: IceTypes.h:102
unsigned int udword
sizeof(udword) must be 4
Definition: IceTypes.h:65
png_infop png_uint_32 png_uint_32 * height
Definition: png.h:2309
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
int num
Definition: png.h:1502
#define const
Definition: zconf.h:124
* y
Definition: IceUtils.h:97
Definition: jquant2.c:258
#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; \
}
signed int sdword
sizeof(sdword) must be 4
Definition: IceTypes.h:64
signed char sbyte
sizeof(sbyte) must be 1
Definition: IceTypes.h:60
#define inline_
Definition: IcePoint.h:25
Definition: IcePlane.h:17
png_infop png_uint_32 * width
Definition: png.h:2309
int BOOL
Another boolean type.
Definition: IceTypes.h:102
unsigned int udword
sizeof(udword) must be 4
Definition: IceTypes.h:65
png_infop png_uint_32 png_uint_32 * height
Definition: png.h:2309
Definition: IceAABB.h:267
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
int num
Definition: png.h:1502
#define const
Definition: zconf.h:124
* y
Definition: IceUtils.h:97
Definition: jquant2.c:258

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

Definition at line 20 of file OPC_IceHook.h.

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 Sat Apr 13 2019 02:14:26