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

Public Member Functions

 PanoramicSphericalDisplay (double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image *intensityMap=0, const osg::Matrixd &projectorMatrix=osg::Matrixd())
 
 PanoramicSphericalDisplay (const PanoramicSphericalDisplay &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgViewer, PanoramicSphericalDisplay)
 
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::GeometrycreateParoramicSphericalDisplayDistortionMesh (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 by rendering main scene to a panoramic 2:1 texture and then doing distortion correction to present onto a spherical display.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void osgViewer::PanoramicSphericalDisplay::configure ( osgViewer::View &  view) const
virtual
osg::Geometry* osgViewer::PanoramicSphericalDisplay::createParoramicSphericalDisplayDistortionMesh ( 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::PanoramicSphericalDisplay::getCollar ( ) const
inline
const osg::Image* osgViewer::PanoramicSphericalDisplay::getIntensityMap ( ) const
inline
const osg::Matrixd& osgViewer::PanoramicSphericalDisplay::getProjectionMatrix ( ) const
inline
double osgViewer::PanoramicSphericalDisplay::getRadius ( ) const
inline
unsigned int osgViewer::PanoramicSphericalDisplay::getScreenNum ( ) const
inline
osgViewer::PanoramicSphericalDisplay::META_Object ( osgViewer  ,
PanoramicSphericalDisplay   
)
void osgViewer::PanoramicSphericalDisplay::setCollar ( double  r)
inline
void osgViewer::PanoramicSphericalDisplay::setIntensityMap ( osg::Image im)
inline
void osgViewer::PanoramicSphericalDisplay::setProjectionMatrix ( const osg::Matrixd m)
inline
void osgViewer::PanoramicSphericalDisplay::setRadius ( double  r)
inline
void osgViewer::PanoramicSphericalDisplay::setScreenNum ( unsigned int  n)
inline

Member Data Documentation

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

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