OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::Box Struct Reference

Structure used to define a box in a 3-D integer space. More...

#include <OgreCommon.h>

+ Inheritance diagram for Ogre::Box:

Public Member Functions

 Box ()
 Parameterless constructor for setting the members manually. More...
 
 Box (size_t l, size_t t, size_t r, size_t b)
 Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and back=1). More...
 
 Box (size_t l, size_t t, size_t ff, size_t r, size_t b, size_t bb)
 Define a box from left, top, front, right, bottom and back coordinates. More...
 
bool contains (const Box &def) const
 Return true if the other box is a part of this one. More...
 
size_t getDepth () const
 Get the depth of this box. More...
 
size_t getHeight () const
 Get the height of this box. More...
 
size_t getWidth () const
 Get the width of this box. More...
 

Public Attributes

size_t back
 
size_t bottom
 
size_t front
 
size_t left
 
size_t right
 
size_t top
 

Detailed Description

Structure used to define a box in a 3-D integer space.

Note that the left, top, and front edges are included but the right, bottom and back ones are not.

Definition at line 633 of file OgreCommon.h.

Constructor & Destructor Documentation

Ogre::Box::Box ( )
inline

Parameterless constructor for setting the members manually.

Definition at line 637 of file OgreCommon.h.

Ogre::Box::Box ( size_t  l,
size_t  t,
size_t  r,
size_t  b 
)
inline

Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and back=1).

Parameters
lx value of left edge
ty value of top edge
rx value of right edge
by value of bottom edge
Note
Note that the left, top, and front edges are included but the right, bottom and back ones are not.

Definition at line 650 of file OgreCommon.h.

References back, bottom, front, left, right, and top.

Ogre::Box::Box ( size_t  l,
size_t  t,
size_t  ff,
size_t  r,
size_t  b,
size_t  bb 
)
inline

Define a box from left, top, front, right, bottom and back coordinates.

Parameters
lx value of left edge
ty value of top edge
ffz value of front edge
rx value of right edge
by value of bottom edge
bbz value of back edge
Note
Note that the left, top, and front edges are included but the right, bottom and back ones are not.

Definition at line 671 of file OgreCommon.h.

References back, bottom, front, left, right, and top.

Member Function Documentation

bool Ogre::Box::contains ( const Box def) const
inline

Return true if the other box is a part of this one.

Definition at line 683 of file OgreCommon.h.

References back, bottom, front, left, right, and top.

size_t Ogre::Box::getDepth ( ) const
inline
size_t Ogre::Box::getHeight ( ) const
inline
size_t Ogre::Box::getWidth ( ) const
inline

Member Data Documentation


The documentation for this struct was generated from the following file: