BaseNode.hh
Go to the documentation of this file.
virtual math::Pose3d WorldPose() const override
Get the world pose.
Definition: BaseNode.hh:421
virtual bool HasUserData(const std::string &_key) const override
Check if node has custom data.
Definition: BaseNode.hh:692
virtual math::Quaterniond LocalRotation() const override
Get the local rotation.
Definition: BaseNode.hh:390
bool IsFinite() const
virtual void SetLocalScale(double _scale) override
Set the local scale. The given scale will be assigned to the x, y, and z coordinates.
Definition: BaseNode.hh:533
virtual math::Quaterniond WorldRotation() const override
Get the world rotation.
Definition: BaseNode.hh:467
virtual unsigned int ChildCount() const override
Get number of child nodes.
Definition: BaseNode.hh:624
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: BaseNode.hh:616
virtual math::Vector3d WorldScale() const override
Get the world scale.
Definition: BaseNode.hh:556
virtual Variant UserData(const std::string &_key) const override
Get custom data stored in this node.
Definition: BaseNode.hh:681
virtual void SetWorldPosition(double _x, double _y, double _z) override
Set the world position.
Definition: BaseNode.hh:444
T endl(T... args)
virtual bool HasChildId(unsigned int _id) const override
Determine if node with given ID is an attached child.
Definition: BaseNode.hh:638
virtual void SetWorldRotation(double _r, double _p, double _y) override
Set the world rotation.
Definition: BaseNode.hh:474
virtual NodePtr ChildByName(const std::string &_name) const override
Get node with given name. If no child exists with given name, NULL will be returned.
Definition: BaseNode.hh:659
static const Pose3< T > Zero
virtual NodePtr RemoveChildById(unsigned int _id) override
Remove (detach) the node with the given ID from this node. If the specified node is not a child of th...
Definition: BaseNode.hh:271
Represents a single posable node in the scene graph.
Definition: Node.hh:51
virtual math::Vector3d Origin() const override
Get position of origin.
Definition: BaseNode.hh:512
STL class.
virtual void SetOrigin(double _x, double _y, double _z) override
Set position of origin. The position should be relative to the original origin of the geometry...
Definition: BaseNode.hh:519
virtual math::Pose3d InitialLocalPose() const override
Get the initial local pose.
Definition: BaseNode.hh:360
virtual math::Vector3d LocalPosition() const override
Get the local position.
Definition: BaseNode.hh:367
virtual bool HasChildName(const std::string &_name) const override
Determine if node with given name is an attached child.
Definition: BaseNode.hh:645
virtual void SetWorldScale(double _scale) override
Set the world scale. The given scale will be assigned to the x, y, and z coordinates.
Definition: BaseNode.hh:570
virtual void RemoveChildren() override
Remove all child nodes from this node This detaches all the child nodes but does not destroy them...
Definition: BaseNode.hh:298
virtual math::Pose3d WorldToLocal(const math::Pose3d &_pose) const override
Convert given world pose to local pose.
Definition: BaseNode.hh:498
virtual void SetWorldPose(const math::Pose3d &_pose) override
Set the world pose.
Definition: BaseNode.hh:436
virtual void SetLocalRotation(double _r, double _p, double _y) override
Set the local rotation.
Definition: BaseNode.hh:397
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: BaseNode.hh:328
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: BaseNode.hh:308
virtual math::Vector3d WorldPosition() const override
Get the world position.
Definition: BaseNode.hh:451
std::variant< std::monostate, int, float, double, std::string, bool, unsigned int, int64_t, uint64_t > Variant
Alias for a variant that can hold various types of data. The first type of the variant is std::monost...
Definition: Node.hh:47
T dynamic_pointer_cast(T... args)
const Quaternion< T > & Rot() const
virtual void SetUserData(const std::string &_key, Variant _value) override
Store any custom data associated with this node.
Definition: BaseNode.hh:674
virtual void SetLocalPosition(double _x, double _y, double _z) override
Set the local position.
Definition: BaseNode.hh:374
virtual void PreRenderChildren()
Definition: BaseNode.hh:316
static const Vector3 One
#define ignerr
const Vector3< T > & Pos() const
virtual void AddChild(NodePtr _child) override
Add the given node to this node. If the given node is already a child, no work will be done...
Definition: BaseNode.hh:246
virtual NodePtr ChildById(unsigned int _id) const override
Get node with given ID. If no child exists with given ID, NULL will be returned.
Definition: BaseNode.hh:652
virtual bool HasChild(ConstNodePtr _child) const override
Determine if given node is an attached child.
Definition: BaseNode.hh:631
virtual void RemoveParent() override
Detach this Node from its parent. If this Node does not have a parent, no work will be done...
Definition: BaseNode.hh:231
virtual NodePtr RemoveChild(NodePtr _child) override
Remove (detach) the given node from this node. If the given node is not a child of this node...
Definition: BaseNode.hh:262
virtual void Scale(double _scale) override
Scale the current scale by the given scalar. The given scalar will be assigned to the x...
Definition: BaseNode.hh:595
virtual NodePtr RemoveChildByIndex(unsigned int _index) override
Remove (detach) the node at the given index from this node. If the specified node is not a child of t...
Definition: BaseNode.hh:289
virtual NodePtr ChildByIndex(unsigned int _index) const override
Get node at given index. If no child exists at given index, NULL will be returned.
Definition: BaseNode.hh:666
std::map< std::string, Variant > userData
A map of custom key value data.
Definition: BaseNode.hh:214
Definition: BaseNode.hh:34
virtual NodePtr RemoveChildByName(const std::string &_name) override
Remove (detach) the node with the given name from this node. If the specified node is not a child of ...
Definition: BaseNode.hh:280
virtual void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: BaseNode.hh:337