# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::UCamera Class Reference

Game interface for manipulating Camera. More...

#include <u_camera.h>

Inheritance diagram for NL3D::UCamera:

NL3D::UTransform NL3D::UTransformable NL3D::CCameraUser List of all members.

Public Methods

Frustum
virtual void setFrustum (const CFrustum &f)=0
 Set the frustum of the camera. More...

virtual const CFrustumgetFrustum () const=0
 Get the frustum of the camera. More...

virtual void setFrustum (float left, float right, float bottom, float top, float znear, float zfar, bool perspective=true)=0
 Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). More...

virtual void setFrustum (float width, float height, float znear, float zfar, bool perspective=true)=0
 Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective). More...

virtual void getFrustum (float &left, float &right, float &bottom, float &top, float &znear, float &zfar) const=0
 Get the camera frustum. More...

virtual bool isOrtho () const=0
 Is a ortho camera? More...

virtual bool isPerspective () const=0
 Is a perspective camera? More...

virtual void setPerspective (float fov, float aspectRatio, float znear, float zfar)=0
 Setup a perspective camera, giving a fov in radians. More...


Static Public Attributes

Default Camera frustum (perspective).
const float DefLx = 0.26f
const float DefLy = 0.2f
const float DefLzNear = 0.15f
const float DefLzFar = 1000.0f

Protected Methods

Object
 UCamera ()
virtual ~UCamera ()

Detailed Description

Game interface for manipulating Camera.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 45 of file u_camera.h.


Constructor & Destructor Documentation

NL3D::UCamera::UCamera   [inline, protected]
 

Definition at line 51 of file u_camera.h.

virtual NL3D::UCamera::~UCamera   [inline, protected, virtual]
 

Definition at line 52 of file u_camera.h.


Member Function Documentation

virtual void NL3D::UCamera::getFrustum float &    left,
float &    right,
float &    bottom,
float &    top,
float &    znear,
float &    zfar
const [pure virtual]
 

Get the camera frustum.

Implemented in NL3D::CCameraUser.

virtual const CFrustum& NL3D::UCamera::getFrustum   const [pure virtual]
 

Get the frustum of the camera.

Implemented in NL3D::CCameraUser.

virtual bool NL3D::UCamera::isOrtho   const [pure virtual]
 

Is a ortho camera?

Implemented in NL3D::CCameraUser.

virtual bool NL3D::UCamera::isPerspective   const [pure virtual]
 

Is a perspective camera?

Implemented in NL3D::CCameraUser.

virtual void NL3D::UCamera::setFrustum float    width,
float    height,
float    znear,
float    zfar,
bool    perspective = true
[pure virtual]
 

Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).

Implemented in NL3D::CCameraUser.

virtual void NL3D::UCamera::setFrustum float    left,
float    right,
float    bottom,
float    top,
float    znear,
float    zfar,
bool    perspective = true
[pure virtual]
 

Setup the camera mode as a perspective/ortho camera. NB: znear and zfar must be >0 (if perspective).

Implemented in NL3D::CCameraUser.

virtual void NL3D::UCamera::setFrustum const CFrustum   f [pure virtual]
 

Set the frustum of the camera.

Implemented in NL3D::CCameraUser.

virtual void NL3D::UCamera::setPerspective float    fov,
float    aspectRatio,
float    znear,
float    zfar
[pure virtual]
 

Setup a perspective camera, giving a fov in radians.

Parameters:
fov  the horizontal angle of view, in radians. (Pi/2 as example)
aspectRatio  the ratio horizontal/vertical (1.33 as example).
znear  the front clipping plane distance.
zfar  the back clipping plane distance.

Implemented in NL3D::CCameraUser.


Member Data Documentation

const float NL3D::UCamera::DefLx = 0.26f [static]
 

Definition at line 35 of file camera_user.cpp.

const float NL3D::UCamera::DefLy = 0.2f [static]
 

Definition at line 36 of file camera_user.cpp.

const float NL3D::UCamera::DefLzFar = 1000.0f [static]
 

Definition at line 38 of file camera_user.cpp.

const float NL3D::UCamera::DefLzNear = 0.15f [static]
 

Definition at line 37 of file camera_user.cpp.


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