Index: trunk/VUT/Ogre/include/OgreSceneNodeHierarchyInterface.h
===================================================================
--- trunk/VUT/Ogre/include/OgreSceneNodeHierarchyInterface.h	(revision 155)
+++ trunk/VUT/Ogre/include/OgreSceneNodeHierarchyInterface.h	(revision 158)
@@ -24,5 +24,5 @@
 	bool IsLeaf(GtpVisibility::HierarchyNode *node) const;
 	
-	void TraverseAndRenderNode(GtpVisibility::HierarchyNode *node);
+	void TraverseNode(GtpVisibility::HierarchyNode *node);
 	void RenderNode(GtpVisibility::HierarchyNode *node);
 	void PullUpVisibility(GtpVisibility::HierarchyNode *node);
@@ -41,8 +41,4 @@
 	void VisualizeCulledNode(GtpVisibility::HierarchyNode *node, 
 							GtpVisibility::CullingType type);
-
-	/*bool FindVisibleObjects(GtpVisibility::HierarchyNode *node,	
-							InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry, 
-							bool includeChildren = false);*/
 	
 	void GetNodeGeometryList(GtpVisibility::HierarchyNode *node,	
@@ -50,9 +46,4 @@
 					 bool includeChildren);
 
-	void SetNodeId(GtpVisibility::HierarchyNode *node, int id);
-	
-	int GetNodeId(GtpVisibility::HierarchyNode *node);
-
-	GtpVisibility::HierarchyNode *GetNextNode();
 };
 
Index: trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h
===================================================================
--- trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h	(revision 156)
+++ trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h	(revision 158)
@@ -11,5 +11,4 @@
 #include "OgrePlatformQueryManager.h"
 #include "VisibilityManager.h"
-#include <OgreSolidBoundingBox.h>
 
 
@@ -97,35 +96,50 @@
 	*/
 	void PrepareVisualization(Camera *cam);
-	
+	/** Initialises necessary parameters for hierarchical visibility culling.
+	*/
 	void InitVisibilityCulling(Camera *cam);
 
-
+	/// the interface to the scene hierarchy.
 	OctreeHierarchyInterface *mHierarchyInterface;
+	/// manages all visibility options
 	GtpVisibility::VisibilityManager *mVisibilityManager;
 
+	/// if a visualization of the hierarchical culling is shown
 	bool mShowVisualization;
+
+	/// if the culled nodes are indicated in the visualization
 	bool mVisualizeCulledNodes;
 
+	/// if symbols for the nodes are shown in the visualization
 	bool mRenderNodesForViz;
+	/// if content of the nodes is shown in the visualization
 	bool mRenderNodesContentForViz;
+
+	/// if we render transparents after the hierarchical traversal
 	bool mDelayRenderTransparents;
+
+	/// if we use a depth pass (i.e., fill only the depth buffer in the first pass)
 	bool mUseDepthPass;
+	/// if we currently render the depth pass
 	bool mRenderDepthPass;
+	
+	/// if we use an item buffer for rendering (i.e., object ids as color codes
+	bool mUseItemBuffer;
+	/// if we currently render the item buffer 
 	bool mRenderItemBuffer;
-	bool mUseItemBuffer;
+
+	/// if depth write should be enabled
 	bool mEnableDepthWrite;
+	/// if transparents are skipped during rendering
 	bool mSkipTransparents;
 
+	/// the depth pass (no lighting, just filling the depth buffer)
 	Pass *mDepthPass;
 	Pass *mItemBufferPass;
 
 	int mCurrentEntityId;
-
+	/// flag for passes which should not be deleted from queue during first traversal
 	int mLeavePassesInQueue;
 	ShadowTechnique mSavedShadowTechnique;
-
-	bool mRenderHierarchyNodes;
-
-	std::vector<SolidBoundingBox *> mSolidBoxes;
 };
 
Index: trunk/VUT/Ogre/include/OgreOctreeHierarchyInterface.h
===================================================================
--- trunk/VUT/Ogre/include/OgreOctreeHierarchyInterface.h	(revision 155)
+++ trunk/VUT/Ogre/include/OgreOctreeHierarchyInterface.h	(revision 158)
@@ -27,9 +27,10 @@
 	void PullUpVisibility(GtpVisibility::HierarchyNode *node);
 	
-	/** Traverses given node.
+	/** Traverses and renders the given node.
 		@param node current node
 		@remark pushes children on a distance queue.
 	*/
-	void TraverseAndRenderNode(GtpVisibility::HierarchyNode *node);
+	void TraverseNode(GtpVisibility::HierarchyNode *node);
+	/** @copydoc HierarchyInterface::RenderNode */
 	void RenderNode(GtpVisibility::HierarchyNode *node);
 	bool IsLeaf(GtpVisibility::HierarchyNode *node) const;
@@ -50,10 +51,4 @@
 					 bool includeChildren);
 
-	void SetNodeId(GtpVisibility::HierarchyNode *node, int id);
-	
-	int GetNodeId(GtpVisibility::HierarchyNode *node);
-
-	GtpVisibility::HierarchyNode *GetNextNode();
-
 protected:
 	/** Returns pointer to the bounding box of the node.
@@ -67,6 +62,4 @@
 	*/
 	Real GetSquaredViewDepth(const Camera* cam, const AxisAlignedBox* box) const;
-
-	int mCurrentOctreePosition;
 };
 } // namespace Ogre
Index: trunk/VUT/Ogre/include/OgreBspHierarchyInterface.h
===================================================================
--- trunk/VUT/Ogre/include/OgreBspHierarchyInterface.h	(revision 155)
+++ trunk/VUT/Ogre/include/OgreBspHierarchyInterface.h	(revision 158)
@@ -24,5 +24,5 @@
 		@remark pushes children on the distance queue
 	*/
-	void TraverseAndRenderNode(GtpVisibility::HierarchyNode *node);
+	void TraverseNode(GtpVisibility::HierarchyNode *node);
 	void RenderNode(GtpVisibility::HierarchyNode *node);
 	bool IsLeaf(GtpVisibility::HierarchyNode *node) const;
