/**************************************************************************** Copyright (C) 2002-2006 Gilles Debunne (Gilles.Debunne@imag.fr) This file is part of the QGLViewer library. Version 2.2.4-1, released on December 12, 2006. http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer libQGLViewer is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. libQGLViewer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with libQGLViewer; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *****************************************************************************/ #include "simpleViewer.h" using namespace std; // Draws a spiral void Viewer::draw() { const float nbSteps = 200.0; glBegin(GL_QUAD_STRIP); for (int i=0; iS i m p l e V i e w e r"); text += "Use the mouse to move the camera around the object. "; text += "You can respectively revolve around, zoom and translate with the three mouse buttons. "; text += "Left and middle buttons pressed together rotate around the camera view direction axis

"; text += "Pressing Alt and one of the function keys (F1..F12) defines a camera keyFrame. "; text += "Simply press the function key again to restore it. Several keyFrames define a "; text += "camera path. Paths are saved when you quit the application and restored at next start.

"; text += "Press F to display the frame rate, A for the world axis, "; text += "Alt+Return for full screen mode and Control+S to save a snapshot. "; text += "See the Keyboard tab in this window for a complete shortcut list.

"; text += "Double clicks automates single click actions: A left button double click aligns the closer axis with the camera (if close enough). "; text += "A middle button double click fits the zoom of the camera and the right button re-centers the scene.

"; text += "A left button double click while holding right button pressed defines the camera Revolve Around Point. "; text += "See the Mouse tab and the documentation web pages for details.

"; text += "Press Escape to exit the viewer."; return text; }