[59] | 1 | #ifndef _SceneNodeHierarchyInterface_H__
|
---|
| 2 | #define _SceneNodeHierarchyInterface_H__
|
---|
| 3 |
|
---|
| 4 | #include "OgrePlatformHierarchyInterface.h"
|
---|
| 5 |
|
---|
| 6 | namespace Ogre {
|
---|
| 7 |
|
---|
| 8 | /**
|
---|
| 9 | This class implements the hierarchy interface for the Ogre scene node hierarchy.
|
---|
| 10 | */
|
---|
| 11 | class SceneNodeHierarchyInterface: public PlatformHierarchyInterface
|
---|
| 12 | {
|
---|
| 13 | public:
|
---|
| 14 | /** Construction taking the current scene manager and the current
|
---|
| 15 | rendersystem as argument
|
---|
| 16 | @param sm current scene manager
|
---|
| 17 | @param rsys current render system
|
---|
| 18 | */
|
---|
| 19 | SceneNodeHierarchyInterface(SceneManager *sm, RenderSystem *rsys);
|
---|
| 20 |
|
---|
[74] | 21 | bool IsLeaf(GtpVisibility::HierarchyNode *node) const;
|
---|
[59] | 22 |
|
---|
| 23 | void TraverseNode(GtpVisibility::HierarchyNode *node);
|
---|
| 24 | void RenderNode(GtpVisibility::HierarchyNode *node);
|
---|
| 25 | void PullUpVisibility(GtpVisibility::HierarchyNode *node);
|
---|
[74] | 26 | bool HasGeometry(GtpVisibility::HierarchyNode *node) const;
|
---|
[87] | 27 | float GetSquaredDistance(GtpVisibility::HierarchyNode *node) const;
|
---|
[59] | 28 |
|
---|
| 29 | void SetNodeVisible(GtpVisibility::HierarchyNode *node, const bool visible);
|
---|
[74] | 30 | void SetLastVisited(GtpVisibility::HierarchyNode *node,
|
---|
| 31 | const unsigned int frameId);
|
---|
[59] | 32 |
|
---|
[74] | 33 | bool IsNodeVisible(GtpVisibility::HierarchyNode *node) const;
|
---|
| 34 | unsigned int LastVisited(GtpVisibility::HierarchyNode *node) const;
|
---|
[59] | 35 |
|
---|
| 36 | AxisAlignedBox *GetBoundingBox(GtpVisibility::HierarchyNode *node);
|
---|
[112] | 37 |
|
---|
| 38 | void VisualizeCulledNode(GtpVisibility::HierarchyNode *node,
|
---|
| 39 | GtpVisibility::CullingType type);
|
---|
[59] | 40 | };
|
---|
| 41 |
|
---|
| 42 | } // namespace Ogre
|
---|
| 43 | #endif // SceneNodeHierarchyInterface_H |
---|