コード例 #1
0
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);
}
コード例 #2
0
ファイル: Object3D.cpp プロジェクト: ethiago/triquadgl
void Object3D::cleanTransformations()
{
    setTraslation(QVector3D());
    setCenter(QVector3D());

    setInteractiveQuartenion(QQuaternion());
    setRotations(QMatrix4x4());
}
コード例 #3
0
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);
}
コード例 #4
0
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);
}
コード例 #5
0
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();
}