SPIN Framework
Public Types | Public Member Functions | Public Attributes

spin::CompositeViewer Class Reference

List of all members.

Public Types

enum  ppuEffect { noEffect = 0, dofEffect, ssaoEffect }

Public Member Functions

 CompositeViewer (osg::ArgumentParser &args)
 Default construcotr.
osgPPU::Processor * getProcessor ()
 Get the ppu processor.
osg::Texture * createRenderTexture (int tex_width, int tex_height, bool depth)
 Create camera resulting texture.
void setupCamera (osg::Viewport *vp)
 Setup the camera to do the render to texture.
void viewerInit ()
 Just setup some stuff.
void initializePPU (unsigned int pEffect=noEffect)
 Setup osgppu for rendering.
void frame (double f=USE_REFERENCE_TIME)
 Update the frames.
void updateSpaceNavigator ()
 Poll the SpaceNavigator for updates and send velocity/spin.
void setVelocityScalars (osg::Vec3 v)
void setSpinScalars (osg::Vec3 v)

Public Attributes

osg::ref_ptr< DoFRenderingdofPPU_
osg::ref_ptr< SSAORenderingssaoPPU_

Member Function Documentation

void spin::CompositeViewer::setSpinScalars ( osg::Vec3  v) [inline]

Scale the spin effect of navigational devices (for example, disallow roll and allow only pitch and yaw by setting the scale to 1,0,1)

void spin::CompositeViewer::setVelocityScalars ( osg::Vec3  v) [inline]

Scale the velocity effect of navigational devices (for example, scale X and Z axes to zero so that only forward motion is allowed).


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