iso::visual::CameraTransformNode Class Reference

#include <iso_visual_camera_transform_node.h>

Inherits iso::visual::SceneTransformNode.

Inheritance diagram for iso::visual::CameraTransformNode:

Inheritance graph
[legend]
Collaboration diagram for iso::visual::CameraTransformNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CameraTransformNode (Camera *pCamera)
 CameraTransformNode (Camera *pCamera, SceneTransformProperty *pProperty)
 ~CameraTransformNode ()
const math::Matrix4< real > & viewMatrix () const
 return view matrix
const math::Matrix4< real > & projectionMatrix () const
 return projection matrix
ProjectionMode projectionMode () const
 return camera projection mode
void setProjectionMode (ProjectionMode pProjectionMode)
 set camera view mode
const ProjectionSettingsprojectionSettings () const
 return projection settings
void setProjectionSettings (const ProjectionSettings &pProjectionSettings)
 set projection settings
void setViewAngle (real pViewAngle)
 set view angle
void setAspectRatio (real pAspectRatio)
 set aspect ratio
void setLeftViewLimit (float pLeftViewLimit)
 set left view limit
void setRightViewLimit (float pRightViewLimit)
 set right view limit
void setBottomViewLimit (float pBottomViewLimit)
 set bottom view limit
void setTopViewLimit (float pTopViewLimit)
 set top view limit
void setNearViewLimit (float pNearViewLimit)
 set near view limit
void setFarViewLimit (float pFarViewLimit)
 set far view limit
void lookAt (const math::Vector3< real > &pTargetPos)
 point camera at target position
math::Matrix4< real > & glProjectionMatrix ()
 return opengl style projection matrix
const math::Matrix4< real > & glProjectionMatrix () const
 return opengl style projection matrix
math::Matrix4< real > & glViewMatrix ()
 return opengl style view matrix
const math::Matrix4< real > & glViewMatrix () const
 return opengl style view matrix
void updateProjectionMatrix ()

Protected Attributes

math::Matrix4< realmProjectionMatrix
math::Matrix4< realmGLProjectionMatrix
 projection matrix opengl projection matrix
ProjectionSettings mProjectionSettings
ProjectionMode mProjectionMode
bool mFixedAspectRatio
 projection mode (perspective or orthographic)

Constructor & Destructor Documentation

CameraTransformNode::CameraTransformNode ( Camera pCamera  ) 

CameraTransformNode::CameraTransformNode ( Camera pCamera,
SceneTransformProperty pProperty 
)

CameraTransformNode::~CameraTransformNode (  ) 


Member Function Documentation

const Matrix4< visual::real > & CameraTransformNode::viewMatrix (  )  const

return view matrix

const Matrix4< visual::real > & CameraTransformNode::projectionMatrix (  )  const

return projection matrix

ProjectionMode CameraTransformNode::projectionMode (  )  const

return camera projection mode

void CameraTransformNode::setProjectionMode ( ProjectionMode  pProjectionMode  ) 

set camera view mode

Parameters:
pProjectionMode view mode

const ProjectionSettings & CameraTransformNode::projectionSettings (  )  const

return projection settings

Returns:
projection settings

void CameraTransformNode::setProjectionSettings ( const ProjectionSettings pProjectionSettings  ) 

set projection settings

Parameters:
pProjectionSettings projection settings

void CameraTransformNode::setViewAngle ( real  pViewAngle  ) 

set view angle

Parameters:
pViewAngle view angle

void CameraTransformNode::setAspectRatio ( real  pAspectRatio  ) 

set aspect ratio

Parameters:
pAspectRatio aspect ratio
set camera aspect length
this value corresponds to the x/y aspect ratio
the function has no effect if camera view mode is orthographic

void CameraTransformNode::setLeftViewLimit ( float  pLeftViewLimit  ) 

set left view limit

Parameters:
pLeftViewLimit left view limit
set camera left view limit
this value corresponds to left clipping plane
the function has no effect if camera view mode is perspective

void CameraTransformNode::setRightViewLimit ( float  pRightViewLimit  ) 

set right view limit

Parameters:
pLeftViewLimit right view limit
set camera right view limit
this value corresponds to right clipping plane
the function has no effect if camera view mode is perspective

void CameraTransformNode::setBottomViewLimit ( float  pBottomViewLimit  ) 

set bottom view limit

Parameters:
pLeftViewLimit bottom view limit
set camera bottom view limit
this value corresponds to bottom clipping plane
the function has no effect if camera view mode is perspective

void CameraTransformNode::setTopViewLimit ( float  pTopViewLimit  ) 

set top view limit

Parameters:
pLeftViewLimit top view limit
set camera top view limit
this value corresponds to top clipping plane
the function has no effect if camera view mode is perspective

void CameraTransformNode::setNearViewLimit ( float  pNearViewLimit  ) 

set near view limit

Parameters:
pNearViewLimit near view limit
set camera near view limit
this value corresponds to near clipping plane

void CameraTransformNode::setFarViewLimit ( float  pFarViewLimit  ) 

set far view limit

Parameters:
pFarViewLimit far view limit
set camera far view limit
this value corresponds to far clipping plane

void CameraTransformNode::lookAt ( const math::Vector3< real > &  pTargetPos  ) 

point camera at target position

Parameters:
pTargetPos target position

math::Matrix4< visual::real > & CameraTransformNode::glProjectionMatrix (  ) 

return opengl style projection matrix

Parameters:
returns opengl style projection matrix

const math::Matrix4< visual::real > & CameraTransformNode::glProjectionMatrix (  )  const

return opengl style projection matrix

Parameters:
returns opengl style projection matrix

math::Matrix4< visual::real > & CameraTransformNode::glViewMatrix (  ) 

return opengl style view matrix

Parameters:
returns opengl style view matrix

const math::Matrix4< visual::real > & CameraTransformNode::glViewMatrix (  )  const

return opengl style view matrix

Parameters:
returns opengl style view matrix

void CameraTransformNode::updateProjectionMatrix (  ) 


Member Data Documentation

math::Matrix4<real> iso::visual::CameraTransformNode::mProjectionMatrix [protected]

math::Matrix4<real> iso::visual::CameraTransformNode::mGLProjectionMatrix [protected]

projection matrix opengl projection matrix

ProjectionSettings iso::visual::CameraTransformNode::mProjectionSettings [protected]

ProjectionMode iso::visual::CameraTransformNode::mProjectionMode [protected]

bool iso::visual::CameraTransformNode::mFixedAspectRatio [protected]

projection mode (perspective or orthographic)


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:23:42 2011 for iso visual by  doxygen 1.5.1