#include <Camera.h>
Inheritance diagram for GCE::Camera:


Public Slots | |
| virtual void | setFrame (OpenGLFrame *frame) |
| virtual void | setForm (GCS::GForm *form) |
| virtual void | startCamera () |
| virtual void | stopCamera () |
| virtual void | setViewDistance (int new_distance_percent) |
Public Member Functions | |
| Camera (OpenGLFrame *frame=NULL, GCS::GForm *form=NULL, QObject *parent=0, const char *name=0) | |
| ~Camera () | |
Protected Member Functions | |
| virtual void | run () |
| virtual bool | eventFilter (QObject *watched, QEvent *e) |
Protected Attributes | |
| QTime | KeyUpdateTime |
| OpenGLFrame * | Frame |
| GForm * | Form |
| double | ViewDistancePercent |
| double | speedx |
| double | speedy |
| bool | shutdown |
| bool | left_key_down |
| bool | right_key_down |
| bool | up_key_down |
| bool | down_key_down |
| bool | space_key_down |
Currently it is very primitive and is intended to just meet the requirements of the demo application.
|
||||||||||||||||||||
|
Constructor. |
|
|
Destructor. |
|
||||||||||||
|
Filters user input. |
|
|
Periodically updates the view settings. |
|
|
Sets the Form that will be followed with camera position.
|
|
|
Sets the OpenGL frame that the camera uses.
|
|
|
Sets the ViewDistancePercent attribute.
|
|
|
Starts the camera thread. |
|
|
Stops the camera thread.
|
|
|
The camera will track exactly this form in terms of position. |
|
|
the Camera object will use this frame for setting the viewing properties. |
|
|
Used to determine elapsed time to determine correct speed updates (when keys are pressed) |
|
|
If true then the thread will stop executing. |
|
|
Positive value means right. |
|
|
Positive value means up. |
|
|
This determines where the camera position is placed in relation to the targeted form. the given distance is multiplied with the (max) radius of the form to get the distance between view position and view target. A value of 100 would for example place the camera exactly at the border of the form, a value of 200 should give a nice view. |
1.3.6