Implemented NodeVisitor's getLocalToWorldMatrix and getWorldToLocalMatrix

to allow users to querry the current accumulated matrix state within the
scene graph.
This commit is contained in:
Robert Osfield
2002-02-10 22:35:22 +00:00
parent e6638d9974
commit 7d03f8a548
4 changed files with 152 additions and 10 deletions

View File

@@ -156,11 +156,11 @@ class SG_EXPORT NodeVisitor : public Referenced
* to the current Node being visited.*/
const NodePath& getNodePath() const { return _nodePath; }
/** Get the Local To World Matrix from the NodePath for specified Transform::Mode.*/
const bool getLocalToWorldMatrix(Matrix& matrix, MatrixMode mode);
/** Get the Local To World Matrix from the NodePath for specified Transform::Mode, and u.*/
const bool getLocalToWorldMatrix(Matrix& matrix, MatrixMode mode,Node* node);
/** Get the World To Local Matrix from the NodePath for specified Transform::Mode.*/
const bool getWorldToLocalMatrix(Matrix& matrix, MatrixMode mode);
const bool getWorldToLocalMatrix(Matrix& matrix, MatrixMode mode,Node* node);
virtual void apply(Node& node) { traverse(node);}