#include <TransformNode.h>

Public Member Functions | |
| TransformNode (void) | |
| virtual void | createProperties (void) |
| virtual const string | getTypeName (bool ofComponent=false) const |
| void | transform (const Mat4 &global=Mat4()) |
| virtual void | onTransform (const Mat4 &global) |
| void | setLocal (const Mat4 &matrix) |
| set the current local transform | |
| const Mat4 & | getLocal (void) const |
| get the current (const) local transform | |
| Mat4 & | getLocal (void) |
| get the current (non-const) local transform | |
| const Mat4 & | getGlobal (void) const |
| get the current (const) global transform | |
| Mat4 & | getGlobal (void) |
| get the current (non-const) global transform | |
| virtual const Mat4 | getGlobal (const RelationalNodePtr root) const |
| void | setPreviousLocal (const Mat4 &matrix) |
| set the previous local transform | |
| const Mat4 & | getPreviousLocal (void) const |
| get the previous (const) local transform | |
| Mat4 & | getPreviousLocal (void) |
| get the previous (non-const) local transform | |
| const Mat4 & | getPreviousGlobal (void) const |
| get the previous (const) global transform | |
| Mat4 & | getPreviousGlobal (void) |
| get the previous (non-const) global transform | |
| void | setMovement (const Vec3 &v, const Quat &q=Quat(), bool relative=true, bool push=true) |
| move and rotate, either relative or absolute | |
| void | setMovement (const Mat4 &matrix, bool relative=true, bool push=true) |
| Vec3 | getMovement (const Vec3 &global=Vec3(), bool fromPrevious=false) const |
| Vec3 | warpVector (const Vec3 &p) const |
| bool | needsWarping (const Vec3 &p) const |
| void | warp (void) |
| void | warp (const Vec3 &p) |
| void | setWarping (bool state, const Vec3 &halfExtent=Vec3()) |
| const NAABB & | getNAABB (void) const |
| const AABB & | getAABB (void) const |
| void | setNAABB (const NAABB &box, bool send=true) |
| void | setAABB (const AABB &box, bool send=true) |
Static Public Member Functions | |
| static PropertyPtr | create (const XMLNodePtr &xml=XMLNodePtr()) |
Protected Attributes | |
| Mat4 | m_local |
| Mat4 | m_global |
| Mat4 | m_previousLocal |
| Mat4 | m_previousGlobal |
| bool | m_warp |
| Vec3 | m_warpVector |
| NAABB | m_naabb |
| AABB | m_aabb |
Definition at line 10 of file TransformNode.h.
| RenderTools::TransformNode::TransformNode | ( | void | ) |
Definition at line 7 of file TransformNode.cpp.
| static PropertyPtr RenderTools::TransformNode::create | ( | const XMLNodePtr & | xml = XMLNodePtr() |
) | [static] |
| void RenderTools::TransformNode::createProperties | ( | void | ) | [virtual] |
Reimplemented from RenderTools::AbstractPropertyContainer.
Reimplemented in RenderTools::Camera, RenderTools::RelationalNode, RenderTools::AbstractCurve, RenderTools::Circle, RenderTools::Curve< T >, RenderTools::Ellipsoid, RenderTools::Plane, RenderTools::Rendernode, and RenderTools::TextNode.
Definition at line 11 of file TransformNode.cpp.
| const AABB & RenderTools::TransformNode::getAABB | ( | void | ) | const |
Definition at line 232 of file TransformNode.cpp.
| const Mat4 RenderTools::TransformNode::getGlobal | ( | const RelationalNodePtr | root | ) | const [virtual] |
Definition at line 36 of file TransformNode.cpp.
| Mat4 & RenderTools::TransformNode::getGlobal | ( | void | ) |
| const Mat4 & RenderTools::TransformNode::getGlobal | ( | void | ) | const |
| Mat4 & RenderTools::TransformNode::getLocal | ( | void | ) |
| const Mat4 & RenderTools::TransformNode::getLocal | ( | void | ) | const |
| Vec3 RenderTools::TransformNode::getMovement | ( | const Vec3 & | global = Vec3(), |
|
| bool | fromPrevious = false | |||
| ) | const |
Definition at line 151 of file TransformNode.cpp.
| const NAABB & RenderTools::TransformNode::getNAABB | ( | void | ) | const |
Definition at line 228 of file TransformNode.cpp.
| Mat4 & RenderTools::TransformNode::getPreviousGlobal | ( | void | ) |
| const Mat4 & RenderTools::TransformNode::getPreviousGlobal | ( | void | ) | const |
| Mat4 & RenderTools::TransformNode::getPreviousLocal | ( | void | ) |
| const Mat4 & RenderTools::TransformNode::getPreviousLocal | ( | void | ) | const |
| const string RenderTools::TransformNode::getTypeName | ( | bool | ofComponent = false |
) | const [virtual] |
Reimplemented from RenderTools::ContainerProperty.
Reimplemented in RenderTools::Camera, RenderTools::RelationalNode, RenderTools::AbstractCurve, RenderTools::Circle, RenderTools::Curve< T >, RenderTools::Ellipsoid, RenderTools::Plane, RenderTools::Rendernode, and RenderTools::TextNode.
Definition at line 18 of file TransformNode.cpp.
| bool RenderTools::TransformNode::needsWarping | ( | const Vec3 & | p | ) | const |
Definition at line 183 of file TransformNode.cpp.
| void RenderTools::TransformNode::onTransform | ( | const Mat4 & | global | ) | [virtual] |
| void RenderTools::TransformNode::setAABB | ( | const AABB & | box, | |
| bool | send = true | |||
| ) |
Definition at line 241 of file TransformNode.cpp.
| void RenderTools::TransformNode::setLocal | ( | const Mat4 & | matrix | ) |
| void RenderTools::TransformNode::setMovement | ( | const Mat4 & | matrix, | |
| bool | relative = true, |
|||
| bool | push = true | |||
| ) |
Definition at line 133 of file TransformNode.cpp.
| void RenderTools::TransformNode::setNAABB | ( | const NAABB & | box, | |
| bool | send = true | |||
| ) |
Definition at line 236 of file TransformNode.cpp.
| void RenderTools::TransformNode::setPreviousLocal | ( | const Mat4 & | matrix | ) |
Definition at line 223 of file TransformNode.cpp.
Definition at line 22 of file TransformNode.cpp.
| void RenderTools::TransformNode::warp | ( | const Vec3 & | p | ) |
Definition at line 196 of file TransformNode.cpp.
| void RenderTools::TransformNode::warp | ( | void | ) |
Definition at line 208 of file TransformNode.cpp.
Definition at line 168 of file TransformNode.cpp.
AABB RenderTools::TransformNode::m_aabb [protected] |
Definition at line 53 of file TransformNode.h.
Mat4 RenderTools::TransformNode::m_global [protected] |
Definition at line 47 of file TransformNode.h.
Mat4 RenderTools::TransformNode::m_local [protected] |
Definition at line 46 of file TransformNode.h.
NAABB RenderTools::TransformNode::m_naabb [protected] |
Definition at line 52 of file TransformNode.h.
Mat4 RenderTools::TransformNode::m_previousGlobal [protected] |
Definition at line 49 of file TransformNode.h.
Mat4 RenderTools::TransformNode::m_previousLocal [protected] |
Definition at line 48 of file TransformNode.h.
bool RenderTools::TransformNode::m_warp [protected] |
Definition at line 50 of file TransformNode.h.
Vec3 RenderTools::TransformNode::m_warpVector [protected] |
Definition at line 51 of file TransformNode.h.
1.5.8