OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Structure used to define a box in a 3-D integer space. More...
#include <OgreCommon.h>
Public Member Functions | |
Box () | |
Parameterless constructor for setting the members manually. More... | |
Box (uint32 l, uint32 t, uint32 r, uint32 b) | |
Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and back=1). More... | |
Box (uint32 l, uint32 t, uint32 ff, uint32 r, uint32 b, uint32 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... | |
uint32 | getDepth () const |
Get the depth of this box. More... | |
uint32 | getHeight () const |
Get the height of this box. More... | |
uint32 | getWidth () const |
Get the width of this box. More... | |
Public Attributes | |
uint32 | back |
uint32 | bottom |
uint32 | front |
uint32 | left |
uint32 | right |
uint32 | top |
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.
|
inline |
Parameterless constructor for setting the members manually.
Define a box from left, top, right and bottom coordinates This box will have depth one (front=0 and back=1).
l | x value of left edge |
t | y value of top edge |
r | x value of right edge |
b | y value of bottom edge |
Define a box from left, top, front, right, bottom and back coordinates.
l | x value of left edge |
t | y value of top edge |
ff | z value of front edge |
r | x value of right edge |
b | y value of bottom edge |
bb | z value of back edge |
|
inline |
|
inline |
Get the width of this box.
|
inline |
Get the height of this box.
|
inline |
Get the depth of this box.
References Ogre::findCommandLineOpts(), and Ogre::HashedVector< T >::front().
uint32 Ogre::Box::left |
Referenced by contains().
uint32 Ogre::Box::top |
Referenced by contains().
uint32 Ogre::Box::right |
Referenced by contains().
uint32 Ogre::Box::bottom |
Referenced by contains().
uint32 Ogre::Box::front |
Referenced by contains().
uint32 Ogre::Box::back |
Referenced by contains().