Commit 319cef20 authored by Oliver Bock's avatar Oliver Bock
Browse files

Move initial offsets where they belong to retain actual rotation angles

parent 71d54051
......@@ -66,9 +66,9 @@ PulsarAnimationWidget::PulsarAnimationWidget(QWidget *parent) :
m_beamTexture = 0;
// initial parameters (have to match GUI!)
m_LHOAngle = 180;
m_LLOAngle = -90;
m_VirgoAngle = 165;
m_LHOAngle = 0;
m_LLOAngle = 0;
m_VirgoAngle = 0;
m_sourceIota = 0.0;
m_sourceInclination = 0;
......@@ -265,7 +265,7 @@ void PulsarAnimationWidget::paintGL()
glTranslatef(0.0, 0.0, m_earthRadius);
glRotatef(m_LHOAngle, 0.0, 0.0, 1.0);
glRotatef(m_LHOAngle+180, 0.0, 0.0, 1.0);
glPushMatrix();
{
glRotatef(90, 0.0, 1.0, 0.0);
......@@ -294,7 +294,7 @@ void PulsarAnimationWidget::paintGL()
glTranslatef(0.0, 0.0, m_earthRadius);
glRotatef(m_LLOAngle, 0.0, 0.0, 1.0);
glRotatef(m_LLOAngle-90, 0.0, 0.0, 1.0);
glPushMatrix();
{
glRotatef(90, 0.0, 1.0, 0.0);
......@@ -323,7 +323,7 @@ void PulsarAnimationWidget::paintGL()
glTranslatef(0.0, 0.0, m_earthRadius);
glRotatef(m_VirgoAngle, 0.0, 0.0, 1.0);
glRotatef(m_VirgoAngle+165, 0.0, 0.0, 1.0);
glPushMatrix();
{
glRotatef(90, 0.0, 1.0, 0.0);
......@@ -524,7 +524,7 @@ void PulsarAnimationWidget::setSourceInclination(const double degrees)
void PulsarAnimationWidget::setLHOAngle(const double degrees)
{
m_LHOAngle = degrees + 180;
m_LHOAngle = degrees;
updatePulseProfile();
updateGL();
......@@ -532,7 +532,7 @@ void PulsarAnimationWidget::setLHOAngle(const double degrees)
void PulsarAnimationWidget::setLLOAngle(const double degrees)
{
m_LLOAngle = degrees - 90;
m_LLOAngle = degrees;
updatePulseProfile();
updateGL();
......@@ -540,7 +540,7 @@ void PulsarAnimationWidget::setLLOAngle(const double degrees)
void PulsarAnimationWidget::setVirgoAngle(const int degrees)
{
m_VirgoAngle = degrees + 165;
m_VirgoAngle = degrees;
updatePulseProfile();
updateGL();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment