duration -> durationInSec
[agianapa.git] / socg / camera.h
blob3b15f93cf3b6f60c156e7cdf67d8aad9528bc5d1
1 #ifndef CAMERA_H
2 #define CAMERA_H
4 class Camera {
5 public:
6 Camera() {};
7 Camera(float eyeX, float eyeY, float eyeZ,
8 float centerX, float centerY, float centerZ,
9 float upX, float upY, float upZ)
11 m_eyeX = eyeX;
12 m_eyeY = eyeY;
13 m_eyeZ = eyeZ;
15 m_centerX = centerX;
16 m_centerY = centerY;
17 m_centerZ = centerZ;
19 m_upX = upX;
20 m_upY = upY;
21 m_upZ = upZ;
23 ~Camera() {};
25 // Setters
26 void setEyeX(float eyeX) { m_eyeX = eyeX; }
27 void setEyeY(float eyeY) { m_eyeY = eyeY; }
28 void setEyeZ(float eyeZ) { m_eyeZ = eyeZ; }
30 void setCenterX(float centerX) { m_centerX = centerX; }
31 void setCenterY(float centerY) { m_centerY = centerY; }
32 void setCenterZ(float centerZ) { m_centerZ = centerZ; }
34 void setUpX(float upX) { m_upX = upX; }
35 void setUpY(float upY) { m_upY = upY; }
36 void setUpZ(float upZ) { m_upZ = upZ; }
38 // Getters
39 float getEyeX(void) const { return m_eyeX; }
40 float getEyeY(void) const { return m_eyeY; }
41 float getEyeZ(void) const { return m_eyeZ; }
43 float getCenterX(void) const { return m_centerX; }
44 float getCenterY(void) const { return m_centerY; }
45 float getCenterZ(void) const { return m_centerZ; }
47 float getUpX(void) const { return m_upX; }
48 float getUpY(void) const { return m_upY; }
49 float getUpZ(void) const { return m_upZ; }
50 private:
51 float m_eyeX;
52 float m_eyeY;
53 float m_eyeZ;
55 float m_centerX;
56 float m_centerY;
57 float m_centerZ;
59 float m_upX;
60 float m_upY;
61 float m_upZ;
64 #endif // CAMERA_H