|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CCameraUser Class ReferenceUCamera implementation.
More...
#include <camera_user.h>
Inheritance diagram for NL3D::CCameraUser:
List of all members.
Public Methods |
|
| CCameraUser (CScene *scene) |
virtual | ~CCameraUser () |
|
virtual void | setFrustum (const CFrustum &f) |
| Set the frustum of the camera. More...
|
virtual const CFrustum & | getFrustum () const |
| 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) |
| 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) |
| 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 |
| Get the camera frustum. More...
|
virtual bool | isOrtho () const |
| Is a ortho camera? More...
|
virtual bool | isPerspective () const |
| Is a perspective camera? More...
|
virtual void | setPerspective (float fov, float aspectRatio, float znear, float zfar) |
| Setup a perspective camera, giving a fov in radians. More...
|
|
CCamera * | getCamera () |
Protected Attributes |
CCamera * | _Camera |
| This is the SAME pointer than _Transform, but correctly casted. More...
|
Detailed Description
UCamera implementation.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 48 of file camera_user.h.
Constructor & Destructor Documentation
NL3D::CCameraUser::CCameraUser |
( |
CScene * |
scene |
) |
[inline] |
|
virtual NL3D::CCameraUser::~CCameraUser |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
CCamera* NL3D::CCameraUser::getCamera |
( |
|
) |
[inline] |
|
virtual void NL3D::CCameraUser::getFrustum |
( |
float & |
left, |
|
|
float & |
right, |
|
|
float & |
bottom, |
|
|
float & |
top, |
|
|
float & |
znear, |
|
|
float & |
zfar |
|
) |
const [inline, virtual] |
|
virtual const CFrustum& NL3D::CCameraUser::getFrustum |
( |
|
) |
const [inline, virtual] |
|
virtual bool NL3D::CCameraUser::isOrtho |
( |
|
) |
const [inline, virtual] |
|
virtual bool NL3D::CCameraUser::isPerspective |
( |
|
) |
const [inline, virtual] |
|
virtual void NL3D::CCameraUser::setFrustum |
( |
float |
width, |
|
|
float |
height, |
|
|
float |
znear, |
|
|
float |
zfar, |
|
|
bool |
perspective = true |
|
) |
[inline, virtual] |
|
virtual void NL3D::CCameraUser::setFrustum |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
znear, |
|
|
float |
zfar, |
|
|
bool |
perspective = true |
|
) |
[inline, virtual] |
|
virtual void NL3D::CCameraUser::setFrustum |
( |
const CFrustum & |
f |
) |
[inline, virtual] |
|
virtual void NL3D::CCameraUser::setPerspective |
( |
float |
fov, |
|
|
float |
aspectRatio, |
|
|
float |
znear, |
|
|
float |
zfar |
|
) |
[inline, 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. |
Implements NL3D::UCamera.
Definition at line 114 of file camera_user.h.
References _Camera, and NL3D_MEM_CAMERA. |
Member Data Documentation
CCamera* NL3D::CCameraUser::_Camera [protected]
|
|
The documentation for this class was generated from the following file:
|
|