Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
319cef20
Commit
319cef20
authored
Sep 13, 2017
by
Oliver Bock
Browse files
Move initial offsets where they belong to retain actual rotation angles
parent
71d54051
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
319cef20
...
...
@@ -66,9 +66,9 @@ PulsarAnimationWidget::PulsarAnimationWidget(QWidget *parent) :
m_beamTexture
=
0
;
// initial parameters (have to match GUI!)
m_LHOAngle
=
18
0
;
m_LLOAngle
=
-
9
0
;
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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment