1 /***************************************************************************
2                           camera.h  -  A basic camera-class
3                              -------------------
4     begin                : ma feb 3 2003
5     copyright            : (C) 2003 by CJP
6     email                : cornware-cjp@users.sourceforge.net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #ifndef CAMERA_H
19 #define CAMERA_H
20 
21 #include "vector.h"
22 #include "matrix.h"
23 
24 /**
25   *@author CJP
26   */
27 
28 class CCamera {
29 public:
CCamera()30 	CCamera()
31 		{m_Position = CVector(0,0,0); m_Orientation.reset();}
32 
~CCamera()33 	virtual ~CCamera(){;}
34 
getPosition()35 	const CVector &getPosition() const
36 		{return m_Position;}
getOrientation()37 	const CMatrix &getOrientation() const
38 		{return m_Orientation;}
39 
setPosition(const CVector & pos)40 	virtual void setPosition(const CVector &pos)
41 		{m_Position = pos;}
setOrientation(const CMatrix & ori)42 	virtual void setOrientation(const CMatrix &ori)
43 		{m_Orientation = ori;}
44 
update()45 	virtual void update(){;}
46 
47 protected:
48 	CVector m_Position;
49 	CMatrix m_Orientation;
50 };
51 
52 #endif
53