Gizmo3D

gzGenericCamera Class Reference

#include <gzCamera.h>

Inheritance diagram for gzGenericCamera:

gzCamera gzObject gzNameInterface gzMutex gzUserData gzReference gzSerializeData gzSharedMemory gzTypeInterface List of all members.

Public Member Functions

 gzGenericCamera (const gzString &name=GZ_EMPTY_STRING)
 Default constructor for a generic camera.
virtual ~gzGenericCamera ()
 Destructor.
 GZ_DECLARE_TYPE_INTERFACE_EXPORT (1)
virtual gzReferenceclone () const
 Clone interface.
virtual gzVoid render (gzContext *context, gzULong size_x, gzULong size_y, gzULong screen_width)
 Utility methods used by external renderers.
virtual gzBool isVisible (gzContext *context, gzNode *node)
 Utility methods used by external renderers.
virtual gzBool isBeyondFarPlane (gzContext *context, gzNode *node)
 Utility methods used by external renderers.
gzVoid setProjectionTransform (const gzMatrix4 &projMat)
 Sets projMat as projection transform for the camera.
virtual gzMatrix4 getProjectionTransform () const
 Returns the camera projection transform.

Protected Attributes

gzMatrix4 m_projectionMatrix

Detailed Description

Definition at line 365 of file gzCamera.h.


Constructor & Destructor Documentation

gzGenericCamera::gzGenericCamera const gzString name = GZ_EMPTY_STRING  ) 
 

Default constructor for a generic camera.

Define your own projection method for the camera.

If is possible to set a name for the generic camera.

virtual gzGenericCamera::~gzGenericCamera  )  [inline, virtual]
 

Destructor.

Definition at line 378 of file gzCamera.h.


Member Function Documentation

virtual gzReference* gzGenericCamera::clone  )  const [virtual]
 

Clone interface.

Reimplemented from gzObject.

virtual gzMatrix4 gzGenericCamera::getProjectionTransform  )  const [virtual]
 

Returns the camera projection transform.

The projection transform transforms all coordinates from world space to clip space.

Implements gzCamera.

gzGenericCamera::GZ_DECLARE_TYPE_INTERFACE_EXPORT  ) 
 

Reimplemented from gzCamera.

virtual gzBool gzGenericCamera::isBeyondFarPlane gzContext context,
gzNode node
[virtual]
 

Utility methods used by external renderers.

Controls if the node is further away than the far plane.

Returns true if the node is behind the far plane otherwise false.

Implements gzCamera.

virtual gzBool gzGenericCamera::isVisible gzContext context,
gzNode node
[virtual]
 

Utility methods used by external renderers.

Implements gzCamera.

virtual gzVoid gzGenericCamera::render gzContext context,
gzULong  size_x,
gzULong  size_y,
gzULong  screen_width
[virtual]
 

Utility methods used by external renderers.

Reimplemented from gzCamera.

gzVoid gzGenericCamera::setProjectionTransform const gzMatrix4 projMat  ) 
 

Sets projMat as projection transform for the camera.


Member Data Documentation

gzMatrix4 gzGenericCamera::m_projectionMatrix [protected]
 

Definition at line 411 of file gzCamera.h.


The documentation for this class was generated from the following file:
Documentation for Gizmo3D generated at Wed Feb 20 11:54:17 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond