mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:23:33 +02:00
Remove deprecated getters
This commit is contained in:
parent
145e11a478
commit
8f65f036dd
2 changed files with 0 additions and 37 deletions
|
@ -186,37 +186,6 @@ qint64 Player::elapsed() const {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::quat Player::getHeadRotation() {
|
|
||||||
if (!computeCurrentFrame()) {
|
|
||||||
qWarning() << "Incorrect use of Player::getHeadRotation()";
|
|
||||||
return glm::quat();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_currentFrame == 0) {
|
|
||||||
return _recording->getFrame(_currentFrame).getHeadRotation();
|
|
||||||
}
|
|
||||||
return _recording->getFrame(0).getHeadRotation() *
|
|
||||||
_recording->getFrame(_currentFrame).getHeadRotation();
|
|
||||||
}
|
|
||||||
|
|
||||||
float Player::getLeanSideways() {
|
|
||||||
if (!computeCurrentFrame()) {
|
|
||||||
qWarning() << "Incorrect use of Player::getLeanSideways()";
|
|
||||||
return 0.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
return _recording->getFrame(_currentFrame).getLeanSideways();
|
|
||||||
}
|
|
||||||
|
|
||||||
float Player::getLeanForward() {
|
|
||||||
if (!computeCurrentFrame()) {
|
|
||||||
qWarning() << "Incorrect use of Player::getLeanForward()";
|
|
||||||
return 0.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
return _recording->getFrame(_currentFrame).getLeanForward();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Player::startPlaying() {
|
void Player::startPlaying() {
|
||||||
if (_recording && _recording->getFrameNumber() > 0) {
|
if (_recording && _recording->getFrameNumber() > 0) {
|
||||||
qDebug() << "Recorder::startPlaying()";
|
qDebug() << "Recorder::startPlaying()";
|
||||||
|
|
|
@ -142,12 +142,6 @@ public:
|
||||||
|
|
||||||
RecordingPointer getRecording() const { return _recording; }
|
RecordingPointer getRecording() const { return _recording; }
|
||||||
|
|
||||||
// Those should only be called if isPlaying() returns true
|
|
||||||
glm::quat getHeadRotation();
|
|
||||||
float getLeanSideways();
|
|
||||||
float getLeanForward();
|
|
||||||
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void startPlaying();
|
void startPlaying();
|
||||||
void stopPlaying();
|
void stopPlaying();
|
||||||
|
|
Loading…
Reference in a new issue