Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
einsteinathome
pulsatingscience
Commits
2731e32d
Commit
2731e32d
authored
Jul 23, 2010
by
Oliver Bock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using half the pulsar radius (adjusted axes lengths accordingly)
parent
6de9fa14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/pulsaranimationwidget.cpp
src/pulsaranimationwidget.cpp
+11
-11
No files found.
src/pulsaranimationwidget.cpp
View file @
2731e32d
...
...
@@ -76,7 +76,7 @@ PulsarAnimationWidget::PulsarAnimationWidget(QWidget *parent) :
m_pulsarRotationDelta
=
0.0
;
m_pulsarRotationAngle
=
0.0
;
m_pulsarRadius
=
1.0
;
m_pulsarRadius
=
0.5
;
m_pulsarBeamLength
=
3.0
f
;
m_pulsarBeamRimSize
=
0.1
f
;
setPulsarSpinAxisInclination
(
0
);
...
...
@@ -277,12 +277,12 @@ void PulsarAnimationWidget::paintGL()
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
m_pulsarRadius
+
0.5
);
gluCylinder
(
m_quadricLineOfSight
,
0.025
,
0.025
,
3.
5
1
,
32
,
1
);
gluCylinder
(
m_quadricLineOfSight
,
0.025
,
0.025
,
3.
0
1
,
32
,
1
);
}
glPopMatrix
();
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
m_pulsarRadius
+
4.0
1
);
glTranslatef
(
0.0
,
0.0
,
m_pulsarRadius
+
3.5
1
);
gluDisk
(
m_quadricLineOfSightTop
,
0
,
0.025
,
32
,
8
);
}
glPopMatrix
();
...
...
@@ -301,19 +301,19 @@ void PulsarAnimationWidget::paintGL()
glColor3f
(
1.0
f
,
1.0
f
,
1.0
f
);
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
-
5
.0
);
gluCylinder
(
m_quadricPulsarSpinAxis
,
0.020
,
0.020
,
10
.0
,
32
,
1
);
glTranslatef
(
0.0
,
0.0
,
-
4
.0
);
gluCylinder
(
m_quadricPulsarSpinAxis
,
0.020
,
0.020
,
8
.0
,
32
,
1
);
}
glPopMatrix
();
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
-
5
.0
);
glTranslatef
(
0.0
,
0.0
,
-
4
.0
);
gluDisk
(
m_quadricPulsarSpinAxisTop1
,
0
,
0.020
,
32
,
8
);
}
glPopMatrix
();
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
5
.0
);
glTranslatef
(
0.0
,
0.0
,
4
.0
);
gluDisk
(
m_quadricPulsarSpinAxisTop2
,
0
,
0.020
,
32
,
8
);
}
glPopMatrix
();
...
...
@@ -352,19 +352,19 @@ void PulsarAnimationWidget::paintGL()
glColor3f
(
1.0
f
,
1.0
f
,
0.0
f
);
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
-
5
.0
);
gluCylinder
(
m_quadricPulsarMagneticAxis
,
0.020
,
0.020
,
10
.0
,
32
,
1
);
glTranslatef
(
0.0
,
0.0
,
-
4
.0
);
gluCylinder
(
m_quadricPulsarMagneticAxis
,
0.020
,
0.020
,
8
.0
,
32
,
1
);
}
glPopMatrix
();
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
-
5
.0
);
glTranslatef
(
0.0
,
0.0
,
-
4
.0
);
gluDisk
(
m_quadricPulsarSpinAxisTop1
,
0
,
0.020
,
32
,
8
);
}
glPopMatrix
();
glPushMatrix
();
{
glTranslatef
(
0.0
,
0.0
,
5
.0
);
glTranslatef
(
0.0
,
0.0
,
4
.0
);
gluDisk
(
m_quadricPulsarSpinAxisTop2
,
0
,
0.020
,
32
,
8
);
}
glPopMatrix
();
...
...
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