Rev | Line | |
---|
[700] | 1 | #ifndef _IMGBBOX_H |
---|
| 2 | #define _IMGBBOX_H |
---|
| 3 | |
---|
| 4 | #include "IMGPrerequisites.h" |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | namespace IMG { |
---|
| 8 | |
---|
| 9 | #define BOUNDINGBOX_MAXVALUE 1000000000.
|
---|
| 10 | #define BOX_CORNER_xyz 0
|
---|
| 11 | #define BOX_CORNER_xyZ 1
|
---|
| 12 | #define BOX_CORNER_xYz 2
|
---|
| 13 | #define BOX_CORNER_xYZ 3
|
---|
| 14 | #define BOX_CORNER_Xyz 4
|
---|
| 15 | #define BOX_CORNER_XyZ 5
|
---|
| 16 | #define BOX_CORNER_XYz 6
|
---|
| 17 | #define BOX_CORNER_XYZ 7
|
---|
| 18 |
|
---|
| 19 | #define BOX_CORNER_xy 0
|
---|
| 20 | #define BOX_CORNER_xY 2
|
---|
| 21 | #define BOX_CORNER_Xy 4
|
---|
| 22 | #define BOX_CORNER_XY 6
|
---|
| 23 | |
---|
| 24 | //* |
---|
| 25 | // this class encaplusalte the ogre::AxisAlignedBox |
---|
| 26 | //* |
---|
[731] | 27 | class _IMGExport BBox: public Ogre::AxisAlignedBox { |
---|
[700] | 28 | public: |
---|
[721] | 29 | BBox(); |
---|
[700] | 30 | |
---|
[721] | 31 | ~BBox(); |
---|
[700] | 32 | |
---|
[731] | 33 | void initialize(); |
---|
[700] | 34 | |
---|
[731] | 35 | Ogre::Vector3 getMinimum(); |
---|
[700] | 36 | |
---|
[731] | 37 | Ogre::Vector3 getMaximum(); |
---|
[700] | 38 | |
---|
[731] | 39 | void addBoundingVector3(float x, float y, float z); |
---|
[700] | 40 | |
---|
[731] | 41 | void print(); |
---|
[700] | 42 | |
---|
[731] | 43 | Ogre::Vector3 getCorner(int corner) const; |
---|
[700] | 44 | |
---|
[721] | 45 | bool intersects(Ogre::Vector3 v); |
---|
[700] | 46 | |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | } |
---|
| 50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.