Ignore:
Timestamp:
05/20/05 20:28:30 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h

    r105 r106  
    88#include "VisibilityEnvironment.h" 
    99#include <OgreRenderTargetListener.h> 
    10 #include <vector.h> 
     10#include <vector> 
    1111 
    1212Real timeDelay = 0; 
     
    2626        "Coherent Hierarchical Culling" 
    2727}; 
    28 typedef struct frame_info 
     28 
     29/** The information about camera position and orienation per frame */ 
     30typedef struct 
    2931{ 
     32        Vector3 position; 
     33        Quaternion orientation; 
     34} frame_info; 
    3035 
    31 } 
    32         Position 
    33 typedef std::pair<Vector3 frame_pair 
     36 
    3437class VisualizationRenderTargetListener: public RenderTargetListener 
    3538{ 
     
    4750{ 
    4851public: 
    49  
     52         
    5053    MouseQueryListener(RenderWindow* win, Camera* cam, SceneManager *sceneManager,  
    5154                CEGUI::Renderer *renderer, TerrainContentGenerator *contentGenerator, Camera *vizCamera, 
     
    9295        void zoomVizCamera(int zoom); 
    9396        void moveCamera(); 
     97        void AddCameraPath(SceneNode *camNode); 
     98        void SetCurrentCameraPath(SceneNode *camNode); 
     99 
     100        enum {WALKTHROUGH, REPLAY} State; 
    94101 
    95102 
    96103protected: 
    97104        void Clamp2Terrain(); 
    98  
    99         bool NextLocation(); 
    100  
     105         
    101106    bool mLMouseDown, mRMouseDown;     // True if the mouse buttons are down 
    102107    SceneManager *mSceneMgr;           // A pointer to the scene manager 
     
    107112        int mCurrentAlgorithm; 
    108113        int mVisibilityThreshold; 
    109  
     114         
    110115        OverlayElement *mAlgorithmInfo; 
    111116        OverlayElement *mThresholdInfo; 
     
    120125 
    121126        SceneNode *mCurrentObject;         // The newly created object 
    122         int mCount;                        // The number of robots on the screen 
     127        int mObjectCount;                 // The number of robots on the screen 
    123128 
    124129        RayQueryExecutor *mRayQueryExecutor; 
     
    136141        Camera *mVizCamera; 
    137142        SceneNode *mCamNode; 
    138         Real mWalkSpeed; 
    139         Real mDistance; 
    140         Vector3 mDestination; 
    141         Vector3 mDirection; 
    142  
     143         
    143144        //std::deque<Vector3> mWalkList;   // The list of points we are walking to 
    144         vector< 
    145         std::vector<Ogre::Vector3> mPositions; 
    146         std::vector<Ogre::Quaternion> mOrientations; 
    147  
     145        std::vector<frame_info> mCameraPath; 
     146                 
     147        int mCurrentFrame; 
     148        // the current application state 
     149        int mState; 
    148150}; 
    149151 
Note: See TracChangeset for help on using the changeset viewer.