nw::model::Node

struct Node

Subclassed by nw::model::CameraNode, nw::model::DummyNode, nw::model::EmitterNode, nw::model::LightNode, nw::model::PatchNode, nw::model::ReferenceNode, nw::model::TrimeshNode

Public Functions

Node(String name_, uint32_t type_)
virtual ~Node() = default
void add_controller_data(StringView name_, uint32_t type_, Vector<float> times_, Vector<float> data_, int rows_, int columns_ = 1)

Adds a controller to a model node.

ControllerValue get_controller(uint32_t type_, bool key = false) const

Gets a controller to a model node.

Public Members

String name
const uint32_t type
bool inheritcolor = false
Node *parent = nullptr
Vector<Node*> children
Vector<ControllerKey> controller_keys
Vector<float> controller_data