Class: ege::Camera
Synopsis:
+ Camera (const vec3 & _eye,
float _angleZ,
float _angleTeta,
float _distance);
+ void setEye (const vec3 & _eye);
+ const vec3 & getEye (void);
+ const vec3 & getOrigin (void);
+ const vec3 & getViewVector (void);
+ void setAngleZ (float _angleZ);
+ float getAngleZ (void);
+ void setAngleTeta (float _angleTeta);
+ float getAngleTeta (void);
+ void setDistance (float _distance);
+ float getDistance (void);
+ const mat4 & getMatrix (void);
+ void setForcingViewTop (bool _newState);
+ void periodicCall (float _step);
+ vec3 projectOnZGround (const vec2 & _cameraDeltaAngle,
float _zValue);
# void update (void);
Detail:
ege::Camera ()
Camera(const vec3 & _eye,
float _angleZ,
float _angleTeta,
float _distance);
Constructor.
Parameter [input]: _eye Position of the camera destination view.
Parameter [input]: _angleZ Z rotation angle.
Parameter [input]: _angleTeta Angle of the camera inclinason.
Parameter [input]: _distance distance to the eye point
setEye ()
void setEye(const vec3 & _eye);
set the position of the camera.
Parameter [input]: pos Position of the camera.
getEye ()
const vec3 & getEye(void);
get the curent Camera Eye position.
Return: the current position.
getOrigin ()
const vec3 & getOrigin(void);
get the curent Camera origin position.
Return: the current position.
getViewVector ()
const vec3 & getViewVector(void);
Get the camera viewing vector.
Return: the current position.
setAngleZ ()
void setAngleZ(float _angleZ);
set the angle on the camera
Parameter [input]: _angleZ Rotation angle in Z
getAngleZ ()
float getAngleZ(void);
get the curent Camera angles.
Return: the current angles Z.
setAngleTeta ()
void setAngleTeta(float _angleTeta);
set the angle on the camera
Parameter [input]: _angleTeta Rotation angle in Teta
getAngleTeta ()
float getAngleTeta(void);
get the curent Camera angles.
Return: the current angles Teta.
setDistance ()
void setDistance(float _distance);
set the angle on the camera
Parameter [input]: _distance Distance to the eye
getDistance ()
float getDistance(void);
get the curent Camera angles.
Return: the current distance to the eye.
getMatrix ()
const mat4 & getMatrix(void);
get the transformation matix for the camera.
Return: the current transformation matrix
setForcingViewTop ()
void setForcingViewTop(bool _newState);
change camera mode of view == > force to the top view
Parameter [input]: _newState The new state of this mode...
periodicCall ()
void periodicCall(float _step);
It is really needed to call the camera periodicly for performing automatic movement
Parameter [input]: _step step time of moving
projectOnZGround ()
vec3 projectOnZGround(const vec2 & _cameraDeltaAngle,
float _zValue);
update ()
void update(void);
update the matrix property
ege::Camera ()
Camera(const vec3 & _eye, float _angleZ, float _angleTeta, float _distance);
Constructor.
-
Parameter [input]: _eye Position of the camera destination view.
Parameter [input]: _angleZ Z rotation angle.
Parameter [input]: _angleTeta Angle of the camera inclinason.
Parameter [input]: _distance distance to the eye point
setEye ()
void setEye(const vec3 & _eye);
set the position of the camera.
-
Parameter [input]: pos Position of the camera.
getEye ()
const vec3 & getEye(void);
get the curent Camera Eye position.
-
Return: the current position.
getOrigin ()
const vec3 & getOrigin(void);
get the curent Camera origin position.
-
Return: the current position.
getViewVector ()
const vec3 & getViewVector(void);
Get the camera viewing vector.
-
Return: the current position.
setAngleZ ()
void setAngleZ(float _angleZ);
set the angle on the camera
-
Parameter [input]: _angleZ Rotation angle in Z
getAngleZ ()
float getAngleZ(void);
get the curent Camera angles.
-
Return: the current angles Z.
setAngleTeta ()
void setAngleTeta(float _angleTeta);
set the angle on the camera
-
Parameter [input]: _angleTeta Rotation angle in Teta
getAngleTeta ()
float getAngleTeta(void);
get the curent Camera angles.
-
Return: the current angles Teta.
setDistance ()
void setDistance(float _distance);
set the angle on the camera
-
Parameter [input]: _distance Distance to the eye
getDistance ()
float getDistance(void);
get the curent Camera angles.
-
Return: the current distance to the eye.
getMatrix ()
const mat4 & getMatrix(void);
get the transformation matix for the camera.
-
Return: the current transformation matrix
setForcingViewTop ()
void setForcingViewTop(bool _newState);
change camera mode of view == > force to the top view
-
Parameter [input]: _newState The new state of this mode...
periodicCall ()
void periodicCall(float _step);
It is really needed to call the camera periodicly for performing automatic movement
-
Parameter [input]: _step step time of moving
projectOnZGround ()
vec3 projectOnZGround(const vec2 & _cameraDeltaAngle, float _zValue);
update ()
void update(void);
update the matrix property