14 #ifndef OSGVIEWER_SphericalDisplay
15 #define OSGVIEWER_SphericalDisplay 1
17 #include <osgViewer/View>
29 _screenNum(screenNum),
30 _intensityMap(intensityMap),
31 _projectorMatrix(projectorMatrix) {}
37 _screenNum(rhs._screenNum),
38 _intensityMap(rhs._intensityMap),
39 _projectorMatrix(rhs._projectorMatrix) {}
77 ViewForPanoramicSphericalDisplay(
double radius=1.0,
double collar=0.45,
unsigned int screenNum=0,
osg::Image* intensityMap=0,
const osg::Matrixd& projectorMatrix =
osg::Matrixd());
84 void setRadius(
double r) { _radius = r; }
85 double getRadius()
const {
return _radius; }
87 void setCollar(
double r) { _collar = r; }
88 double getCollar()
const {
return _collar; }
90 void setScreenNum(
unsigned int n) { _screenNum = n; }
91 unsigned int getScreenNum()
const {
return _screenNum; }
93 void setIntensityMap(
osg::Image* im) { _intensityMap = im; }
94 const osg::Image* getIntensityMap()
const {
return _intensityMap; }
96 void setProjectionMatrix(
const osg::Matrixd& m) { _projectorMatrix = m; }
97 const osg::Matrixd& getProjectionMatrix()
const {
return _projectorMatrix; }
103 unsigned int _screenNum;
104 osg::ref_ref<osg::Image> _intensityMap;
113 ViewForWoWVxDisplay();
114 ViewForWoWVxDisplay(
unsigned int screenNum,
unsigned char wow_content,
unsigned char wow_factor,
unsigned char wow_offset,
float wow_disparity_Zd,
float wow_disparity_vz,
float wow_disparity_M,
float wow_disparity_C);
121 void setScreenNum(
unsigned int n) { _screenNum = n; }
122 unsigned int getScreenNum()
const {
return _screenNum; }
124 void set(
unsigned char c) { _wow_content = c; }
125 double get()
const {
return _wow_content; }
127 void set(
unsigned char c) { _wow_factor = c; }
128 double get()
const {
return _wow_factor; }
130 void set(
unsigned char c) { _wow_offset = c; }
131 double get()
const {
return _wow_offset; }
133 void setWowDisparityZD(
float c) { _wow_disparity_Zd = c; }
134 float getWowDisparityZD()
const {
return _wow_disparity_Zd; }
136 void setWowDisparityVZ(
float c) { _wow_disparity_vz = c; }
137 float getWowDisparityVZ()
const {
return _wow_disparity_vz; }
139 void setWowDisparityM(
float c) { _wow_disparity_M = c; }
140 float getWowDisparityM()
const {
return _wow_disparity_M; }
142 void setWowDisparityC(
float c) { _wow_disparity_C = c; }
143 float getWowDisparityC()
const {
return _wow_disparity_C; }
147 unsigned int _screenNum;
148 unsigned char _wow_content;
149 unsigned char _wow_factor;
150 unsigned char _wow_offset;
151 float _wow_disparity_Zd;
152 float _wow_disparity_vz;
153 float _wow_disparity_M;
154 float _wow_disparity_C;
162 DepthPartition(DepthPartitionSettings* dsp=0);
168 void setDepthPartionSettings(DepthPartitionSettings* dsp)
const { _dps = dps; }
169 const DepthPartitionSettings* getDepthPartionSettings()
const {
return _dps; }
172 bool setUpDepthPartitionForCamera(
osg::Camera* cameraToPartition, DepthPartitionSettings* dps=0);
SphericalDisplay(const SphericalDisplay &rhs, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void setScreenNum(unsigned int n)
void setIntensityMap(osg::Image *im)
void setProjectionMatrix(const osg::Matrixd &m)
SphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image *intensityMap=0, const osg::Matrixd &projectorMatrix=osg::Matrixd())
osg::ref_ptr< osg::Image > _intensityMap
#define META_Object(library, name)
const osg::Matrixd & getProjectionMatrix() const
const osg::Image * getIntensityMap() const
unsigned int getScreenNum() const
osg::Matrixd _projectorMatrix