void MdpRot::setTransform(const utils::eTransform& rot) { int r = utils::getMdpOrient(rot); setRotations(r); mOrientation = static_cast<utils::eTransform>(r); ALOGE_IF(DEBUG_OVERLAY, "%s: r=%d", __FUNCTION__, r); }
void Object3D::cleanTransformations() { setTraslation(QVector3D()); setCenter(QVector3D()); setInteractiveQuartenion(QQuaternion()); setRotations(QMatrix4x4()); }
inline void MdssRot::setTransform(const utils::eTransform& rot) { int flags = utils::getMdpOrient(rot); if (flags != -1) setRotations(flags); //getMdpOrient will switch the flips if the source is 90 rotated. //Clients in Android dont factor in 90 rotation while deciding the flip. mOrientation = static_cast<utils::eTransform>(flags); ALOGE_IF(DEBUG_OVERLAY, "%s: rot=%d", __FUNCTION__, flags); }
void MdssRot::setTransform(const utils::eTransform& rot) { // reset rotation flags to avoid stale orientation values mRotInfo.flags &= ~MDSS_ROT_MASK; int flags = utils::getMdpOrient(rot); if (flags != -1) setRotations(flags); //getMdpOrient will switch the flips if the source is 90 rotated. //Clients in Android dont factor in 90 rotation while deciding the flip. mOrientation = static_cast<utils::eTransform>(flags); ALOGE_IF(DEBUG_OVERLAY, "%s: rot=%d", __FUNCTION__, flags); }
ConnectingBone::ConnectingBone(TransformerBone* Tparent, TransformerBone* Tchild) { m_Tparent = Tparent; m_Tchild = Tchild; // Global (will be changed to local later on) m_parentJoint = m_Tparent->m_endJoint; m_childJoint = m_Tchild->m_startJoint; m_foldCoord = m_parentJoint; Vec3f diff = m_childJoint - m_parentJoint; m_foldedLength = getMagnitude(diff); setRotations(); }