My Project
Public Member Functions | Public Attributes | List of all members
Camera Class Reference

Camera object. More...

#include "scene/camera.h"

Collaboration diagram for Camera:
Collaboration graph
[legend]

Public Member Functions

 Camera ()
 
 Camera (GVector position, GVector direction)
 
void rotateHorizontalSphere (double angle)
 
void rotateVerticalSphere (double angle)
 
GMatrix cameraview ()
 

Public Attributes

GVector position
 
GVector target
 

Detailed Description

Camera object.

Set viewer matrix.

Definition at line 23 of file camera.h.

Constructor & Destructor Documentation

§ Camera() [1/2]

Camera::Camera ( )

Emty constructor. No action.

Definition at line 7 of file camera.cpp.

§ Camera() [2/2]

Camera::Camera ( GVector  position,
GVector  direction 
)

Constructor. Settin samera with it's position and target look

Parameters
[in]positionCamera position point
[in]targetCamera target point

Definition at line 11 of file camera.cpp.

Member Function Documentation

§ cameraview()

GMatrix Camera::cameraview ( )

Returns View matrix which displays object depends ot camera position Change global coordinate system to camera CS

Parameters
[in]viewmatrix

Definition at line 52 of file camera.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ rotateHorizontalSphere()

void Camera::rotateHorizontalSphere ( double  angle)

Rotate camera around target point in horizontal surface

Parameters
[in]angleRotation angle

Definition at line 34 of file camera.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ rotateVerticalSphere()

void Camera::rotateVerticalSphere ( double  angle)

Rotate camera around target point in vertical surface

Parameters
[in]angleRotation angle

Definition at line 43 of file camera.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

§ position

GVector Camera::position

Camera position

Definition at line 57 of file camera.h.

§ target

GVector Camera::target

Definition at line 58 of file camera.h.


The documentation for this class was generated from the following files: