BaseNode.hh
Go to the documentation of this file.
virtual math::Pose3d WorldPose() const override
Get the world pose.
Definition: BaseNode.hh:374
virtual math::Quaterniond LocalRotation() const override
Get the local rotation.
Definition: BaseNode.hh:343
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:486
virtual math::Quaterniond WorldRotation() const override
Get the world rotation.
Definition: BaseNode.hh:420
virtual unsigned int ChildCount() const override
Get number of child nodes.
Definition: BaseNode.hh:579
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: BaseNode.hh:571
virtual math::Vector3d WorldScale() const override
Get the world scale.
Definition: BaseNode.hh:509
virtual void SetWorldPosition(double _x, double _y, double _z) override
Set the world position.
Definition: BaseNode.hh:397
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:593
virtual void SetWorldRotation(double _r, double _p, double _y) override
Set the world rotation.
Definition: BaseNode.hh:427
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:614
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:245
Represents a single posable node in the scene graph.
Definition: Node.hh:37
virtual math::Vector3d Origin() const override
Get position of origin.
Definition: BaseNode.hh:465
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:472
virtual math::Vector3d LocalPosition() const override
Get the local position.
Definition: BaseNode.hh:320
virtual bool HasChildName(const std::string &_name) const override
Determine if node with given name is an attached child.
Definition: BaseNode.hh:600
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:523
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:272
virtual math::Pose3d WorldToLocal(const math::Pose3d &_pose) const override
Convert given world pose to local pose.
Definition: BaseNode.hh:451
virtual void SetWorldPose(const math::Pose3d &_pose) override
Set the world pose.
Definition: BaseNode.hh:389
virtual void SetLocalRotation(double _r, double _p, double _y) override
Set the local rotation.
Definition: BaseNode.hh:350
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: BaseNode.hh:302
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:282
virtual math::Vector3d WorldPosition() const override
Get the world position.
Definition: BaseNode.hh:404
T dynamic_pointer_cast(T... args)
const Quaternion< T > & Rot() const
virtual void SetLocalPosition(double _x, double _y, double _z) override
Set the local position.
Definition: BaseNode.hh:327
virtual void PreRenderChildren()
Definition: BaseNode.hh:290
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:220
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:607
virtual bool HasChild(ConstNodePtr _child) const override
Determine if given node is an attached child.
Definition: BaseNode.hh:586
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:205
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:236
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:548
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:263
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:621
Definition: BaseNode.hh:32
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:254
virtual void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: BaseNode.hh:311