# 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:

NL3D::ITravScene NL3D::ITrav NLMISC::CRefCount NL3D::CClipTrav NL3D::CLoadBalancingTrav NL3D::CRenderTrav 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 95 of file trav_scene.h.


Constructor & Destructor Documentation

NL3D::ITravCameraScene::ITravCameraScene   [inline]
 

Constructor.

Definition at line 137 of file trav_scene.h.

References NLMISC::CMatrix::identity, NLMISC::CVector::Null, and setFrustum.


Member Function Documentation

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

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

Definition at line 130 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 125 of file trav_scene.h.

References height, setFrustum, and width.

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 114 of file trav_scene.h.

References Bottom, Far, Left, Near, Perspective, Right, and Top.

Referenced by ITravCameraScene, and setFrustum.

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

update the dependent information.

Definition at line 150 of file trav_scene.h.

References NLMISC::CMatrix::getPos, NLMISC::CMatrix::inverted, NLMISC::CVector::J, and NLMISC::CMatrix::mulVector.


Member Data Documentation

float NL3D::ITravCameraScene::Bottom
 

Definition at line 103 of file trav_scene.h.

Referenced by setFrustum, NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.

NLMISC::CVector NL3D::ITravCameraScene::CamLook
 

Definition at line 108 of file trav_scene.h.

NLMISC::CMatrix NL3D::ITravCameraScene::CamMatrix
 

Definition at line 105 of file trav_scene.h.

NLMISC::CVector NL3D::ITravCameraScene::CamPos
 

Definition at line 107 of file trav_scene.h.

Referenced by NL3D::CRenderTrav::beginVPLightSetup, NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.

float NL3D::ITravCameraScene::Far
 

Definition at line 103 of file trav_scene.h.

Referenced by setFrustum, NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.

float NL3D::ITravCameraScene::Left
 

Definition at line 103 of file trav_scene.h.

Referenced by setFrustum, NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.

float NL3D::ITravCameraScene::Near
 

Definition at line 103 of file trav_scene.h.

Referenced by setFrustum, NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.

bool NL3D::ITravCameraScene::Perspective
 

Definition at line 104 of file trav_scene.h.

Referenced by setFrustum, and NL3D::CRenderTrav::traverse.

float NL3D::ITravCameraScene::Right
 

Definition at line 103 of file trav_scene.h.

Referenced by setFrustum, NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.

float NL3D::ITravCameraScene::Top
 

Definition at line 103 of file trav_scene.h.

Referenced by setFrustum, NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.

NLMISC::CMatrix NL3D::ITravCameraScene::ViewMatrix
 

Definition at line 106 of file trav_scene.h.

Referenced by NL3D::CRenderTrav::traverse, and NL3D::CClipTrav::traverse.


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