#include <QSimpleViewer.h>
Inheritance diagram for QSimpleViewer:
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) |
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.
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.