gz/rendering/base/BaseNode.hh
Go to the documentation of this file.
Quaternion< T > & Rot()
bool IsFinite() const
Vector3< T > & Pos()
static const Pose3< T > Zero
bool IsFinite() const
bool IsFinite() const
static const Vector3 One
Definition: gz/rendering/base/BaseNode.hh:37
virtual math::Pose3d InitialLocalPose() const override
Get the initial local pose.
Definition: gz/rendering/base/BaseNode.hh:359
virtual void SetLocalRotation(double _w, double _x, double _y, double _z) override
Set the local rotation.
Definition: gz/rendering/base/BaseNode.hh:410
virtual bool InheritScale() const override=0
Determine if this visual inherits scale from this parent.
virtual void SetWorldRotation(double _w, double _x, double _y, double _z) override
Set the world rotation.
Definition: gz/rendering/base/BaseNode.hh:494
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: gz/rendering/base/BaseNode.hh:685
virtual math::Pose3d WorldPose() const override
Get the world pose.
Definition: gz/rendering/base/BaseNode.hh:434
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: gz/rendering/base/BaseNode.hh:678
virtual bool HasChild(ConstNodePtr _child) const override
Determine if given node is an attached child.
Definition: gz/rendering/base/BaseNode.hh:650
virtual void SetLocalPosition(double _x, double _y, double _z) override
Set the local position.
Definition: gz/rendering/base/BaseNode.hh:373
virtual void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: gz/rendering/base/BaseNode.hh:336
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: gz/rendering/base/BaseNode.hh:308
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: gz/rendering/base/BaseNode.hh:532
virtual void SetUserData(const std::string &_key, Variant _value) override
Store any custom data associated with this node.
Definition: gz/rendering/base/BaseNode.hh:693
virtual math::Vector3d Origin() const override
Get position of origin.
Definition: gz/rendering/base/BaseNode.hh:525
virtual void SetLocalScale(const math::Vector3d &_scale) override
Set the local scale.
Definition: gz/rendering/base/BaseNode.hh:566
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: gz/rendering/base/BaseNode.hh:262
virtual void SetLocalScale(double _scale) override
Set the local scale. The given scale will be assigned to the x, y, and z coordinates.
Definition: gz/rendering/base/BaseNode.hh:552
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: gz/rendering/base/BaseNode.hh:671
virtual math::Quaterniond LocalRotation() const override
Get the local rotation.
Definition: gz/rendering/base/BaseNode.hh:396
math::Vector3d origin
Definition: gz/rendering/base/BaseNode.hh:203
virtual math::Quaterniond WorldRotation() const override
Get the world rotation.
Definition: gz/rendering/base/BaseNode.hh:480
virtual void SetWorldPose(const math::Pose3d &_pose) override
Set the world pose.
Definition: gz/rendering/base/BaseNode.hh:449
virtual void RemoveChildren() override
Remove all child nodes from this node This detaches all the child nodes but does not destroy them.
Definition: gz/rendering/base/BaseNode.hh:298
virtual void Scale(double _x, double _y, double _z) override
Scale the current scale by the given scalars.
Definition: gz/rendering/base/BaseNode.hh:621
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: gz/rendering/base/BaseNode.hh:280
virtual math::Vector3d WorldScale() const override
Get the world scale.
Definition: gz/rendering/base/BaseNode.hh:575
virtual ~BaseNode()
Definition: gz/rendering/base/BaseNode.hh:225
std::map< std::string, Variant > userData
A map of custom key value data.
Definition: gz/rendering/base/BaseNode.hh:214
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: gz/rendering/base/BaseNode.hh:246
virtual bool HasChildId(unsigned int _id) const override
Determine if node with given ID is an attached child.
Definition: gz/rendering/base/BaseNode.hh:657
virtual void Scale(double _scale) override
Scale the current scale by the given scalar. The given scalar will be assigned to the x,...
Definition: gz/rendering/base/BaseNode.hh:614
virtual void SetWorldPosition(double _x, double _y, double _z) override
Set the world position.
Definition: gz/rendering/base/BaseNode.hh:457
virtual math::Vector3d WorldPosition() const override
Get the world position.
Definition: gz/rendering/base/BaseNode.hh:464
virtual void RemoveParent() override
Detach this Node from its parent. If this Node does not have a parent, no work will be done.
Definition: gz/rendering/base/BaseNode.hh:231
virtual math::Pose3d WorldToLocal(const math::Pose3d &_pose) const override
Convert given world pose to local pose.
Definition: gz/rendering/base/BaseNode.hh:511
virtual Variant UserData(const std::string &_key) const override
Get custom data stored in this node.
Definition: gz/rendering/base/BaseNode.hh:700
virtual void SetLocalRotation(double _r, double _p, double _y) override
Set the local rotation.
Definition: gz/rendering/base/BaseNode.hh:403
virtual void PreRenderChildren()
Definition: gz/rendering/base/BaseNode.hh:315
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: gz/rendering/base/BaseNode.hh:635
virtual void SetRawLocalPose(const math::Pose3d &_pose)=0
virtual NodeStorePtr Children() const =0
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: gz/rendering/base/BaseNode.hh:271
virtual bool HasUserData(const std::string &_key) const override
Check if node has custom data.
Definition: gz/rendering/base/BaseNode.hh:711
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: gz/rendering/base/BaseNode.hh:327
virtual bool HasChildName(const std::string &_name) const override
Determine if node with given name is an attached child.
Definition: gz/rendering/base/BaseNode.hh:664
virtual void SetOrigin(const math::Vector3d &_origin) override
Set position of origin. The position should be relative to the original origin of the geometry.
Definition: gz/rendering/base/BaseNode.hh:539
virtual void SetLocalScaleImpl(const math::Vector3d &_scale)=0
Implementation of the SetLocalScale function.
virtual bool DetachChild(NodePtr _child)=0
virtual math::Vector3d LocalPosition() const override
Get the local position.
Definition: gz/rendering/base/BaseNode.hh:366
virtual void SetLocalPosition(const math::Vector3d &_position) override
Set the local position.
Definition: gz/rendering/base/BaseNode.hh:380
virtual void SetWorldScale(double _x, double _y, double _z) override
Set the world scale.
Definition: gz/rendering/base/BaseNode.hh:596
virtual unsigned int ChildCount() const override
Get number of child nodes.
Definition: gz/rendering/base/BaseNode.hh:643
virtual void SetWorldRotation(const math::Quaterniond &_rotation) override
Set the world rotation.
Definition: gz/rendering/base/BaseNode.hh:502
virtual void Scale(const math::Vector3d &_scale) override
Scale the current scale by the given scalars.
Definition: gz/rendering/base/BaseNode.hh:628
virtual void SetLocalRotation(const math::Quaterniond &_rotation) override
Set the local rotation.
Definition: gz/rendering/base/BaseNode.hh:418
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: gz/rendering/base/BaseNode.hh:289
virtual void SetLocalScale(double _x, double _y, double _z) override
Set the local scale.
Definition: gz/rendering/base/BaseNode.hh:559
virtual math::Vector3d LocalScale() const override=0
Get the local scale.
virtual math::Pose3d RawLocalPose() const =0
virtual void SetWorldRotation(double _r, double _p, double _y) override
Set the world rotation.
Definition: gz/rendering/base/BaseNode.hh:487
virtual void SetWorldScale(const math::Vector3d &_scale) override
Set the world scale.
Definition: gz/rendering/base/BaseNode.hh:603
virtual void SetWorldPosition(const math::Vector3d &_position) override
Set the world position.
Definition: gz/rendering/base/BaseNode.hh:471
virtual void SetWorldScale(double _scale) override
Set the world scale. The given scale will be assigned to the x, y, and z coordinates.
Definition: gz/rendering/base/BaseNode.hh:589
virtual bool AttachChild(NodePtr _child)=0
Represents a single posable node in the scene graph.
Definition: gz/rendering/Node.hh:53
T endl(T... args)
#define ignerr
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