Class NodeVars#

Inheritance Relationships#

Base Type#

Class Documentation#

class NodeVars : public Karana::Frame::FrameVars#

The Vars for the Node class.

Public Functions

NodeVars(const kc::ks_ptr<Node> &node)#

NodeVars constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:

node – The node associated with this NodeVars.

~NodeVars()#

Destructor.

virtual kc::NestedVars getAllVars() const override#

Get all the Vars that this VarHolder has.

Returns:

A map of Vars, where the Var name is the key and the Var is the value.

Public Members

kc::ks_ptr<Karana::Core::Var_T<bool>> force_node#

True if this is a force node.

kc::ks_ptr<Karana::Core::Var_T<std::string>> parent_body#

parent body

kc::ks_ptr<Karana::Core::Var_T<km::SpatialVector>> external_spforce#

external force on the node

Public Static Functions

static kc::ks_ptr<NodeVars> create(const kc::ks_ptr<Node> &node)#

Create an instance of the NodeVars.

Parameters:

node – The node associated with this NodeVars.

Returns:

A pointer to the newly created instance of NodeVars.