source: GTP/trunk/Lib/Vis/OnlineCullingCHC/ObjReader/include/ObjReader.h @ 2332

Revision 2332, 890 bytes checked in by mattausch, 17 years ago (diff)

implemented part of rendering estimation of wimmer et al. for view space / object space subdivision.
warning: not working with undersampling estimation + local visibility based subdivision.

Line 
1#ifndef __ObjReader_H__
2#define __ObjReader_H__
3
4#include <string>
5#include <vector>
6#include <Ogre.h>
7#include "Containers.h"
8
9namespace  GtpVisibilityPreprocessor {
10class Intersectable;
11class Preprocessor;
12}
13
14class __declspec(dllexport) ObjReader
15{
16public:
17        ObjReader(Ogre::SceneManager *sceneManager);
18        ~ObjReader();
19
20        bool LoadFile(const std::string &sceneName,
21                                  const std::string &visibilitySolution,
22                                  Ogre::SceneNode *root);
23       
24        Ogre::Entity *CreateEntity(const std::string &name,
25                                                           GtpVisibilityPreprocessor::Intersectable *object);
26        Ogre::ManualObject *CreateManualObject(const std::string &name,
27                                                           GtpVisibilityPreprocessor::Intersectable *object);
28protected:
29
30        Ogre::SceneManager *mSceneManager;
31        GtpVisibilityPreprocessor::ObjectContainer mPvsObjects;
32        GtpVisibilityPreprocessor::Preprocessor *mPreprocessor;
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.