- Timestamp:
- 06/16/05 18:13:33 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/ogre_changes/Plugins/OctreeSceneManager/include/OgreOctree.h
r104 r135 157 157 158 158 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 159 public: 160 /** Returns last visited frame id. */ 161 int lastVisited(void); 162 /** Set to current frame id. 163 @param current frame id. 164 */ 165 void setLastVisited(int frameid); 166 /** Makes this octree become visible / invisble. 167 @param visible Whether this node is to be made visible or invisible 168 */ 169 void setOctreeVisible(bool visible); 170 /** Returns true if this node is marked visible, false otherwise. 171 */ 172 bool isOctreeVisible(void); 173 /** Gets this node's parent (NULL if this is the root). 174 */ 175 Octree *getParent(); 176 /** Frame id when this octree was last rendered. 177 @return last rendered frame id 178 */ 179 int lastRendered(void); 180 /** Sets frame id when this octree was last rendered. 181 @param last rendered frame id 182 */ 183 void setLastRendered(int frameid); 184 /** Returns current depth of octree 185 @return current depth 186 */ 187 int getDepth(); 188 189 protected: 190 191 int mLastRendered; 192 int mLastVisited; 193 bool mVisible; 194 int mDepth; 159 public: 160 /** Returns last visited frame id. */ 161 int lastVisited(void); 162 /** Set to current frame id. 163 @param current frame id. 164 */ 165 void setLastVisited(int frameid); 166 /** Makes this octree become visible / invisble. 167 @param visible Whether this node is to be made visible or invisible 168 */ 169 void setOctreeVisible(bool visible); 170 /** Returns true if this node is marked visible, false otherwise. 171 */ 172 bool isOctreeVisible(void); 173 /** Gets this node's parent (NULL if this is the root). 174 */ 175 Octree *getParent(); 176 /** Frame id when this octree was last rendered. 177 @return last rendered frame id 178 */ 179 int lastRendered(void); 180 /** Sets frame id when this octree was last rendered. 181 @param last rendered frame id 182 */ 183 void setLastRendered(int frameid); 184 /** Returns current depth of octree 185 @return current depth 186 */ 187 int getDepth(); 188 /** Returns real extent of the octree, i.e., the merged extent of the bounding boxes. */ 189 AxisAlignedBox _getWorldAABB(void) const; 190 191 /** Updates bounds of real aabb of octree. */ 192 void _updateBounds(); 193 194 protected: 195 196 /** the real extent of the octree. */ 197 AxisAlignedBox mWorldAABB; 198 199 int mLastRendered; 200 int mLastVisited; 201 bool mVisible; 202 int mDepth; 195 203 196 204 #endif // GTP_VISIBILITY_MODIFIED_OGRE
Note: See TracChangeset
for help on using the changeset viewer.