# 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::ITravCameraScene Class Reference

A ITravScene traversal, with camera setup (common to CRenderTrav and CClipTrav). More...

#include <trav_scene.h>

Inheritance diagram for NL3D::ITravCameraScene

Inheritance graph
[legend]
Collaboration diagram for NL3D::ITravCameraScene:

Collaboration graph
[legend]
List of all members.

Public Methods

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...

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...

void setCamMatrix (const NLMISC::CMatrix &camMatrix)
 Setup the camera matrix (a translation/rotation matrix). More...

 ITravCameraScene ()
 Constructor. More...


Public Attributes

FOR OBSERVERS ONLY. (Read only)
Those variables are valid only in traverse().

float Left
float Right
float Bottom
float Top
float Near
float Far
bool Perspective
NLMISC::CMatrix CamMatrix
NLMISC::CMatrix ViewMatrix
NLMISC::CVector CamPos
NLMISC::CVector CamLook

Protected Methods

void update ()
 update the dependent information. More...


Detailed Description

A ITravScene traversal, with camera setup (common to CRenderTrav and CClipTrav).

Definition at line 84 of file trav_scene.h.


Constructor & Destructor Documentation

NL3D::ITravCameraScene::ITravCameraScene ( ) [inline]
 

Constructor.

Definition at line 126 of file trav_scene.h.


Member Function Documentation

void NL3D::ITravCameraScene::setCamMatrix ( const NLMISC::CMatrix & camMatrix ) [inline]
 

Setup the camera matrix (a translation/rotation matrix).

Definition at line 119 of file trav_scene.h.

void NL3D::ITravCameraScene::setFrustum ( float width,
float height,
float znear,
float zfar,
bool perspective = true ) [inline]
 

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

Definition at line 114 of file trav_scene.h.

void NL3D::ITravCameraScene::setFrustum ( float left,
float right,
float bottom,
float top,
float znear,
float zfar,
bool perspective = true ) [inline]
 

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

Definition at line 103 of file trav_scene.h.

void NL3D::ITravCameraScene::update ( ) [inline, protected]
 

update the dependent information.

Definition at line 139 of file trav_scene.h.


Member Data Documentation

float NL3D::ITravCameraScene::Bottom
 

Definition at line 92 of file trav_scene.h.

NLMISC::CVector NL3D::ITravCameraScene::CamLook
 

Definition at line 97 of file trav_scene.h.

NLMISC::CMatrix NL3D::ITravCameraScene::CamMatrix
 

Definition at line 94 of file trav_scene.h.

NLMISC::CVector NL3D::ITravCameraScene::CamPos
 

Definition at line 96 of file trav_scene.h.

float NL3D::ITravCameraScene::Far
 

Definition at line 92 of file trav_scene.h.

float NL3D::ITravCameraScene::Left
 

Definition at line 92 of file trav_scene.h.

float NL3D::ITravCameraScene::Near
 

Definition at line 92 of file trav_scene.h.

bool NL3D::ITravCameraScene::Perspective
 

Definition at line 93 of file trav_scene.h.

float NL3D::ITravCameraScene::Right
 

Definition at line 92 of file trav_scene.h.

float NL3D::ITravCameraScene::Top
 

Definition at line 92 of file trav_scene.h.

NLMISC::CMatrix NL3D::ITravCameraScene::ViewMatrix
 

Definition at line 95 of file trav_scene.h.


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