#include <Node.hpp>
|
| | Node (const std::string &name) |
| |
| | Node (const Node &)=delete |
| |
| | Node (Node &&)=delete |
| |
| Node & | operator= (const Node &)=delete |
| |
| Node & | operator= (Node &&)=delete |
| |
| virtual | ~Node ()=default |
| |
| void | setParent (Node *parent) |
| |
| Node * | getParent () const |
| |
| const std::string & | getName () const |
| |
| Node * | getNode (const std::string &name) |
| |
| const Node * | getNode (const std::string &name) const |
| |
| const Math::Vec3f & | getAbsolutePosition () |
| |
| const Math::Quatf & | getAbsoluteRotation () |
| |
| const Math::Vec3f & | getAbsoluteScale () |
| |
| const Math::Mat4x4f & | getTransform () |
| |
| const std::vector< Node * > & | getChildren () const |
| |
| void | attachChild (Node &child) |
| |
| void | translate (const Math::Vec3f &direction, TransformSpace space=TransformSpace::Local) |
| |
| void | rotate (float angle, const Math::Vec3f &axis, TransformSpace space=TransformSpace::Local) |
| |
| void | rotate (const Math::Quatf &quat, TransformSpace space=TransformSpace::Local) |
| |
| void | scale (const Math::Vec3f &scale) |
| |
| void | setPosition (const Math::Vec3f &position, TransformSpace space=TransformSpace::Local) |
| |
| void | setRotation (float angle, const Math::Vec3f &axis, TransformSpace space=TransformSpace::Local) |
| |
| void | setRotation (const Math::Quatf &rotation, TransformSpace space=TransformSpace::Local) |
| |
| void | setDirection (const Math::Vec3f &spaceTargetDirection, const Math::Vec3f &localDirectionVector, const Math::Vec3f &localUpVector, TransformSpace space=TransformSpace::Local) |
| | Rotates the node according to the direction given in parameter. More...
|
| |
| void | lookAt (const Math::Vec3f &targetPosition, const Math::Vec3f &localDirectionVector, const Math::Vec3f &localUpVector, TransformSpace space=TransformSpace::Local) |
| | Rotates the node in order to look at the target position. More...
|
| |
| virtual void | needUpdate () |
| |
Definition at line 13 of file Node.hpp.
◆ TransformSpace
| Enumerator |
|---|
| Local | |
| Parent | |
| World | |
Definition at line 15 of file Node.hpp.
◆ Node() [1/3]
| lug::Graphics::Node::Node |
( |
const std::string & |
name | ) |
|
◆ Node() [2/3]
| lug::Graphics::Node::Node |
( |
const Node & |
| ) |
|
|
delete |
◆ Node() [3/3]
| lug::Graphics::Node::Node |
( |
Node && |
| ) |
|
|
delete |
◆ ~Node()
| virtual lug::Graphics::Node::~Node |
( |
| ) |
|
|
virtualdefault |
◆ operator=() [1/2]
| Node& lug::Graphics::Node::operator= |
( |
const Node & |
| ) |
|
|
delete |
◆ operator=() [2/2]
| Node& lug::Graphics::Node::operator= |
( |
Node && |
| ) |
|
|
delete |
◆ setParent()
| void Node::setParent |
( |
Node * |
parent | ) |
|
|
inline |
◆ getParent()
| Node * Node::getParent |
( |
| ) |
const |
|
inline |
◆ getName()
| const std::string & Node::getName |
( |
| ) |
const |
|
inline |
◆ getNode() [1/2]
| Node * lug::Graphics::Node::getNode |
( |
const std::string & |
name | ) |
|
◆ getNode() [2/2]
| const Node * lug::Graphics::Node::getNode |
( |
const std::string & |
name | ) |
const |
◆ getAbsolutePosition()
| const Math::Vec3f & Node::getAbsolutePosition |
( |
| ) |
|
|
inline |
◆ getAbsoluteRotation()
◆ getAbsoluteScale()
| const Math::Vec3f & Node::getAbsoluteScale |
( |
| ) |
|
|
inline |
◆ getTransform()
| const Math::Mat4x4f & Node::getTransform |
( |
| ) |
|
|
inline |
◆ getChildren()
| const std::vector< Node * > & Node::getChildren |
( |
| ) |
const |
|
inline |
◆ attachChild()
| void lug::Graphics::Node::attachChild |
( |
Node & |
child | ) |
|
◆ translate()
◆ rotate() [1/2]
◆ rotate() [2/2]
◆ scale()
| void lug::Graphics::Node::scale |
( |
const Math::Vec3f & |
scale | ) |
|
◆ setPosition()
◆ setRotation() [1/2]
◆ setRotation() [2/2]
◆ setDirection()
| void lug::Graphics::Node::setDirection |
( |
const Math::Vec3f & |
spaceTargetDirection, |
|
|
const Math::Vec3f & |
localDirectionVector, |
|
|
const Math::Vec3f & |
localUpVector, |
|
|
TransformSpace |
space = TransformSpace::Local |
|
) |
| |
Rotates the node according to the direction given in parameter.
- Parameters
-
| [in] | spaceTargetDirection | The direction we want the local direction point to (will be normalized), in local space |
| [in] | localDirectionVector | The local direction vector |
| [in] | localUpVector | The local up vector |
| [in] | space | The space, defaults to local |
Definition at line 120 of file Node.cpp.
◆ lookAt()
| void lug::Graphics::Node::lookAt |
( |
const Math::Vec3f & |
targetPosition, |
|
|
const Math::Vec3f & |
localDirectionVector, |
|
|
const Math::Vec3f & |
localUpVector, |
|
|
TransformSpace |
space = TransformSpace::Local |
|
) |
| |
Rotates the node in order to look at the target position.
- Parameters
-
| [in] | targetPosition | The target position |
| [in] | localDirectionVector | The local direction vector |
| [in] | localUpVector | The local up vector |
| [in] | space | The space, defaults to local |
Definition at line 154 of file Node.cpp.
◆ needUpdate()
| void lug::Graphics::Node::needUpdate |
( |
| ) |
|
|
virtual |
◆ update()
| void lug::Graphics::Node::update |
( |
| ) |
|
|
private |
◆ _parent
| Node* lug::Graphics::Node::_parent {nullptr} |
|
protected |
◆ _name
| std::string lug::Graphics::Node::_name |
|
protected |
◆ _children
| std::vector<Node*> lug::Graphics::Node::_children |
|
protected |
◆ _position
| Math::Vec3f lug::Graphics::Node::_position {Math::Vec3f(0.0f)} |
|
private |
◆ _rotation
| Math::Quatf lug::Graphics::Node::_rotation {Math::Quatf::identity()} |
|
private |
◆ _scale
| Math::Vec3f lug::Graphics::Node::_scale {Math::Vec3f(1.0f)} |
|
private |
◆ _absolutePosition
| Math::Vec3f lug::Graphics::Node::_absolutePosition {Math::Vec3f(0.0f)} |
|
private |
◆ _absoluteRotation
| Math::Quatf lug::Graphics::Node::_absoluteRotation {Math::Quatf::identity()} |
|
private |
◆ _absoluteScale
| Math::Vec3f lug::Graphics::Node::_absoluteScale {Math::Vec3f(1.0f)} |
|
private |
◆ _transform
| Math::Mat4x4f lug::Graphics::Node::_transform {Math::Mat4x4f::identity()} |
|
private |
◆ _needUpdate
| bool lug::Graphics::Node::_needUpdate {true} |
|
private |
The documentation for this class was generated from the following files: