14#ifndef OSGVIEWER_SphericalDisplay
15#define OSGVIEWER_SphericalDisplay 1
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;
105 osg::Matrixd _projectorMatrix;
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);
119 virtual void configure(osgViewer::View& view)
const;
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);
174 virtual void configure(osgViewer::View& view)
const;
#define META_Object(library, name)
META_Object macro define the standard clone, isSameKindAs and className methods.
Definition Object:46
Vec3f Vec3
Definition Vec3:21
T * get(unsigned int contextID)
Definition ContextData:152
Matrixd Matrix
Definition Matrix:27
The osgViewer library provides high level viewer functionality designed to make it easier to write a ...
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Image class for encapsulating the storage texture image data.
Definition Image:179
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
SphericalDisplay(const SphericalDisplay &rhs, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition SphericalDisplay:33
double getCollar() const
Definition SphericalDisplay:49
osg::Matrixd _projectorMatrix
Definition SphericalDisplay:68
const osg::Image * getIntensityMap() const
Definition SphericalDisplay:55
void setScreenNum(unsigned int n)
Definition SphericalDisplay:51
osg::ref_ptr< osg::Image > _intensityMap
Definition SphericalDisplay:67
unsigned int _screenNum
Definition SphericalDisplay:66
META_Object(osgViewer, SphericalDisplay)
virtual void configure(osgViewer::View &view) const
configure method that is overridden by Config subclasses.
void setCollar(double r)
Definition SphericalDisplay:48
void setIntensityMap(osg::Image *im)
Definition SphericalDisplay:54
void setRadius(double r)
Definition SphericalDisplay:45
double getRadius() const
Definition SphericalDisplay:46
SphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image *intensityMap=0, const osg::Matrixd &projectorMatrix=osg::Matrixd())
Definition SphericalDisplay:26
osg::Geometry * 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
const osg::Matrixd & getProjectionMatrix() const
Definition SphericalDisplay:58
double _radius
Definition SphericalDisplay:64
unsigned int getScreenNum() const
Definition SphericalDisplay:52
double _collar
Definition SphericalDisplay:65
void setProjectionMatrix(const osg::Matrixd &m)
Definition SphericalDisplay:57
ViewConfig()
Definition View:41
View holds a single view on a scene, this view may be composed of one or more slave cameras.
Definition View:76
#define OSGVIEWER_EXPORT
Definition Export:40