From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/classNL3D_1_1CCameraUser.html | 687 +++++++++++++++++++++++++ 1 file changed, 687 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CCameraUser.html (limited to 'docs/doxygen/nel/classNL3D_1_1CCameraUser.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CCameraUser.html b/docs/doxygen/nel/classNL3D_1_1CCameraUser.html new file mode 100644 index 00000000..ae63a702 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CCameraUser.html @@ -0,0 +1,687 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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::CCameraUser Class Reference

UCamera implementation. +More... +

+#include <camera_user.h> +

+

Inheritance diagram for NL3D::CCameraUser: +

+ +NL3D::UCamera +NL3D::CTransformUser +NL3D::UTransform +NL3D::UTransform +NL3D::CTransformableUser +NL3D::UTransformable +NL3D::UTransformable +NL3D::UTransformable + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

Object
 CCameraUser (CScene *scene)
virtual ~CCameraUser ()
Frustum
virtual void setFrustum (const CFrustum &f)
 Set the frustum of the camera. More...

virtual const CFrustumgetFrustum () 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...

Accessor for CSeneUser.
CCameragetCamera ()

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]
+
+ + + + + +
+   + + +

+ +

+Definition at line 59 of file camera_user.h. +

+References _Camera, NL3D::CameraId, NL3D::CTransformUser::CTransformUser, NL3D_MEM_CAMERA, and setFrustum.

+

+ + + + +
+ + + + + + + + + +
virtual NL3D::CCameraUser::~CCameraUser   [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
CCamera* NL3D::CCameraUser::getCamera   [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 125 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void NL3D::CCameraUser::getFrustum float &   left,
float &   right,
float &   bottom,
float &   top,
float &   znear,
float &   zfar
const [inline, virtual]
+
+ + + + + +
+   + + +

+Get the camera frustum. +

+ +

+Implements NL3D::UCamera. +

+Definition at line 99 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA.

+

+ + + + +
+ + + + + + + + + +
virtual const CFrustum& NL3D::CCameraUser::getFrustum   const [inline, virtual]
+
+ + + + + +
+   + + +

+Get the frustum of the camera. +

+ +

+Implements NL3D::UCamera. +

+Definition at line 84 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA.

+

+ + + + +
+ + + + + + + + + +
virtual bool NL3D::CCameraUser::isOrtho   const [inline, virtual]
+
+ + + + + +
+   + + +

+Is a ortho camera? +

+ +

+Implements NL3D::UCamera. +

+Definition at line 104 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA.

+

+ + + + +
+ + + + + + + + + +
virtual bool NL3D::CCameraUser::isPerspective   const [inline, virtual]
+
+ + + + + +
+   + + +

+Is a perspective camera? +

+ +

+Implements NL3D::UCamera. +

+Definition at line 109 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void NL3D::CCameraUser::setFrustum float   width,
float   height,
float   znear,
float   zfar,
bool   perspective = true
[inline, virtual]
+
+ + + + + +
+   + + +

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

+ +

+Implements NL3D::UCamera. +

+Definition at line 94 of file camera_user.h. +

+References _Camera, height, NL3D_MEM_CAMERA, and width.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
virtual void NL3D::CCameraUser::setFrustum float   left,
float   right,
float   bottom,
float   top,
float   znear,
float   zfar,
bool   perspective = true
[inline, virtual]
+
+ + + + + +
+   + + +

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

+ +

+Implements NL3D::UCamera. +

+Definition at line 89 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA.

+

+ + + + +
+ + + + + + + + + + +
virtual void NL3D::CCameraUser::setFrustum const CFrustum  f [inline, virtual]
+
+ + + + + +
+   + + +

+Set the frustum of the camera. +

+ +

+Implements NL3D::UCamera. +

+Definition at line 79 of file camera_user.h. +

+References _Camera, and NL3D_MEM_CAMERA. +

+Referenced by CCameraUser.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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] +
+
+ + + + + +
+   + + +

+This is the SAME pointer than _Transform, but correctly casted. +

+ +

+Definition at line 52 of file camera_user.h. +

+Referenced by CCameraUser, getCamera, getFrustum, isOrtho, isPerspective, setFrustum, setPerspective, and ~CCameraUser.

+


The documentation for this class was generated from the following file: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1