Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::Camera Class Reference
[OpenSG Cameras]

Camera base class. More...

#include <OSGCamera.h>

Inheritance diagram for osg::Camera:

Inheritance graph
[legend]
Collaboration diagram for osg::Camera:

Collaboration graph
[legend]
List of all members.

Public Methods

transformation
virtual void changed (BitVector whichField, UInt32 origin)
 react to field changes

your_category
virtual void setup (DrawActionBase *action, const Viewport &port)
 setup the GL for rendering and tell the Action what it needs to know

virtual void setupProjection (DrawActionBase *action, const Viewport &port)
 setup the GL for rendering and tell the Action what it needs to know

virtual void draw (DrawAction *action, const Viewport &port)
 draw the camera's geometry (if any).

virtual void getProjection (Matrix &result, UInt32 width, UInt32 height)
 get the separate elements needed for rendering

virtual void getProjectionTranslation (Matrix &result, UInt32 width, UInt32 height)
 setup the GL for rendering and tell the Action what it needs to know

virtual void getViewing (Matrix &result, UInt32 width, UInt32 height)
 setup the GL for rendering and tell the Action what it needs to know

virtual void getFrustum (FrustumVolume &result, const Viewport &port)
 setup the GL for rendering and tell the Action what it needs to know

bool calcViewRay (Line &line, Int32 x, Int32 y, const Viewport &port)
 setup the GL for rendering and tell the Action what it needs to know

dump
virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
 output the instance for debug purposes


Static Public Methods

Class Get
const char * getClassname (void)

Protected Methods

Constructors
 Camera (void)
 Constructor.

 Camera (const Camera &source)
 Copy Constructor.

Destructors
virtual ~Camera (void)
 Destructor.


Private Types

typedef CameraBase Inherited

Private Methods

void operator= (const Camera &source)

Static Private Methods

void initMethod (void)
 initialize the static features of the class, e.g. action callbacks


Static Private Attributes

char cvsid [] = "@(#)$Id: $"

Friends

class FieldContainer
class CameraBase

Detailed Description

Camera base class.

The Camera base class.


Member Typedef Documentation

typedef CameraBase osg::Camera::Inherited [private]
 

Reimplemented from osg::CameraBase.

Reimplemented in osg::CameraDecorator, osg::CameraDecoratorBase, osg::MatrixCamera, osg::MatrixCameraBase, osg::PerspectiveCamera, osg::PerspectiveCameraBase, osg::ProjectionCameraDecorator, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecorator, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecorator, osg::StereoCameraDecoratorBase, osg::TileCameraDecorator, and osg::TileCameraDecoratorBase.


Constructor & Destructor Documentation

Camera::Camera void    [protected]
 

Constructor.

Camera::Camera const Camera &    source [protected]
 

Copy Constructor.

Camera::~Camera void    [protected, virtual]
 

Destructor.


Member Function Documentation

const char* osg::Camera::getClassname void    [inline, static]
 

Reimplemented in osg::MatrixCamera, osg::PerspectiveCamera, and osg::TileCameraDecorator.

void Camera::changed BitVector    whichField,
UInt32    origin
[virtual]
 

react to field changes

Reimplemented from osg::AttachmentContainer.

Reimplemented in osg::CameraDecorator, osg::MatrixCamera, osg::PerspectiveCamera, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, osg::StereoCameraDecorator, and osg::TileCameraDecorator.

void Camera::setup DrawActionBase *    action,
const Viewport   port
[virtual]
 

setup the GL for rendering and tell the Action what it needs to know

void Camera::setupProjection DrawActionBase *    action,
const Viewport   port
[virtual]
 

setup the GL for rendering and tell the Action what it needs to know

void Camera::draw DrawAction *    action,
const Viewport   port
[virtual]
 

draw the camera's geometry (if any).

Usually there is none.

Reimplemented in osg::CameraDecorator, osg::MatrixCamera, and osg::PerspectiveCamera.

void Camera::getProjection Matrix   result,
UInt32    width,
UInt32    height
[virtual]
 

get the separate elements needed for rendering

Reimplemented in osg::CameraDecorator, osg::MatrixCamera, osg::PerspectiveCamera, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, and osg::TileCameraDecorator.

void Camera::getProjectionTranslation Matrix   result,
UInt32    width,
UInt32    height
[virtual]
 

setup the GL for rendering and tell the Action what it needs to know

Reimplemented in osg::CameraDecorator, and osg::ProjectionCameraDecorator.

void Camera::getViewing Matrix   result,
UInt32    width,
UInt32    height
[virtual]
 

setup the GL for rendering and tell the Action what it needs to know

Reimplemented in osg::CameraDecorator, osg::MatrixCamera, and osg::ProjectionCameraDecorator.

void Camera::getFrustum FrustumVolume   result,
const Viewport   port
[virtual]
 

setup the GL for rendering and tell the Action what it needs to know

bool Camera::calcViewRay Line   line,
Int32    x,
Int32    y,
const Viewport   port
 

setup the GL for rendering and tell the Action what it needs to know

void Camera::dump UInt32    uiIndent = 0,
const BitVector    bvFlags = 0
const [virtual]
 

output the instance for debug purposes

Reimplemented from osg::AttachmentContainer.

Reimplemented in osg::CameraDecorator, osg::MatrixCamera, osg::PerspectiveCamera, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, osg::StereoCameraDecorator, and osg::TileCameraDecorator.

void Camera::initMethod void    [static, private]
 

initialize the static features of the class, e.g. action callbacks

Reimplemented in osg::CameraDecorator, osg::MatrixCamera, osg::PerspectiveCamera, osg::ProjectionCameraDecorator, osg::ShearedStereoCameraDecorator, osg::StereoCameraDecorator, and osg::TileCameraDecorator.

void osg::Camera::operator= const Camera &    source [private]
 


Friends And Related Function Documentation

friend class FieldContainer [friend]
 

Reimplemented from osg::CameraBase.

Reimplemented in osg::CameraDecorator, osg::CameraDecoratorBase, osg::MatrixCamera, osg::MatrixCameraBase, osg::PerspectiveCamera, osg::PerspectiveCameraBase, osg::ProjectionCameraDecorator, osg::ProjectionCameraDecoratorBase, osg::ShearedStereoCameraDecorator, osg::ShearedStereoCameraDecoratorBase, osg::StereoCameraDecorator, osg::StereoCameraDecoratorBase, osg::TileCameraDecorator, and osg::TileCameraDecoratorBase.

friend class CameraBase [friend]
 


Member Data Documentation

char Camera::cvsid = "@(#)$Id: $" [static, private]
 

Reimplemented in osg::MatrixCamera, osg::PerspectiveCamera, and osg::TileCameraDecorator.


The documentation for this class was generated from the following files:
Generated on Wed Jul 3 16:30:02 2002 for OpenSG by doxygen1.2.16