osgPPU::UnitCamera Class Reference

Put camera into unit pipeline. More...

Inheritance diagram for osgPPU::UnitCamera:

osgPPU::UnitBypass osgPPU::Unit

Public Member Functions

 META_Node (osgPPU, UnitCamera)
 UnitCamera (const UnitCamera &u, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
void setCamera (osg::Camera *camera, bool addAsChild=false)
osg::Camera * getCamera ()
 Get camera object used.

Protected Attributes

osg::ref_ptr< osg::Camera > mCamera
bool mUseCameraAsChild

Detailed Description

Put camera into unit pipeline.

This unit is very useful when you want to include camera directly into the unit pipeline. Camera is attached to this unit and its output can be accessed through UnitCameraAttachmentBypass unit. This allows direct including of multiple camera's outputs into the unit pipeline.


Member Function Documentation

void osgPPU::UnitCamera::setCamera ( osg::Camera *  camera,
bool  addAsChild = false 
)

Set camera which output is to be included into the pipeline.

Parameters:
camera Camera pointer
addAsChild If true camera will be added as child of this unit, which give the possibility to traversals also on the camera object without need of including the camera somehwere else in the scene graph.


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

Back to Homepage of osgPPU

Copyright (C) 2008 by Art Tevs (LGPL)