osgPPU::UnitCameraAttachmentBypass Class Reference

Bypass a specified camera attacment into the pipeline. More...

Inheritance diagram for osgPPU::UnitCameraAttachmentBypass:

osgPPU::UnitBypass osgPPU::Unit osgPPU::UnitDepthbufferBypass

Public Member Functions

 META_Node (osgPPU, UnitCameraAttachmentBypass)
 UnitCameraAttachmentBypass (const UnitCameraAttachmentBypass &u, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
virtual void init ()
void setBufferComponent (osg::Camera::BufferComponent c)
const osg::Camera::BufferComponent getBufferComponent () const

Protected Member Functions

virtual void setupInputsFromParents ()

Protected Attributes

osg::Camera::BufferComponent _bufferComponent

Detailed Description

Bypass a specified camera attacment into the pipeline.

This unit do not perform any rendering, however it do bypass any camera attachment of camera of the parent processor or unit to its output texture. Per default the unit do bypass the color buffer attachment.

This unit has to be placed directly under the processor, so that the unit get access to the processor's attachments.

This unit can also bypass a camera attachment of UnitCamera parent unit. For this purpose the unit has to be placed directly under UnitCamera. Camera output will then be bypassed.


Member Function Documentation

virtual void osgPPU::UnitCameraAttachmentBypass::init (  )  [virtual]

Initialze the unit. This method should be overwritten by the derived classes to support non-standard initialization routines. If an unit is marked as dirty this method will be used to resetup the unit. Hence do provide a "reinitialable"-code here ;-)

Reimplemented from osgPPU::Unit.

void osgPPU::UnitCameraAttachmentBypass::setBufferComponent ( osg::Camera::BufferComponent  c  ) 

Setup the buffer component which has to be bypassed.

const osg::Camera::BufferComponent osgPPU::UnitCameraAttachmentBypass::getBufferComponent (  )  const

Get current buffer component

virtual void osgPPU::UnitCameraAttachmentBypass::setupInputsFromParents (  )  [protected, virtual]

Setup the input textures based on the parents. Each unit has to setup its input textures properly. This method do scan for all parents up to the Processor and use the output textures of that parents units and the processor as input to this unit. Call this method from derived units to setup inputs properly.

Reimplemented from osgPPU::UnitBypass.


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

Back to Homepage of osgPPU

Copyright (C) 2008 by Art Tevs (LGPL)