#include <BaseNode.hh>
Public Member Functions | |
virtual | ~BaseNode () |
virtual void | Destroy () |
Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior. More... | |
virtual math::Pose3d | LocalPose () const |
Get the local pose. More... | |
virtual math::Vector3d | LocalPosition () const |
Get the local position. More... | |
virtual math::Quaterniond | LocalRotation () const |
Get the local rotation. More... | |
virtual math::Vector3d | Origin () const |
Get position of origin. More... | |
virtual VisualPtr | Parent () const =0 |
Get the parent Visual. More... | |
virtual void | RemoveParent () |
Detach this Geometry from its parent Visual. If this Geometry does not have a parent, no work will be done. More... | |
virtual void | SetLocalPose (const math::Pose3d &_pose) |
Set the local pose. More... | |
virtual void | SetLocalPosition (double _x, double _y, double _z) |
Set the local position. More... | |
virtual void | SetLocalPosition (const math::Vector3d &_position) |
Set the local position. More... | |
virtual void | SetLocalRotation (double _r, double _p, double _y) |
Set the local rotation. More... | |
virtual void | SetLocalRotation (double _w, double _x, double _y, double _z) |
Set the local rotation. More... | |
virtual void | SetLocalRotation (const math::Quaterniond &_rotation) |
Set the local rotation. More... | |
virtual void | SetOrigin (double _x, double _y, double _z) |
Set position of origin. The position should be relative to the original origin of the geometry. More... | |
virtual void | SetOrigin (const math::Vector3d &_origin) |
Set position of origin. The position should be relative to the original origin of the geometry. More... | |
virtual void | SetWorldPose (const math::Pose3d &_pose) |
Set the world pose. More... | |
virtual void | SetWorldPosition (double _x, double _y, double _z) |
Set the world position. More... | |
virtual void | SetWorldPosition (const math::Vector3d &_position) |
Set the world position. More... | |
virtual void | SetWorldRotation (double _r, double _p, double _y) |
Set the world rotation. More... | |
virtual void | SetWorldRotation (double _w, double _x, double _y, double _z) |
Set the world rotation. More... | |
virtual void | SetWorldRotation (const math::Quaterniond &_rotation) |
Set the world rotation. More... | |
virtual math::Pose3d | WorldPose () const |
Get the world pose. More... | |
virtual math::Vector3d | WorldPosition () const |
Get the world position. More... | |
virtual math::Quaterniond | WorldRotation () const |
Get the world rotation. More... | |
virtual math::Pose3d | WorldToLocal (const math::Pose3d &_pose) const |
Convert given world pose to local pose. More... | |
Public Member Functions inherited from Node | |
virtual | ~Node () |
Deconstructor. More... | |
virtual bool | HasParent () const =0 |
Determine if this Geometry is attached to a Visual. More... | |
Public Member Functions inherited from Object | |
virtual | ~Object () |
Deconstructor. More... | |
virtual unsigned int | Id () const =0 |
Get the object ID. This ID will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More... | |
virtual std::string | Name () const =0 |
Get the object name. This name will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More... | |
virtual void | PreRender ()=0 |
Prepare this object and any of its children for rendering. This should be called for each object in a scene just before rendering, which can be achieved by a single call to Scene::PreRender. More... | |
virtual ScenePtr | Scene () const =0 |
Get the Scene that created this object. More... | |
Protected Member Functions | |
BaseNode () | |
virtual math::Pose3d | RawLocalPose () const =0 |
virtual void | SetRawLocalPose (const math::Pose3d &_pose)=0 |
Protected Attributes | |
math::Vector3d | origin |
Constructor & Destructor Documentation
◆ BaseNode()
|
protected |
◆ ~BaseNode()
|
virtual |
Member Function Documentation
◆ Destroy()
|
virtual |
Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior.
Implements Object.
Reimplemented in BaseVisual< OgreNode >, OgreLight, and OgreNode.
◆ LocalPose()
|
virtual |
Get the local pose.
- Returns
- The local pose
Implements Node.
Reimplemented in BaseVisual< OgreNode >.
Referenced by BaseNode< OgreObject >::LocalPosition(), BaseNode< OgreObject >::LocalRotation(), BaseNode< OgreObject >::SetLocalPosition(), BaseNode< OgreObject >::SetLocalRotation(), and BaseNode< OgreObject >::WorldPose().
◆ LocalPosition()
|
virtual |
◆ LocalRotation()
|
virtual |
◆ Origin()
|
virtual |
◆ Parent()
|
pure virtual |
Get the parent Visual.
- Returns
- the parent Visual
Implements Node.
Implemented in OgreNode.
Referenced by BaseNode< OgreObject >::RemoveParent(), BaseNode< OgreObject >::WorldPose(), and BaseNode< OgreObject >::WorldToLocal().
◆ RawLocalPose()
|
protectedpure virtual |
Implemented in OgreNode.
Referenced by BaseNode< OgreObject >::LocalPose().
◆ RemoveParent()
|
virtual |
Detach this Geometry from its parent Visual. If this Geometry does not have a parent, no work will be done.
Implements Node.
Referenced by BaseNode< OgreObject >::Destroy().
◆ SetLocalPose()
|
virtual |
Set the local pose.
- Parameters
-
[in] _pose New local pose
Implements Node.
Reimplemented in BaseVisual< OgreNode >.
Referenced by BaseNode< OgreObject >::SetLocalPosition(), BaseNode< OgreObject >::SetLocalRotation(), and BaseNode< OgreObject >::SetWorldPose().
◆ SetLocalPosition() [1/2]
|
virtual |
Set the local position.
- Parameters
-
[in] _x X-coordinate [in] _y Y-coordinate [in] _z Z-coordinate
Implements Node.
Referenced by BaseNode< OgreObject >::SetLocalPosition().
◆ SetLocalPosition() [2/2]
|
virtual |
◆ SetLocalRotation() [1/3]
|
virtual |
Set the local rotation.
- Parameters
-
[in] _r roll [in] _p pitch [in] _y yaw
Implements Node.
Referenced by BaseNode< OgreObject >::SetLocalRotation().
◆ SetLocalRotation() [2/3]
|
virtual |
Set the local rotation.
- Parameters
-
[in] _w W-coordinate [in] _x X-coordinate [in] _y Y-coordinate [in] _z Z-coordinate
Implements Node.
◆ SetLocalRotation() [3/3]
|
virtual |
◆ SetOrigin() [1/2]
|
virtual |
Set position of origin. The position should be relative to the original origin of the geometry.
- Parameters
-
[in] _x X-coordinate [in] _y Y-coordinate [in] _z Z-coordinate
Implements Node.
Referenced by BaseNode< OgreObject >::SetOrigin().
◆ SetOrigin() [2/2]
|
virtual |
Set position of origin. The position should be relative to the original origin of the geometry.
- Parameters
-
[in] _origin New origin position
Implements Node.
◆ SetRawLocalPose()
|
protectedpure virtual |
Implemented in OgreNode.
Referenced by BaseNode< OgreObject >::SetLocalPose().
◆ SetWorldPose()
|
virtual |
Set the world pose.
- Parameters
-
[in] _pose New world pose
Implements Node.
Referenced by BaseNode< OgreObject >::SetWorldPosition(), and BaseNode< OgreObject >::SetWorldRotation().
◆ SetWorldPosition() [1/2]
|
virtual |
Set the world position.
- Parameters
-
[in] _x X-coordinate [in] _y Y-coordinate [in] _z Z-coordinate
Implements Node.
Referenced by BaseNode< OgreObject >::SetWorldPosition().
◆ SetWorldPosition() [2/2]
|
virtual |
◆ SetWorldRotation() [1/3]
|
virtual |
Set the world rotation.
- Parameters
-
[in] _r roll [in] _p pitch [in] _y yaw
Implements Node.
Referenced by BaseNode< OgreObject >::SetWorldRotation().
◆ SetWorldRotation() [2/3]
|
virtual |
Set the world rotation.
- Parameters
-
[in] _w W-coordinate [in] _x X-coordinate [in] _y Y-coordinate [in] _z Z-coordinate
Implements Node.
◆ SetWorldRotation() [3/3]
|
virtual |
◆ WorldPose()
|
virtual |
Get the world pose.
- Returns
- The world pose
Implements Node.
Referenced by BaseNode< OgreObject >::SetWorldPosition(), BaseNode< OgreObject >::SetWorldRotation(), BaseNode< OgreObject >::WorldPosition(), and BaseNode< OgreObject >::WorldRotation().
◆ WorldPosition()
|
virtual |
◆ WorldRotation()
|
virtual |
◆ WorldToLocal()
|
virtual |
Convert given world pose to local pose.
- Parameters
-
[in] _pose World pose to be converted
Implements Node.
Referenced by BaseNode< OgreObject >::SetWorldPose().
Member Data Documentation
◆ origin
|
protected |
The documentation for this class was generated from the following file: