class
#include <esp/scene/SceneNode.h>
SceneNode
Contents
Constructors, destructors, conversion operators
- SceneNode() deleted
- SceneNode(SceneNode& parent)
- SceneNode(MagnumScene& parentNode) protected
Public functions
- auto getType() const -> SceneNodeType
- void setType(SceneNodeType type)
-
template<class U, class... Args>void addFeature(Args && ... args)
- auto createChild() -> SceneNode&
- auto getId() const -> int virtual
- Returns node id.
- void setId(int id) virtual
- Sets node id.
- auto getSemanticId() const -> int virtual
- Returns node semanticId.
- void setSemanticId(int semanticId) virtual
- Sets node semanticId.
-
auto absoluteTranslation() const -> Magnum::
Vector3 -
auto computeCumulativeBB() -> const Magnum::
Range3D& -
auto getMeshBB() const -> const Magnum::
Range3D& - return the local bounding box for meshes stored at this node
-
auto getAbsoluteAABB() const -> Corrade::
Containers:: Optional<Magnum:: Range3D> - return the global bounding box for the mesh stored at this node
-
auto getCumulativeBB() const -> const Magnum::
Range3D& -
void setMeshBB(Magnum::
Range3D meshBB) - set local bounding box for meshes stored at this node
-
void setAbsoluteAABB(Magnum::
Range3D aabb) - set the global bounding box for mesh stored in this node
- auto getFrustumPlaneIndex() const -> int
- return the frustum plane in last frame that culls this node
- void setFrustumPlaneIndex(int index)
- set frustum plane in last frame that culls this node
Protected variables
- SceneNodeType type_
- int id_
-
uint32_
t semanticId_ -
Magnum::
Range3D meshBB_ - the local bounding box for meshes stored at this node
-
Magnum::
Range3D cumulativeBB_ -
Corrade::
Containers:: Optional<Magnum:: Range3D> aabb_ - the global bounding box for static meshes stored at this node
- int frustumPlaneIndex
- the frustum plane in last frame that culls this node
Function documentation
SceneNode& esp:: scene:: SceneNode:: createChild()
Create a new child SceneNode and return it. NOTE: this SceneNode owns and is responsible for deallocating created child NOTE: child node inherits parent id by default
const Magnum:: Range3D& esp:: scene:: SceneNode:: computeCumulativeBB()
recursively compute the cumulative bounding box of the full scene graph tree for which this node is the root
const Magnum:: Range3D& esp:: scene:: SceneNode:: getCumulativeBB() const
return the cumulative bounding box of the full scene graph tree for which this node is the root
Variable documentation
uint32_ t esp:: scene:: SceneNode:: semanticId_ protected
The semantic category of this node. Used to render attached Drawables with SEMANTIC sensor when no perVertexObjectIds are present.
Magnum:: Range3D esp:: scene:: SceneNode:: cumulativeBB_ protected
the cumulative bounding box of the full scene graph tree for which this node is the root