diff --git a/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.cpp b/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.cpp index ec21b3f46b830c88a682a97895ba40f09d3b3194..ac35242d50cf076041eda421cf2e36a80e956518 100644 --- a/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.cpp +++ b/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.cpp @@ -240,15 +240,38 @@ bool VistaTransformNode::GetTranslation( VistaVector3D& v3Translation ) const { return m_pBridge->GetTranslation( v3Translation, m_pData ); } -bool VistaTransformNode::GetRotation( VistaQuaternion& qRotation ) const + +VistaVector3D VistaTransformNode::GetTranslation() const +{ + VistaVector3D v3Translation; + this->GetTranslation(v3Translation); + return v3Translation; +} + +bool VistaTransformNode::GetRotation(VistaQuaternion& qRotation) const { return m_pBridge->GetRotation( qRotation, m_pData ); } -bool VistaTransformNode::GetTransform( VistaTransformMatrix& matTransform ) const + +VistaQuaternion VistaTransformNode::GetRotation() const +{ + VistaQuaternion qRotation; + this->GetRotation(qRotation); + return qRotation; +} + +bool VistaTransformNode::GetTransform(VistaTransformMatrix& matTransform) const { return m_pBridge->GetTransform( matTransform, m_pData ); } +VistaTransformMatrix VistaTransformNode::GetTransform() const +{ + VistaTransformMatrix matTransform; + this->GetTransform(matTransform); + return matTransform; +} + /*============================================================================*/ /* LOCAL VARS AND FUNCS */ /*============================================================================*/ diff --git a/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.h b/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.h index 6de1e571464f206e65e5111f3209bf50417942cb..55e9f4a6d20c949810c1f2acde79ef4382a336bf 100644 --- a/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.h +++ b/VistaCoreLibs/VistaKernel/GraphicsManager/VistaTransformNode.h @@ -103,6 +103,11 @@ public: using VistaNode::GetTranslation; using VistaNode::GetRotation; using VistaNode::GetTransform; + + // convenience interface + VistaVector3D GetTranslation() const; + VistaQuaternion GetRotation() const; + VistaTransformMatrix GetTransform() const; protected: