esp/scene/SceneNode.h file

Contents

Namespaces

namespace esp
Root namespace.
namespace esp::scene

Classes

class esp::scene::SceneNode

Enums

enum class SceneNodeType { EMPTY = 0, SENSOR = 1, AGENT = 2, CAMERA = 3 }

Functions

template<typename Callable>
void preOrderTraversalWithCallback(const SceneNode& node, Callable&& cb)
Perform a pre-order traversal and invoke a callback at each node.
template<typename Callable>
void preOrderTraversalWithCallback(SceneNode& node, Callable&& cb)
template<typename Feature, typename Callable>
void preOrderFeatureTraversalWithCallback(const SceneNode& node, Callable&& cb)
Perform a pre-order traversal and invoke a callback on features of the desired type.
template<typename Feature, typename Callable>
void preOrderFeatureTraversalWithCallback(SceneNode& node, Callable&& cb)

Function documentation

template<typename Callable>
void preOrderTraversalWithCallback(const SceneNode& node, Callable&& cb)

Perform a pre-order traversal and invoke a callback at each node.

Parameters
node Root node for this traversal
cb Callback which will be called with each SceneNode

template<typename Callable>
void preOrderTraversalWithCallback(SceneNode& node, Callable&& cb)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename Feature, typename Callable>
void preOrderFeatureTraversalWithCallback(const SceneNode& node, Callable&& cb)

Perform a pre-order traversal and invoke a callback on features of the desired type.

Template parameters
Feature Feature type to invoke callback on
Callable
Parameters
node Root node for this traversal
cb Callback which will be called with each feature

template<typename Feature, typename Callable>
void preOrderFeatureTraversalWithCallback(SceneNode& node, Callable&& cb)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.