Ignore:
Timestamp:
02/15/07 14:45:30 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/ObjReader/include/ObjReader.h

    r2115 r2119  
    22#define __ObjReader_H__ 
    33 
    4 //#include <stdlib> 
    54#include <string> 
    65#include <vector> 
    76#include <Ogre.h> 
    87#include "Containers.h" 
    9 /*#include "ObjNode.h" 
    10 #include "ObjMeshData.h" 
    11 #include "ObjManualMeshLoader.h" 
    12 */ 
    138 
    14  
    15 namespace GtpVisibilityPreprocessor { 
    16  
    17 struct Triangle3; 
    18  
    19 } 
    20  
    21 //typedef std::vector<GtpVisibilityPreprocessor::Triangle3 *> TriangleContainer; 
    229 
    2310class __declspec(dllexport) ObjReader 
    2411{ 
    2512public: 
    26         ObjReader(); 
     13        ObjReader(Ogre::SceneManager *sceneManager); 
    2714        ~ObjReader(); 
    2815 
    29         bool LoadFile(const std::string &filename, 
    30                                   GtpVisibilityPreprocessor::ObjectContainer &objects) const; 
     16        bool LoadFile(const string &sceneName,  
     17                                  const string &visibilitySolution, 
     18                                  Ogre::SceneNode *root); 
    3119         
    32         const std::vector<Ogre::Entity *> &GetObjects() const; 
    33          
    34         Ogre::Entity *CreateEntity(const std::string &name); 
     20        Ogre::Entity *CreateEntity(const std::string &name, 
     21                                                           GtpVisibilityPreprocessor::Intersectable *object); 
    3522 
    3623protected: 
    3724 
    38         std::vector<Ogre::Entity *> mObjects; 
     25        Ogre::SceneManager *mSceneManager; 
    3926}; 
    4027 
Note: See TracChangeset for help on using the changeset viewer.