Public Member Functions | Static Public Member Functions | Friends

AABBTreeSphere Class Reference

The concrete implementation of an AABBTree that contains spheres. More...

Inheritance diagram for AABBTreeSphere:
AABBTree

List of all members.

Public Member Functions

OZCOLLIDE_API int getMemoryConsumption () const
 Get the memory consumption of the entire content of the tree in bytes.
OZCOLLIDE_API bool isCollideWithBox (const Box &)
OZCOLLIDE_API void collideWithBox (const Box &, AABBCDSphere_callback *, void *userCallback=NULL)
OZCOLLIDE_API void collideWithFrustum (const Frustum &, AABBCDSphere_callback *, void *userCallback=NULL)
OZCOLLIDE_API int getNbCollidedPrimitives () const
OZCOLLIDE_API ERR saveBinary (const char *filename)
 Saves the tree on the disk given a location.
OZCOLLIDE_API ERR saveBinary (DataOut &)
 Saves the tree via a DataOut pipe.
OZCOLLIDE_API void scale (float)
 Scale the tree by a given factor.

Static Public Member Functions

static OZCOLLIDE_API ERR loadBinary (const char *filename, AABBTreeSphere **)
static OZCOLLIDE_API ERR loadBinary (DataIn &, AABBTreeSphere **)

Friends

class AABBTree
class AABBTreeSphere_Builder

Detailed Description

The concrete implementation of an AABBTree that contains spheres.


Member Function Documentation

OZCOLLIDE_API int AABBTreeSphere::getMemoryConsumption (  )  const [virtual]

Get the memory consumption of the entire content of the tree in bytes.

Returns:
The memory consumption in bytes.

Implements AABBTree.

OZCOLLIDE_API ERR AABBTreeSphere::saveBinary ( const char *  filename  )  [virtual]

Saves the tree on the disk given a location.

Parameters:
filename Location of the filename
Returns:
NOERR if everything ok.

Implements AABBTree.

OZCOLLIDE_API ERR AABBTreeSphere::saveBinary ( DataOut _data  )  [virtual]

Saves the tree via a DataOut pipe.

Parameters:
_data The pipe instance.
Returns:
NOERR if everything ok.

Implements AABBTree.

OZCOLLIDE_API void AABBTreeSphere::scale ( float   )  [virtual]

Scale the tree by a given factor.

Parameters:
The scale factor.

Implements AABBTree.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator