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

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
 
- Public Member Functions inherited from osgViewer::ViewConfig
 ViewConfig ()
 
 ViewConfig (const ViewConfig &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgViewer, ViewConfig)
 
virtual osg::DisplaySettingsgetActiveDisplaySetting (osgViewer::View &view) const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (const CopyOp &) const =0
 
virtual bool isSameKindAs (const Object *) const
 
virtual const char * libraryName () const =0
 
virtual const char * className () const =0
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject bool getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) 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 Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

double _radius
 
double _collar
 
unsigned int _screenNum
 
osg::ref_ptr< osg::Image_intensityMap
 
osg::Matrixd _projectorMatrix
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

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

§ SphericalDisplay() [1/2]

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

§ SphericalDisplay() [2/2]

osgViewer::SphericalDisplay::SphericalDisplay ( const SphericalDisplay rhs,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
inline

Member Function Documentation

§ configure()

virtual void osgViewer::SphericalDisplay::configure ( osgViewer::View ) const
virtual

configure method that is overridden by Config subclasses.

Reimplemented from osgViewer::ViewConfig.

§ create3DSphericalDisplayDistortionMesh()

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

§ getCollar()

double osgViewer::SphericalDisplay::getCollar ( ) const
inline

§ getIntensityMap()

const osg::Image* osgViewer::SphericalDisplay::getIntensityMap ( ) const
inline

§ getProjectionMatrix()

const osg::Matrixd& osgViewer::SphericalDisplay::getProjectionMatrix ( ) const
inline

§ getRadius()

double osgViewer::SphericalDisplay::getRadius ( ) const
inline

§ getScreenNum()

unsigned int osgViewer::SphericalDisplay::getScreenNum ( ) const
inline

§ META_Object()

osgViewer::SphericalDisplay::META_Object ( osgViewer  ,
SphericalDisplay   
)

§ setCollar()

void osgViewer::SphericalDisplay::setCollar ( double  r)
inline

§ setIntensityMap()

void osgViewer::SphericalDisplay::setIntensityMap ( osg::Image im)
inline

§ setProjectionMatrix()

void osgViewer::SphericalDisplay::setProjectionMatrix ( const osg::Matrixd m)
inline

§ setRadius()

void osgViewer::SphericalDisplay::setRadius ( double  r)
inline

§ setScreenNum()

void osgViewer::SphericalDisplay::setScreenNum ( unsigned int  n)
inline

Member Data Documentation

§ _collar

double osgViewer::SphericalDisplay::_collar
protected

§ _intensityMap

osg::ref_ptr<osg::Image> osgViewer::SphericalDisplay::_intensityMap
protected

§ _projectorMatrix

osg::Matrixd osgViewer::SphericalDisplay::_projectorMatrix
protected

§ _radius

double osgViewer::SphericalDisplay::_radius
protected

§ _screenNum

unsigned int osgViewer::SphericalDisplay::_screenNum
protected

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