source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBBox.h @ 731

Revision 731, 845 bytes checked in by igarcia, 19 years ago (diff)
Line 
1#ifndef _IMGBBOX_H
2#define _IMGBBOX_H
3
4#include "IMGPrerequisites.h"
5
6
7namespace 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//*
27class _IMGExport BBox: public Ogre::AxisAlignedBox {
28  public:
29    BBox();
30
31        ~BBox();
32
33    void initialize();
34
35        Ogre::Vector3 getMinimum();
36
37        Ogre::Vector3 getMaximum();
38
39    void addBoundingVector3(float x, float y, float z);
40
41    void print();
42
43        Ogre::Vector3 getCorner(int corner) const;
44
45    bool intersects(Ogre::Vector3 v);
46
47};
48
49}
50#endif
Note: See TracBrowser for help on using the repository browser.