Changeset 1175 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
- Timestamp:
- 08/01/06 16:55:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeSceneManager.h
r1173 r1175 13 13 #include <OgreKdTreeHierarchyInterface.h> 14 14 #include <OgreSceneManager.h> 15 #include <VisibilityManager.h> 15 16 #include "OgreKdTree.h" 16 #include "VisibilityManager.h"17 17 18 18 #define KDTREE_MAX_DEPTH 20 … … 22 22 class KdTreeSceneNode; 23 23 class WireBoundingBox; 24 typedef std::list < WireBoundingBox * > WBBList;24 //typedef std::list < WireBoundingBox * > WBBList; 25 25 26 26 class KdTreeSceneManager : public SceneManager … … 31 31 32 32 virtual const String& getTypeName(void) const; 33 33 34 virtual SceneNode* createSceneNode(void); 34 35 virtual SceneNode* createSceneNode(const String& name); 36 /** Override from SceneManager so that sub entities can be assigned an id for item buffer. 37 */ 38 Entity* createEntity(const String& entityName, const String& meshName); 35 39 40 /** Update the KdTree with the node (more or less disabled now) 41 */ 42 virtual void _updateNode(KdTreeSceneNode *node); // TODO: 43 44 //virtual void _updateSceneGraph(Camera* cam); 36 45 virtual void _findVisibleObjects(Camera *cam, bool onlyShadowCasters); 46 //virtual void _renderVisibleObjects(); 37 47 38 48 virtual void _renderNodes(const KdRenderableList& nodelist, Camera * cam, … … 42 52 virtual bool getShowBoxes(void) const; 43 53 44 virtual void _updateNode(KdTreeSceneNode *node); // TODO:45 46 54 virtual bool setOption(const String& strKey, const void* pValue); 47 55 virtual bool getOption(const String& strKey, void* pDestValue); 56 57 bool getOptionValues(const String & key, StringVector &refValueList); 58 bool getOptionKeys(StringVector &refKeys); 59 60 /** Sets the visibility manager. 61 @param visManager the visibility manager 62 */ 63 void setVisibilityManager(GtpVisibility::VisibilityManager *visManager); 64 /** See set. 65 */ 66 GtpVisibility::VisibilityManager *getVisibilityManager(); 67 68 /** Returns pointer to visibility manager. 69 */ 70 GtpVisibility::VisibilityManager *GetVisibilityManager(); 71 72 /** Returns hierarchy interface. 73 */ 74 KdTreeHierarchyInterface *GetHierarchyInterface(); 75 76 77 ///** Render a queue group. 78 //Override so we can handle delayed rendering of transparent objects 79 //*/ 80 //void renderBasicQueueGroupObjects(RenderQueueGroup* pGroup, 81 // QueuedRenderableCollection::OrganisationMode om); 82 83 ///** Writes out stats into the Ogre log file. 84 //*/ 85 //void WriteLog(); 86 87 ///** Override pass so we can do the z-fail pass. 88 //*/ 89 //const Pass* _setPass(Pass* pass); 90 91 ///** Override from SceneManager so we can skip all but first pass for depth pass. 92 //*/ 93 //bool validatePassForRendering(Pass* pass); 48 94 49 95 virtual void clearScene() … … 64 110 KdTreeHierarchyInterface *mHierarchyInterface; 65 111 112 /// consecutive number for sub-entities 113 int mCurrentEntityId; 114 115 /// flag for passes which should not be deleted from queue during first traversal 116 int mLeavePassesInQueue; 117 66 118 int mMaxDepth; 67 119
Note: See TracChangeset
for help on using the changeset viewer.