gz/rendering/Node.hh
virtual bool HasParent() const =0
Determine if this Node is attached to another Node.
std::variant< std::monostate, int, float, double, std::string, bool, unsigned int > Variant
Alias for a variant that can hold various types of data. The first type of the variant is std::monost...
Definition: gz/rendering/Node.hh:47
virtual bool HasChildId(unsigned int _id) const =0
Determine if node with given ID is an attached child.
virtual void AddChild(NodePtr _child)=0
Add the given node to this node. If the given node is already a child, no work will be done.
Represents a single posable node in the scene graph.
Definition: gz/rendering/Node.hh:51
STL class.
virtual void SetLocalPosition(double _x, double _y, double _z)=0
Set the local position.
virtual math::Vector3d WorldPosition() const =0
Get the world position.
virtual NodePtr RemoveChildById(unsigned int _id)=0
Remove (detach) the node with the given ID from this node. If the specified node is not a child of th...
virtual NodePtr ChildByIndex(unsigned int _index) const =0
Get node at given index. If no child exists at given index, NULL will be returned.
virtual NodePtr ChildByName(const std::string &_name) const =0
Get node with given name. If no child exists with given name, NULL will be returned.
virtual math::Vector3d LocalPosition() const =0
Get the local position.
virtual Variant UserData(const std::string &_key) const =0
Get custom data stored in this node.
virtual void SetLocalScale(double _scale)=0
Set the local scale. The given scale will be assigned to the x, y, and z coordinates.
virtual void RemoveParent()=0
Detach this Node from its parent. If this Node does not have a parent, no work will be done.
virtual NodePtr RemoveChild(NodePtr _child)=0
Remove (detach) the given node from this node. If the given node is not a child of this node,...
virtual void RemoveChildren()=0
Remove all child nodes from this node This detaches all the child nodes but does not destroy them.
virtual NodePtr ChildById(unsigned int _id) const =0
Get node with given ID. If no child exists with given ID, NULL will be returned.
virtual math::Pose3d InitialLocalPose() const =0
Get the initial local pose.
virtual void SetWorldPose(const math::Pose3d &_pose)=0
Set the world pose.
virtual unsigned int ChildCount() const =0
Get number of child nodes.
virtual math::Vector3d WorldScale() const =0
Get the world scale.
virtual bool InheritScale() const =0
Determine if this visual inherits scale from this parent.
virtual void SetLocalRotation(double _r, double _p, double _y)=0
Set the local rotation.
virtual void SetLocalPose(const math::Pose3d &_pose)=0
Set the local pose.
virtual void SetWorldRotation(double _r, double _p, double _y)=0
Set the world rotation.
virtual void SetWorldScale(double _scale)=0
Set the world scale. The given scale will be assigned to the x, y, and z coordinates.
virtual math::Vector3d LocalScale() const =0
Get the local scale.
virtual bool HasChild(ConstNodePtr _child) const =0
Determine if given node is an attached child.
virtual bool HasUserData(const std::string &_key) const =0
Check if node has custom data.
virtual math::Pose3d WorldToLocal(const math::Pose3d &_pose) const =0
Convert given world pose to local pose.
virtual void SetWorldPosition(double _x, double _y, double _z)=0
Set the world position.
virtual bool HasChildName(const std::string &_name) const =0
Determine if node with given name is an attached child.
virtual void SetUserData(const std::string &_key, Variant _value)=0
Store any custom data associated with this node.
virtual math::Quaterniond LocalRotation() const =0
Get the local rotation.
virtual math::Quaterniond WorldRotation() const =0
Get the world rotation.
virtual NodePtr RemoveChildByIndex(unsigned int _index)=0
Remove (detach) the node at the given index from this node. If the specified node is not a child of t...
Represents an object present in the scene graph. This includes sub-meshes, materials,...
Definition: gz/rendering/Object.hh:34
virtual void SetOrigin(double _x, double _y, double _z)=0
Set position of origin. The position should be relative to the original origin of the geometry.
virtual NodePtr RemoveChildByName(const std::string &_name)=0
Remove (detach) the node with the given name from this node. If the specified node is not a child of ...
virtual void Scale(double _scale)=0
Scale the current scale by the given scalar. The given scalar will be assigned to the x,...
virtual void SetInheritScale(bool _inherit)=0
Specify if this visual inherits scale from its parent.