source: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreTypeConverter.h @ 1593

Revision 1593, 1.1 KB checked in by mattausch, 18 years ago (diff)
Line 
1#ifndef _OgreTypeConverter_H__
2#define _OgreTypeConverter_H__
3 
4#include "OgreAxisAlignedBox.h"
5#include "AxisAlignedBox3.h"
6#include "Vector3.h"
7//#include "ManualObject.h"
8
9
10namespace Ogre {
11
12class SceneManager;
13
14/**
15        Class which converts preprocessor types to OGRE types
16*/
17class __declspec(dllexport) OgreTypeConverter
18{
19public:
20        /** Converts Ogre AABB to preprocessor AABB.
21        */
22        static GtpVisibilityPreprocessor::AxisAlignedBox3 ConvertFromOgre(const AxisAlignedBox &box);
23        /** Converts Ogre vector to preprocessor vector.
24        */
25        static GtpVisibilityPreprocessor::Vector3 ConvertFromOgre(const Vector3 &v);
26        /** Converts preprocessor AABB to Ogre AABB.
27        */
28        static AxisAlignedBox ConvertToOgre(const GtpVisibilityPreprocessor::AxisAlignedBox3 &box);
29        /** Converts preprocessor vector to Ogre vector.
30        */
31        static Vector3 ConvertToOgre(const GtpVisibilityPreprocessor::Vector3 &v);
32
33        /** The Ogre object will be created from the mesh.
34        */
35        static ManualObject *ConvertToOgre(GtpVisibilityPreprocessor::Mesh *mesh, SceneManager *sceneMgr);
36};
37
38} // namespace Ogre
39
40#endif // PlatformQueryManager
Note: See TracBrowser for help on using the repository browser.