#include <AABox.h>
Collaboration diagram for gmtl::AABox:

Public Types | |
| typedef DATA_TYPE | DataType |
Public Methods | |
| AABox () | |
| Creates a new empty box. More... | |
| AABox (const Point< DATA_TYPE, 3 > &min, const Point< DATA_TYPE, 3 > &max) | |
| Creates a new box with the given min and max points. More... | |
| AABox (const AABox< DATA_TYPE > &box) | |
| Construcst a duplicate of the given box. More... | |
| const Point< DATA_TYPE, 3 > & | getMin () const |
| Gets the minimum point of the box. More... | |
| const Point< DATA_TYPE, 3 > & | getMax () const |
| Gets the maximum point of the box. More... | |
| bool | isEmpty () const |
| Tests if this box occupies no space. More... | |
| void | setMin (const Point< DATA_TYPE, 3 > &min) |
| Sets the minimum point of the box. More... | |
| void | setMax (const Point< DATA_TYPE, 3 > &max) |
| Sets the maximum point of the box. More... | |
| void | setEmpty (bool empty) |
| Sets the empty flag on this box. More... | |
Public Attributes | |
| Point< DATA_TYPE, 3 > | mMin |
| The minimum point of the box. More... | |
| Point< DATA_TYPE, 3 > | mMax |
| The maximum point on the box. More... | |
| bool | mEmpty |
| Flag for empty box. More... | |
This is usually used for graphics applications. It is defined by its minimum and maximum points.
| DATA_TYPE | the internal type used for the points |
Definition at line 51 of file AABox.h.
|
|||||
|
|
|
|||||||||
|
Creates a new empty box.
Definition at line 60 of file AABox.h. References mEmpty, mMax, and mMin.
|
|
||||||||||||||||
|
Creates a new box with the given min and max points.
Definition at line 73 of file AABox.h. References mEmpty, mMax, and mMin.
|
|
||||||||||
|
Construcst a duplicate of the given box.
Definition at line 82 of file AABox.h. References mEmpty, mMax, and mMin.
|
|
|||||||||
|
Gets the maximum point of the box.
Definition at line 101 of file AABox.h. References mMax.
00102 {
00103 return mMax;
00104 }
|
|
|||||||||
|
Gets the minimum point of the box.
Definition at line 91 of file AABox.h. References mMin.
00092 {
00093 return mMin;
00094 }
|
|
|||||||||
|
Tests if this box occupies no space.
Definition at line 111 of file AABox.h. References mEmpty.
00112 {
00113 return mEmpty;
00114 }
|
|
||||||||||
|
Sets the empty flag on this box.
Definition at line 141 of file AABox.h. References mEmpty.
00142 {
00143 mEmpty = empty;
00144 }
|
|
||||||||||
|
Sets the maximum point of the box.
Definition at line 131 of file AABox.h. References mMax.
00132 {
00133 mMax = max;
00134 }
|
|
||||||||||
|
Sets the minimum point of the box.
Definition at line 121 of file AABox.h. References mMin.
00122 {
00123 mMin = min;
00124 }
|
|
|||||
|
Flag for empty box. True if the box is empty. |
|
|||||
|
The maximum point on the box.
|
|
|||||
|
The minimum point of the box.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002