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

QSceneTreeViewer Class Reference

#include <QSceneTreeViewer.h>

Inheritance diagram for QSceneTreeViewer:

QGLExaminerViewer QGLViewer List of all members.

Signals

void sigMyKey (int)

Public Member Functions

 QSceneTreeViewer (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 ~QSceneTreeViewer ()

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

QSceneTreeViewer::QSceneTreeViewer 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 QSceneTreeViewer::~QSceneTreeViewer  )  [inline, virtual]
 

Default Destructor.


Member Function Documentation

void QSceneTreeViewer::keyPressEvent QKeyEvent *  event  )  [protected, virtual]
 

Catches key "events" and emits a signal.

Reimplemented from QGLExaminerViewer.

void QSceneTreeViewer::sigMyKey int   )  [signal]
 

This signal is emitted for key V.


The documentation for this class was generated from the following files:
Generated on Fri Aug 13 17:43:13 2004 for QGLViewer by doxygen 1.3.7