#ifndef OSGVIEWER_Leia #define OSGVIEWER_Leia 1 #include /** 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.*/ class Leia : public osgViewer::ViewConfig { public: Leia(unsigned int screenNum=0): _screenNum(screenNum) {} Leia(const Leia& rhs, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): ViewConfig(rhs,copyop), _screenNum(rhs._screenNum) {} META_Object(osgViewer, Leia); virtual void configure(osgViewer::View& view) const; void setScreenNum(unsigned int n) { _screenNum = n; } unsigned int getScreenNum() const { return _screenNum; } protected: osg::ref_ptr createLeiaMesh(const osg::Vec3& origin, const osg::Vec3& widthVector, const osg::Vec3& heightVector) const; unsigned int _screenNum; }; #endif