Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

QSimpleViewer Class Reference

#include <QSimpleViewer.h>

Inheritance diagram for QSimpleViewer::

QGLExaminerViewer QGLViewer QFrame QWidget QObject QPaintDevice Qt List of all members.

Signals

void sigMyKey (int)

Public Methods

 QSimpleViewer (const CCamera &homecam, QWidget *parent=0, const char *name=0, const QGLWidget *shareWidget=0, WFlags f=0, bool viewertype=true, const QGLFormat &format=QGLFormat::defaultFormat())
virtual ~QSimpleViewer ()

Protected Methods

virtual void keyPressEvent (QKeyEvent *event)

Detailed Description

This is a simple example of using the QGLViewer by extendending the class QGLExaminerViewer with new features. It overloads the catch key method and emits an own key signal.
NOTE: You need not inherit from the class QGLExaminerViewer
if it already fits your demands.
Author:
Michael Meissner


Constructor & Destructor Documentation

QSimpleViewer::QSimpleViewer const CCamera &   homecam,
QWidget *   parent = 0,
const char *   name = 0,
const QGLWidget *   shareWidget = 0,
WFlags   f = 0,
bool   viewertype = true,
const QGLFormat &   format = QGLFormat::defaultFormat()
[inline]
 

Constructor including a camera for the home position of the scene. NOTE: The current camera will also be set to the given homecam.

virtual QSimpleViewer::~QSimpleViewer   [inline, virtual]
 

Default Destructor.


Member Function Documentation

void QSimpleViewer::keyPressEvent QKeyEvent *   event [protected, virtual]
 

Catches key "events" and emits a signal.

Reimplemented from QGLExaminerViewer.

void QSimpleViewer::sigMyKey int   [signal]
 

This signal is emitted for key V.


The documentation for this class was generated from the following files:
Generated at Thu Oct 4 17:17:33 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001