Ignore:
Timestamp:
04/21/05 19:33:56 (19 years ago)
Author:
mattausch
Message:

added TerrainContentGenerator?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/TestCullingTerrain/TerrainContentGenerator.h

    r47 r55  
    33        TerrainContentGenerator.h 
    44*/ 
     5#include "ExampleApplication.h" 
     6 
     7class RayQueryExecutor 
     8{ 
     9public: 
     10        RayQueryExecutor( SceneManager *sm ); 
     11        ~RayQueryExecutor( ); 
     12        bool executeRayQuery( Vector3 *result, const Vector3 &pos, const Vector3 &dir ); 
     13protected: 
     14        RaySceneQuery *mRaySceneQuery; 
     15}; 
    516 
    617class TerrainContentGenerator 
    718{ 
    819public: 
    9         TerrainContentGenerator(); 
     20        TerrainContentGenerator(  SceneManager *sm, RayQueryExecutor *rayQueryEx ); 
     21        /** generates a the scene hierarchy with random values  
     22        @param number of objects to generate 
     23        */ 
     24        void generateScene( int numObjects ); 
     25        /**  
     26                generates a new scene object  
     27                @param tranlationRatio ratio between minimal and maximal possible translation 
     28                @param rotationRatio ratio between minimal and maximal possible rotation 
     29                @idx the index of the new object 
     30                @entName the name of the object entity 
     31        */ 
     32        void generateSceneObject( const Vector3 &translationRatio, const Vector3 &rotationRatio,  
     33                                                          const int idx, const String &entName ); 
    1034 
    1135protected: 
    1236 
     37        Real mMinAngle; 
     38        Real mMaxAngle; 
     39        Vector3 mMaxTranslation; 
     40        Vector3 mMinTranslation; 
     41 
     42        RayQueryExecutor *mRayQueryExecutor; 
     43        SceneManager *mSceneMgr; 
     44        int mCount;             // The number of objects on the screen 
    1345}; 
    1446 
Note: See TracChangeset for help on using the changeset viewer.