Changeset 130 for trunk/VUT/GtpVisibility/include/HierarchyInterface.h
- Timestamp:
- 06/14/05 02:50:05 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/include/HierarchyInterface.h
r112 r130 3 3 4 4 #include "DistanceQueue.h" 5 #include "VisibilityMesh.h" 5 6 6 7 namespace GtpVisibility { 7 8 8 9 enum CullingType {QUERY_CULLED, FRUSTUM_CULLED}; 10 11 typedef std::vector<HierarchyNode *> HierarchyNodeList; 12 typedef std::vector<GtpVisibility::Mesh *> GeometryList; 13 typedef std::pair<HierarchyNode *, OcclusionQuery *> QueryPair; 14 typedef std::queue<QueryPair> QueryQueue; 9 15 10 16 /** Class which implements a hierarchy interface for a scene hierarchy. … … 26 32 */ 27 33 virtual void TraverseNode(HierarchyNode *node) = 0; 28 /** Renders current scene node.29 @param node current scenenode to be rendered34 /** Renders current hierarchy node. 35 @param node current hierarchy node to be rendered 30 36 */ 31 37 virtual void RenderNode(HierarchyNode *node) = 0; … … 119 125 CullingType type) = NULL; 120 126 127 /** Returns vector of previously rendered hierarchy nodes. 128 */ 129 std::vector<HierarchyNode *> *GetRenderedNodes(); 130 /** Returns vector of previoulsy rendered geometry. 131 */ 132 133 /** Issue a occlusion query for this mesh. 134 @param node the current mesh 135 @returns occlusion query for this node 136 */ 137 virtual GtpVisibility::OcclusionQuery *IssueOcclusionQuery(GtpVisibility::Mesh *mesh) = 0; 138 139 /** Returns geometry of hierarchy node. 140 */ 141 virtual void GetGeometry(GtpVisibility::HierarchyNode *node, 142 GeometryList *geometryList, 143 bool includeChildren) = 0; 144 145 146 /** Renders geometry. 147 */ 148 virtual void RenderGeometry(GtpVisibility::Mesh *geom) = 0; 149 121 150 protected: 122 151 … … 128 157 //--- statistics 129 158 unsigned int mNumTraversedNodes; 130 unsigned int mNumRenderedNodes;131 159 132 160 DistanceQueue *mDistanceQueue; … … 134 162 HierarchyNode *mPreviousNode; 135 163 136 164 std::vector<HierarchyNode *> mRenderedNodes; 137 165 }; 138 166 } // namespace GtpVisibility
Note: See TracChangeset
for help on using the changeset viewer.