mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
coding style
This commit is contained in:
parent
4505b8cedf
commit
15d379cc5a
1 changed files with 12 additions and 6 deletions
|
@ -408,16 +408,18 @@ bool Rig::getJointPositionInWorldFrame(int jointIndex, glm::vec3& position, glm:
|
||||||
if (isIndexValid(jointIndex)) {
|
if (isIndexValid(jointIndex)) {
|
||||||
position = (rotation * _internalPoseSet._absolutePoses[jointIndex].trans()) + translation;
|
position = (rotation * _internalPoseSet._absolutePoses[jointIndex].trans()) + translation;
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QReadLocker readLock(&_externalPoseSetLock);
|
QReadLocker readLock(&_externalPoseSetLock);
|
||||||
if (jointIndex >= 0 && jointIndex < (int)_externalPoseSet._absolutePoses.size()) {
|
if (jointIndex >= 0 && jointIndex < (int)_externalPoseSet._absolutePoses.size()) {
|
||||||
position = (rotation * _externalPoseSet._absolutePoses[jointIndex].trans()) + translation;
|
position = (rotation * _externalPoseSet._absolutePoses[jointIndex].trans()) + translation;
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Rig::getJointPosition(int jointIndex, glm::vec3& position) const {
|
bool Rig::getJointPosition(int jointIndex, glm::vec3& position) const {
|
||||||
|
@ -425,10 +427,12 @@ bool Rig::getJointPosition(int jointIndex, glm::vec3& position) const {
|
||||||
if (isIndexValid(jointIndex)) {
|
if (isIndexValid(jointIndex)) {
|
||||||
position = _internalPoseSet._absolutePoses[jointIndex].trans();
|
position = _internalPoseSet._absolutePoses[jointIndex].trans();
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
} else {
|
||||||
|
return getAbsoluteJointTranslationInRigFrame(jointIndex, position);
|
||||||
}
|
}
|
||||||
return getAbsoluteJointTranslationInRigFrame(jointIndex, position);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Rig::getJointRotationInWorldFrame(int jointIndex, glm::quat& result, const glm::quat& rotation) const {
|
bool Rig::getJointRotationInWorldFrame(int jointIndex, glm::quat& result, const glm::quat& rotation) const {
|
||||||
|
@ -436,8 +440,9 @@ bool Rig::getJointRotationInWorldFrame(int jointIndex, glm::quat& result, const
|
||||||
if (isIndexValid(jointIndex)) {
|
if (isIndexValid(jointIndex)) {
|
||||||
result = rotation * _internalPoseSet._absolutePoses[jointIndex].rot();
|
result = rotation * _internalPoseSet._absolutePoses[jointIndex].rot();
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QReadLocker readLock(&_externalPoseSetLock);
|
QReadLocker readLock(&_externalPoseSetLock);
|
||||||
|
@ -454,8 +459,9 @@ bool Rig::getJointRotation(int jointIndex, glm::quat& rotation) const {
|
||||||
if (isIndexValid(jointIndex)) {
|
if (isIndexValid(jointIndex)) {
|
||||||
rotation = _internalPoseSet._relativePoses[jointIndex].rot();
|
rotation = _internalPoseSet._relativePoses[jointIndex].rot();
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QReadLocker readLock(&_externalPoseSetLock);
|
QReadLocker readLock(&_externalPoseSetLock);
|
||||||
|
|
Loading…
Reference in a new issue