iCub-main
camera.h
Go to the documentation of this file.
1 /*
2  * camera.h
3  */
4 
5 /*
6  * Copyright (C) 2009 RobotCub Consortium
7  * Author: Alessandro Scalzo alessandro.scalzo@iit.it
8  * CopyPolicy: Released under the terms of the GNU GPL v2.0.
9  *
10  * Based on:
11  *
12  * Qavimator
13  * Copyright (C) 2006 by Zi Ree *
14  * Zi Ree @ SecondLife *
15  * Released under the terms of the GNU GPL v2.0.
16  */
17 
18 #ifndef CAMERA_H
19 #define CAMERA_H
20 
21 class Camera
22 {
23  public:
24  Camera();
25 
26  void rotate(float x, float y);
27  void pan(float x, float y, float z);
28  void setModelView();
29  void reset();
30 
31  float xRotation() const;
32  float yRotation() const;
33 
34  private:
35  float rotX, rotY;
36  float panX, panY, panZ;
37 };
38 
39 #endif
Definition: camera.h:22
Camera()
Definition: camera.cpp:29
void reset()
Definition: camera.cpp:66
void setModelView()
Definition: camera.cpp:57
float xRotation() const
Definition: camera.cpp:75
float yRotation() const
Definition: camera.cpp:80
void rotate(float x, float y)
Definition: camera.cpp:34
void pan(float x, float y, float z)
Definition: camera.cpp:44