Changeset 1220 for GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include
- Timestamp:
- 08/18/06 17:25:57 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTree.h
r1204 r1220 57 57 // scene options 58 58 String mSceneFiles; 59 String mSelectedSceneManager;60 59 Real mRotationRadius; 61 60 int mModelSpacing; … … 67 66 68 67 KdTreeAppListener::Options mOptions; 69 70 68 71 69 virtual void setupResources(void); -
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTreeAppListener.h
r1215 r1220 36 36 #define __KdTreeAppListener_H__ 37 37 38 #include "Ogre.h" 39 #include "OgreKeyEvent.h" 40 #include "OgreEventListeners.h" 41 #include "OgreStringConverter.h" 42 #include "OgreException.h" 43 38 #include <Ogre.h> 39 #include <OgreKeyEvent.h> 40 #include <OgreEventListeners.h> 41 #include <OgreStringConverter.h> 42 #include <OgreException.h> 43 44 #include <OgreKdTree.h> 45 46 #define CONV_OCM_TO_KDT_ALG(i) (i == 0 ? 3 : i) 47 #define CONV_KDT_TO_OCM_ALG(i) (i % 3) 44 48 #define VIZ_VIEWPORT_Z_ORDER 10 45 49 … … 72 76 }; 73 77 78 enum SceneMgr 79 { 80 SM_KDT, 81 SM_OCM, 82 SM_OCT, 83 SM_GEN, 84 SM_SIZE, 85 SM_NOTSET 86 }; 87 74 88 enum ShowTree 75 89 { … … 90 104 { 91 105 Options(): 92 mDemoMode(false),93 mEnhancedVisibility(false),94 106 mRotateSpeed(36.0f), 95 107 mMoveSpeed(100.0f), 96 108 mRotationPeriod(30.0f), 97 mMaxDepth(12),98 109 mKT(2.0f), 99 110 mKI(1.0f), 100 mRenderMethod("CHC") 111 mMaxDepth(12), 112 mSceneManager(SM_KDT), 113 mRenderMethod(KdTree::KDRM_GTP_CHC), 114 mBuildMethod(KdTree::KDBM_PRIORITYQUEUE), 115 mDemoMode(false), 116 mEnhancedVisibility(false) 101 117 { 102 118 103 119 } 104 120 105 String mSceneManager;106 121 String mDemoInfileName; 107 122 String mDemoOutfileName; 108 123 String mDemoLogfileName; 109 bool mDemoMode; 110 bool mEnhancedVisibility; 124 String mComment; 111 125 Degree mRotateSpeed; 112 126 Real mMoveSpeed; 113 127 Real mRotationPeriod; 114 int mMaxDepth;115 128 Real mKT; 116 129 Real mKI; 117 String mRenderMethod; 118 String mComment; 130 int mMaxDepth; 131 int mSceneManager; 132 int mRenderMethod; 133 int mBuildMethod; 134 bool mDemoMode; 135 bool mEnhancedVisibility; 119 136 }; 120 137 … … 164 181 void keyReleased(KeyEvent* e) {}; 165 182 183 const static Real DEMO_WAIT; 166 184 const static String NA; 167 const static Real DEMO_WAIT; 185 const static String RENDERMETHOD[]; 186 const static String RENDERMETHODCAPTION[]; 187 const static String BUILDMETHOD[]; 188 const static String BUILDMETHODCAPTION[]; 189 const static String SCENEMANAGER[]; 190 const static String SCENEMANAGERNAME[]; 168 191 protected: 169 192 // basic
Note: See TracChangeset
for help on using the changeset viewer.