Changeset 155 for trunk/VUT/Ogre/include


Ignore:
Timestamp:
07/05/05 18:35:47 (19 years ago)
Author:
mattausch
Message:

added node traversal interface

Location:
trunk/VUT/Ogre/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgreBspHierarchyInterface.h

    r154 r155  
    2222        /** Traverses given node. 
    2323                @param node current node 
    24                 @remark pushes children on distance queue 
     24                @remark pushes children on the distance queue 
    2525        */ 
    26         void TraverseNode(GtpVisibility::HierarchyNode *node); 
     26        void TraverseAndRenderNode(GtpVisibility::HierarchyNode *node); 
    2727        void RenderNode(GtpVisibility::HierarchyNode *node); 
    2828        bool IsLeaf(GtpVisibility::HierarchyNode *node) const; 
  • trunk/VUT/Ogre/include/OgreOctreeHierarchyInterface.h

    r154 r155  
    2929        /** Traverses given node. 
    3030                @param node current node 
    31                 @remark pushes children on distance queue 
     31                @remark pushes children on a distance queue. 
    3232        */ 
    33         void TraverseNode(GtpVisibility::HierarchyNode *node); 
     33        void TraverseAndRenderNode(GtpVisibility::HierarchyNode *node); 
    3434        void RenderNode(GtpVisibility::HierarchyNode *node); 
    3535        bool IsLeaf(GtpVisibility::HierarchyNode *node) const; 
     
    4646                                                         GtpVisibility::CullingType type); 
    4747 
    48         /*bool FindVisibleObjects(GtpVisibility::HierarchyNode *node,    
    49                                                         InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry,  
    50                                                         bool includeChildren = false);*/ 
    51  
    52         void GetGeometry(GtpVisibility::HierarchyNode *node, 
     48        void GetNodeGeometryList(GtpVisibility::HierarchyNode *node, 
    5349                                         GtpVisibility::GeometryList *geometryList,  
    5450                                         bool includeChildren); 
     
    5753         
    5854        int GetNodeId(GtpVisibility::HierarchyNode *node); 
     55 
     56        GtpVisibility::HierarchyNode *GetNextNode(); 
    5957 
    6058protected: 
     
    6967        */ 
    7068        Real GetSquaredViewDepth(const Camera* cam, const AxisAlignedBox* box) const; 
     69 
     70        int mCurrentOctreePosition; 
    7171}; 
    7272} // namespace Ogre 
  • trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h

    r139 r155  
    4747                @remark This is a convenience method which resets the stats,  
    4848                                sets the current camera, and initialises the distance queue. 
    49                 @param root root of the hierarchy 
    5049                @param cam the actual camera definding the view frustum 
    5150                @param cullCam the camera used for culling.  
    52                 @remark If null, the actual camera is used for both viewing and culling          
     51                @remark If cullCam is null, the actual camera is used for both viewing and culling               
    5352        */ 
    54         void InitFrame(GtpVisibility::HierarchyNode *root, Camera *cam, Camera *cullCam = NULL,  
    55                 int leavePassesInQueue = 0); 
     53        void InitTraversal(Camera *cam, Camera *cullCam = NULL, int leavePassesInQueue = 0); 
    5654        /** Checks if the node is visible from the current view frustum. 
    5755                @param node the current node 
     
    9593        /** see set  
    9694        */ 
    97         bool GetUseOptimization(); 
     95        bool GetTestGeometryForVisibleLeaves(); 
    9896        /** see set 
    9997        */ 
  • trunk/VUT/Ogre/include/OgreSceneNodeHierarchyInterface.h

    r154 r155  
    2424        bool IsLeaf(GtpVisibility::HierarchyNode *node) const; 
    2525         
    26         void TraverseNode(GtpVisibility::HierarchyNode *node); 
     26        void TraverseAndRenderNode(GtpVisibility::HierarchyNode *node); 
    2727        void RenderNode(GtpVisibility::HierarchyNode *node); 
    2828        void PullUpVisibility(GtpVisibility::HierarchyNode *node); 
     
    4646                                                        bool includeChildren = false);*/ 
    4747         
    48         void GetGeometry(GtpVisibility::HierarchyNode *node,     
     48        void GetNodeGeometryList(GtpVisibility::HierarchyNode *node,     
    4949                                         GtpVisibility::GeometryList *geometryList,  
    5050                                         bool includeChildren); 
     
    5353         
    5454        int GetNodeId(GtpVisibility::HierarchyNode *node); 
     55 
     56        GtpVisibility::HierarchyNode *GetNextNode(); 
    5557}; 
    5658 
  • trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h

    r153 r155  
    122122        int mLeavePassesInQueue; 
    123123        ShadowTechnique mSavedShadowTechnique; 
     124 
     125        bool mRenderOnlyBoundingBoxes; 
    124126}; 
    125127 
Note: See TracChangeset for help on using the changeset viewer.