openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgViewer::SphericalDisplay Class Reference
Inheritance diagram for osgViewer::SphericalDisplay:

Public Member Functions

 SphericalDisplay (double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image *intensityMap=0, const osg::Matrixd &projectorMatrix=osg::Matrixd())
 
 SphericalDisplay (const SphericalDisplay &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgViewer, SphericalDisplay)
 
virtual void configure (osgViewer::View &view) const
 
void setRadius (double r)
 
double getRadius () const
 
void setCollar (double r)
 
double getCollar () const
 
void setScreenNum (unsigned int n)
 
unsigned int getScreenNum () const
 
void setIntensityMap (osg::Image *im)
 
const osg::ImagegetIntensityMap () const
 
void setProjectionMatrix (const osg::Matrixd &m)
 
const osg::MatrixdgetProjectionMatrix () const
 

Protected Member Functions

osg::Geometrycreate3DSphericalDisplayDistortionMesh (const osg::Vec3 &origin, const osg::Vec3 &widthVector, const osg::Vec3 &heightVector, double sphere_radius, double collar_radius, osg::Image *intensityMap, const osg::Matrix &projectorMatrix) const
 

Protected Attributes

double _radius
 
double _collar
 
unsigned int _screenNum
 
osg::ref_ptr< osg::Image_intensityMap
 
osg::Matrixd _projectorMatrix
 

Detailed Description

spherical display using 6 slave cameras rendering the 6 sides of a cube map, and 7th camera doing distortion correction to present on a spherical display.

Constructor & Destructor Documentation

osgViewer::SphericalDisplay::SphericalDisplay ( double  radius = 1.0,
double  collar = 0.45,
unsigned int  screenNum = 0,
osg::Image intensityMap = 0,
const osg::Matrixd projectorMatrix = osg::Matrixd() 
)
inline
osgViewer::SphericalDisplay::SphericalDisplay ( const SphericalDisplay rhs,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
inline

Member Function Documentation

virtual void osgViewer::SphericalDisplay::configure ( osgViewer::View &  view) const
virtual
osg::Geometry* osgViewer::SphericalDisplay::create3DSphericalDisplayDistortionMesh ( const osg::Vec3 origin,
const osg::Vec3 widthVector,
const osg::Vec3 heightVector,
double  sphere_radius,
double  collar_radius,
osg::Image intensityMap,
const osg::Matrix projectorMatrix 
) const
protected
double osgViewer::SphericalDisplay::getCollar ( ) const
inline
const osg::Image* osgViewer::SphericalDisplay::getIntensityMap ( ) const
inline
const osg::Matrixd& osgViewer::SphericalDisplay::getProjectionMatrix ( ) const
inline
double osgViewer::SphericalDisplay::getRadius ( ) const
inline
unsigned int osgViewer::SphericalDisplay::getScreenNum ( ) const
inline
osgViewer::SphericalDisplay::META_Object ( osgViewer  ,
SphericalDisplay   
)
void osgViewer::SphericalDisplay::setCollar ( double  r)
inline
void osgViewer::SphericalDisplay::setIntensityMap ( osg::Image im)
inline
void osgViewer::SphericalDisplay::setProjectionMatrix ( const osg::Matrixd m)
inline
void osgViewer::SphericalDisplay::setRadius ( double  r)
inline
void osgViewer::SphericalDisplay::setScreenNum ( unsigned int  n)
inline

Member Data Documentation

double osgViewer::SphericalDisplay::_collar
protected
osg::ref_ptr<osg::Image> osgViewer::SphericalDisplay::_intensityMap
protected
osg::Matrixd osgViewer::SphericalDisplay::_projectorMatrix
protected
double osgViewer::SphericalDisplay::_radius
protected
unsigned int osgViewer::SphericalDisplay::_screenNum
protected

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