1
#ifndef OH3DCAMERA_H_INCLUDED
2
#define OH3DCAMERA_H_INCLUDED
6
// manages camera settings (including position of the viewer and perspective settings)
8
// position of the viewer
10
float elevation, azimuth, distance;
15
static const int OH3D_CAMERA_FREE = 0;
16
static const int OH3D_CAMERA_CENT = 1;
18
OH3DCamera(int _mode = OH3D_CAMERA_CENT);
19
OH3DCamera( float _x, float _y, float _z,
20
float _elevation, float _azimuth, float _distance, int _mode = OH3D_CAMERA_FREE);
23
// postitions the camera in the scene, according to the current settings
26
void setMode(int mode);
30
void moveTo(float x, float y, float z);
31
void move(float dx, float dy, float dz);
32
void setAngles(float elevation, float azimuth);
33
void getAngles(float & elevation, float & azimuth);
35
void rotate(float angleX, float angleY);
36
void setDistance(float distance);
37
void changeDistance(float dd);
41
QVector3D getPosition();
44
#endif // OH3DCAMERA_H_INCLUDED