source: trunk/VUT/OcclusionCullingSceneManager/include/OgreSolidHalfBoundingBox.h @ 51

Revision 51, 1.0 KB checked in by mattausch, 19 years ago (diff)
Line 
1#ifndef _SolidHalfBoundingBox_H__
2#define _SolidHalfBoundingBox_H__
3
4#include "OgrePrerequisites.h"
5
6#include "OgreWireBoundingBox.h"
7
8namespace Ogre {
9
10    /** Allows the rendering of one half of a solid bounding box.
11        @remarks
12            This class builds a wireframe renderable from a given aabb. A pointer to this class can be
13                        added to a render queue to display the bounding box of an object.
14    */
15        class SolidHalfBoundingBox : public WireBoundingBox
16        {
17        public:
18
19                SolidHalfBoundingBox(bool isFirstHalf);
20                void setupBoundingBox(const AxisAlignedBox& aabb);
21                /** Override this method to prevent parent transforms (rotation,translation,scale)
22                and to make it public.
23        */
24                void getWorldTransforms( Matrix4* xform ) const;
25
26    protected:
27       
28        /** Builds the wireframe line list.
29                @param the axis aligned bounding box for setting up the list.
30        */
31                void setupBoundingBoxVertices(const AxisAlignedBox& aab);
32
33                bool mIsFirstHalf;     
34        };
35
36}// namespace
37
38#endif
39
40
Note: See TracBrowser for help on using the repository browser.