| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "inode.h" |
| 4 |
|
| 5 |
class Matrix4; |
| 6 |
|
| 7 |
/// A node which can transform the coordinate space of its children |
| 8 |
class ITransformNode |
| 9 |
{ |
| 10 |
public: |
| 11 |
virtual ~ITransformNode() {} |
| 12 |
|
| 13 |
/// \brief Returns the transform which maps the node's local-space into the local-space of its parent node. |
| 14 |
virtual Matrix4 localToParent() const = 0; |
| 15 |
}; |
| 16 |
typedef std::shared_ptr<ITransformNode> ITransformNodePtr; |
| 17 |
|
| 18 |
/// An ITransformNode which can provide non-const access to its transform matrix |
| 19 |
class IMatrixTransform: public ITransformNode |
| 20 |
{ |
| 21 |
public: |
| 22 |
|
| 23 |
/// Set the value of the contained transformation matrix |
| 24 |
virtual void setLocalToParent(const Matrix4& localToParent) = 0; |
| 25 |
}; |