Ignore:
Timestamp:
08/18/06 17:25:57 (18 years ago)
Author:
szydlowski
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTreeAppListener.h

    r1215 r1220  
    3636#define __KdTreeAppListener_H__ 
    3737 
    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) 
    4448#define VIZ_VIEWPORT_Z_ORDER 10 
    4549 
     
    7276        }; 
    7377 
     78        enum SceneMgr 
     79        { 
     80                SM_KDT, 
     81                SM_OCM, 
     82                SM_OCT, 
     83                SM_GEN, 
     84                SM_SIZE, 
     85                SM_NOTSET 
     86        }; 
     87 
    7488        enum ShowTree 
    7589        { 
     
    90104        { 
    91105                Options(): 
    92                 mDemoMode(false), 
    93                 mEnhancedVisibility(false), 
    94106                mRotateSpeed(36.0f), 
    95107                mMoveSpeed(100.0f), 
    96108                mRotationPeriod(30.0f), 
    97                 mMaxDepth(12), 
    98109                mKT(2.0f), 
    99110                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) 
    101117                { 
    102118 
    103119                } 
    104120 
    105                 String mSceneManager; 
    106121                String mDemoInfileName; 
    107122                String mDemoOutfileName; 
    108123                String mDemoLogfileName; 
    109                 bool mDemoMode; 
    110                 bool mEnhancedVisibility; 
     124                String mComment; 
    111125                Degree mRotateSpeed; 
    112126                Real mMoveSpeed; 
    113127                Real mRotationPeriod; 
    114                 int mMaxDepth; 
    115128                Real mKT; 
    116129                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; 
    119136        }; 
    120137 
     
    164181        void keyReleased(KeyEvent* e) {}; 
    165182 
     183        const static Real       DEMO_WAIT; 
    166184        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[]; 
    168191protected: 
    169192        // basic 
Note: See TracChangeset for help on using the changeset viewer.