gz/rendering/base/BaseNode.hh
virtual void PreRenderChildren()
Definition: gz/rendering/base/BaseNode.hh:315
virtual void SetWorldRotation(double _r, double _p, double _y) override
Set the world rotation.
Definition: gz/rendering/base/BaseNode.hh:487
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 InheritScale() const override=0
Determine if this visual inherits scale from this parent.
Represents a single posable node in the scene graph.
Definition: gz/rendering/Node.hh:51
virtual ~BaseNode()
Definition: gz/rendering/base/BaseNode.hh:225
STL class.
virtual bool HasChild(ConstNodePtr _child) const override
Determine if given node is an attached child.
Definition: gz/rendering/base/BaseNode.hh:650
virtual math::Vector3d LocalPosition() const override
Get the local position.
Definition: gz/rendering/base/BaseNode.hh:366
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 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
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 SetRawLocalPose(const math::Pose3d &_pose)=0
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 SetLocalPosition(double _x, double _y, double _z) override
Set the local position.
Definition: gz/rendering/base/BaseNode.hh:373
Vector3< T > & Pos()
virtual math::Pose3d RawLocalPose() const =0
static const Vector3 One
bool IsFinite() const
bool IsFinite() 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: gz/rendering/base/BaseNode.hh:246
virtual Variant UserData(const std::string &_key) const override
Get custom data stored in this node.
Definition: gz/rendering/base/BaseNode.hh:700
virtual math::Vector3d WorldPosition() const override
Get the world position.
Definition: gz/rendering/base/BaseNode.hh:464
virtual void SetLocalScaleImpl(const math::Vector3d &_scale)=0
Implementation of the SetLocalScale function.
virtual math::Pose3d InitialLocalPose() const override
Get the initial local pose.
Definition: gz/rendering/base/BaseNode.hh:359
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 bool DetachChild(NodePtr _child)=0
#define ignerr
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 void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: gz/rendering/base/BaseNode.hh:336
virtual math::Quaterniond WorldRotation() const override
Get the world rotation.
Definition: gz/rendering/base/BaseNode.hh:480
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 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 SetWorldPose(const math::Pose3d &_pose) override
Set the world pose.
Definition: gz/rendering/base/BaseNode.hh:449
std::map< std::string, Variant > userData
A map of custom key value data.
Definition: gz/rendering/base/BaseNode.hh:214
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 WorldPose() const override
Get the world pose.
Definition: gz/rendering/base/BaseNode.hh:434
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 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
bool initialLocalPoseSet
Flag to indicate whether initial local pose is set for this node.
Definition: gz/rendering/base/BaseNode.hh:207
math::Vector3d origin
Definition: gz/rendering/base/BaseNode.hh:203
virtual unsigned int ChildCount() const override
Get number of child nodes.
Definition: gz/rendering/base/BaseNode.hh:643
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 NodeStorePtr Children() const =0
virtual math::Vector3d Origin() const override
Get position of origin.
Definition: gz/rendering/base/BaseNode.hh:525
virtual void SetWorldPosition(double _x, double _y, double _z) override
Set the world position.
Definition: gz/rendering/base/BaseNode.hh:457
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
T endl(T... args)
Definition: gz/rendering/base/BaseNode.hh:34
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 math::Quaterniond LocalRotation() const override
Get the local rotation.
Definition: gz/rendering/base/BaseNode.hh:396
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: gz/rendering/base/BaseNode.hh:327
virtual math::Vector3d LocalScale() const override=0
Get the local scale.
ignition::math::Pose3d initialLocalPose
Initial local pose for this node.
Definition: gz/rendering/base/BaseNode.hh:210
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 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 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 math::Vector3d WorldScale() const override
Get the world scale.
Definition: gz/rendering/base/BaseNode.hh:575
bool IsFinite() const
static const Pose3< T > Zero
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 WorldToLocal(const math::Pose3d &_pose) const override
Convert given world pose to local pose.
Definition: gz/rendering/base/BaseNode.hh:511
Quaternion< T > & Rot()
virtual void SetLocalRotation(double _r, double _p, double _y) override
Set the local rotation.
Definition: gz/rendering/base/BaseNode.hh:403
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