- Timestamp:
- 05/20/05 20:28:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h
r105 r106 8 8 #include "VisibilityEnvironment.h" 9 9 #include <OgreRenderTargetListener.h> 10 #include <vector .h>10 #include <vector> 11 11 12 12 Real timeDelay = 0; … … 26 26 "Coherent Hierarchical Culling" 27 27 }; 28 typedef struct frame_info 28 29 /** The information about camera position and orienation per frame */ 30 typedef struct 29 31 { 32 Vector3 position; 33 Quaternion orientation; 34 } frame_info; 30 35 31 } 32 Position 33 typedef std::pair<Vector3 frame_pair 36 34 37 class VisualizationRenderTargetListener: public RenderTargetListener 35 38 { … … 47 50 { 48 51 public: 49 52 50 53 MouseQueryListener(RenderWindow* win, Camera* cam, SceneManager *sceneManager, 51 54 CEGUI::Renderer *renderer, TerrainContentGenerator *contentGenerator, Camera *vizCamera, … … 92 95 void zoomVizCamera(int zoom); 93 96 void moveCamera(); 97 void AddCameraPath(SceneNode *camNode); 98 void SetCurrentCameraPath(SceneNode *camNode); 99 100 enum {WALKTHROUGH, REPLAY} State; 94 101 95 102 96 103 protected: 97 104 void Clamp2Terrain(); 98 99 bool NextLocation(); 100 105 101 106 bool mLMouseDown, mRMouseDown; // True if the mouse buttons are down 102 107 SceneManager *mSceneMgr; // A pointer to the scene manager … … 107 112 int mCurrentAlgorithm; 108 113 int mVisibilityThreshold; 109 114 110 115 OverlayElement *mAlgorithmInfo; 111 116 OverlayElement *mThresholdInfo; … … 120 125 121 126 SceneNode *mCurrentObject; // The newly created object 122 int m Count;// The number of robots on the screen127 int mObjectCount; // The number of robots on the screen 123 128 124 129 RayQueryExecutor *mRayQueryExecutor; … … 136 141 Camera *mVizCamera; 137 142 SceneNode *mCamNode; 138 Real mWalkSpeed; 139 Real mDistance; 140 Vector3 mDestination; 141 Vector3 mDirection; 142 143 143 144 //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; 148 150 }; 149 151
Note: See TracChangeset
for help on using the changeset viewer.