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:
@@ -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);}
|
||||
|
||||
Reference in New Issue
Block a user