diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index db6e1b1608c52d425b10f5d92527a9504257b6b9..8ba28a4759c84af261d8d8cb8665db5fd2821043 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -519,12 +519,22 @@ void PulsarAnimationWidget::paintGL() // draw copyright info last (appears in front of everything) glColor4f(1.0f, 1.0f, 1.0f, 0.5f); QFont font; - font.setPointSize(11); + font.setPointSize(16); font.setBold(true); font.setFamily("Arial"); font.setStyleStrategy((QFont::StyleStrategy) (QFont::OpenGLCompatible | QFont::PreferQuality)); - renderText(10, 25, -100, QString::fromLocal8Bit("Copyright © 2009-2010"), font); - renderText(10, 10, -100, QString::fromLocal8Bit("Max-Planck-Insitut für Gravitationsphysik"), font); + renderText(10, 30, -100, QString::fromLocal8Bit("Copyright © 2009-2010"), font); + renderText(10, 10, -100, QString::fromLocal8Bit("Max-Planck-Institut für Gravitationsphysik"), font); + + if(m_showRotationAxes) { + // draw legend + glColor4f(1.0f, 1.0f, 1.0f, 1.0f); + renderText(width() - 190, height() - 25, -100, QString::fromLocal8Bit("◼ Pulsar Rotation Axis"), font); + glColor4f(1.0f, 1.0f, 0.0f, 1.0f); + renderText(width() - 190, height() - 50, -100, QString::fromLocal8Bit("◼ Magnetic Field Axis"), font); + glColor4f(0.0f, 0.0f, 1.0f, 1.0f); + renderText(width() - 190, height() - 75, -100, QString::fromLocal8Bit("◼ Line Of Sight (Earth)"), font); + } // restore original state glMatrixMode(GL_PROJECTION);