Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QSimpleViewer Class Reference

#include <QSimpleViewer.h>

Inheritance diagram for QSimpleViewer:

QGLExaminerViewer QGLViewer List of all members.

Signals

void sigMyKey (int)

Public Member Functions

 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 Member Functions

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 on Wed Sep 14 15:59:42 2005 for QGLViewer by  doxygen 1.4.4