Public Member Functions | Private Attributes
objtree::BBox Class Reference

#include <bbox.h>

Inheritance diagram for objtree::BBox:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BBox (const Box &box)
const Boxbox () const
virtual bool fitsIntoBox (const Box &box) const
virtual bool interfereWithBox (const Box &box) const
virtual bool isPointInside (float x, float y, float z) const
virtual bool isSimilar (const Object *object) const
virtual bool isSimilarBBox (const BBox *object) const

Private Attributes

Box m_box

Detailed Description

Bounding box class. Represent aligned bounding box in octree.

Definition at line 42 of file bbox.h.


Constructor & Destructor Documentation

objtree::BBox::BBox ( const Box box)

A constructor.

Parameters:
boxbounding box position and size

Definition at line 38 of file bbox.cpp.


Member Function Documentation

const Box & objtree::BBox::box ( ) const

Returns position and size of the bounding box

Returns:
position and size of the bounding box

Definition at line 133 of file bbox.cpp.

bool objtree::BBox::fitsIntoBox ( const Box box) const [virtual]

Returns true if BBox fits into a box.

Parameters:
boxbox for test
Returns:
true if BBox fits into a box, false otherwise

Implements objtree::Object.

Definition at line 49 of file bbox.cpp.

bool objtree::BBox::interfereWithBox ( const Box box) const [virtual]

Returns true if BBox interferes with a box.

Parameters:
boxbox for test
Returns:
true if BBox interferes with box, false otherwise

Implements objtree::Object.

Definition at line 64 of file bbox.cpp.

bool objtree::BBox::isPointInside ( float  x,
float  y,
float  z 
) const [virtual]

Check if point is in the BBox.

Parameters:
x
y
z
Returns:
true if point is inside the BBox, false otherwise

Implements objtree::Object.

Definition at line 122 of file bbox.cpp.

bool objtree::BBox::isSimilar ( const Object object) const [virtual]

Compare other object for similarity.

Parameters:
objectobject to compare
Returns:
true if object is similar, false otherwise

Implements objtree::Object.

Reimplemented in objtree::GBBox.

Definition at line 89 of file bbox.cpp.

bool objtree::BBox::isSimilarBBox ( const BBox box) const [virtual]

Compare other bounding box for similarity.

Parameters:
boxbounding box to compare
Returns:
true if bounding box is similar, false otherwise

Definition at line 101 of file bbox.cpp.


Member Data Documentation

Definition at line 45 of file bbox.h.


The documentation for this class was generated from the following files:


srs_env_model
Author(s): Vit Stancl (stancl@fit.vutbr.cz), Tomas Lokaj, Jan Gorig, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Sun Jan 5 2014 11:50:50