24 #include <util/coExport.h>
26 #include <osg/ref_ptr>
28 #include <osg/Multisample>
29 #include <osg/Texture2D>
30 #include <osgViewer/GraphicsWindow>
31 #include <osgUtil/SceneView>
36 class DisplaySettings;
37 class GraphicsContext;
69 ,
name(
"UninitializedScreen")
88 osg::DisplaySettings *
ds;
97 :
name(
"UninitializedChannel")
141 osg::ref_ptr<osgViewer::GraphicsWindow>
window;
163 ,
name(
"UninitializedWindow")
264 MonoViews monoView()
const;
285 int numScreens()
const;
286 int numChannels()
const;
288 int numViewports()
const;
289 int numBlendingTextures()
const;
290 int numWindows()
const;
291 int numPipes()
const;
292 int lockToCPU()
const;
295 float getSceneSize()
const;
297 int stereoMode()
const;
298 static int parseStereoMode(
const char *modeName,
bool *stereo=NULL);
299 static bool requiresTwoViewpoints(
int stereomode);
301 bool haveFlatDisplay()
const;
304 bool mouseNav()
const;
307 bool mouseTracking()
const;
310 bool has6DoFInput()
const;
313 bool useWiiMote()
const;
315 bool useWiiNavigationVisenso()
const;
318 bool isMenuModeOn()
const;
320 bool colorSceneInMenuMode()
const;
336 bool debugLevel(
int level)
const;
339 int getDebugLevel()
const;
342 void setDebugLevel(
int level);
345 bool stereoState()
const;
347 float stereoSeparation()
const;
350 int numStencilBits()
const;
353 float worldAngle()
const;
359 void setFrozen(
bool state);
362 bool orthographic()
const;
365 void setOrthographic(
bool state);
368 bool useDisplayLists()
const;
371 bool useVBOs()
const;
374 float nearClip()
const;
377 float farClip()
const;
380 float getLODScale()
const;
381 void setLODScale(
float);
389 return multisampleInvert;
393 return multisampleCoverage;
397 return multisampleSamples;
401 return multisampleSampleBuffers;
405 return multisampleMode;
408 bool stencil()
const;
410 void setFrameRate(
float fr);
411 float frameRate()
const;
413 bool continuousRendering()
const;
430 return m_useVirtualGL;
435 if (nearC > 0 && farC > 0)
461 bool m_useDisplayLists;
476 float m_stereoSeparation;
480 bool m_passiveStereo;
490 int multisampleSamples;
491 int multisampleSampleBuffers;
492 float multisampleCoverage;
493 bool multisampleInvert;
495 osg::Multisample::Mode multisampleMode;
500 bool m_useWiiNavVisenso;
505 bool constantFrameRate;
506 float constFrameTime;
507 bool m_continuousRendering;
512 bool m_coloringSceneInMenuMode;
int PBONum
Definition: coVRConfig.h:83
coVRPlugin * windowPlugin
Definition: coVRConfig.h:153
bool getMultisampleInvert()
Definition: coVRConfig.h:387
Definition: coVRConfig.h:182
std::string name
Definition: coVRConfig.h:81
bool resize
Definition: coVRConfig.h:145
int PBOsx
Definition: coVRConfig.h:112
bool pbuffer
Definition: coVRConfig.h:148
osg::Matrixd rightProj
Definition: coVRConfig.h:94
float * value
Definition: coVRConfig.h:131
int getLanguage() const
Definition: coVRConfig.h:442
Definition: VRViewer.h:52
osg::ref_ptr< osg::GraphicsContext > context
Definition: coVRConfig.h:140
osg::Matrixd leftView
Definition: coVRConfig.h:93
std::string collaborativeOptionsFile
Definition: coVRConfig.h:323
float getMultisampleCoverage()
Definition: coVRConfig.h:391
void setNearFar(float nearC, float farC)
Definition: coVRConfig.h:433
osg::Vec3 hpr
Definition: coVRConfig.h:56
int stereoMode
Definition: coVRConfig.h:90
Definition: coVRConfig.h:124
Definition: VRWindow.h:42
int ox
Definition: coVRConfig.h:138
int getMultisampleSampleBuffers()
Definition: coVRConfig.h:399
osg::ref_ptr< osg::Camera > camera
Definition: coVRConfig.h:87
int pipeNum
Definition: coVRConfig.h:142
osg::ref_ptr< osg::Texture2D > renderTargetTexture
Definition: coVRConfig.h:114
float HMDViewingAngle
Definition: coVRConfig.h:451
int getEnvMapMode()
Definition: coVRConfig.h:284
windowStruct()
Definition: coVRConfig.h:155
float vsize
Definition: coVRConfig.h:54
std::vector< channelStruct > channels
Definition: coVRConfig.h:416
std::vector< PBOStruct > PBOs
Definition: coVRConfig.h:417
bool stereo
Definition: coVRConfig.h:146
int sx
Definition: coVRConfig.h:139
int analogInput
Definition: coVRConfig.h:127
describes a PBO
Definition: coVRConfig.h:110
Definition: coVRConfig.h:271
int swapGroup
Definition: coVRConfig.h:150
describes one window of the windowing system
Definition: coVRConfig.h:136
float viewportXMin
Definition: coVRConfig.h:214
int PBOnum
Definition: coVRConfig.h:188
bool fixedViewer
Definition: coVRConfig.h:91
Definition: coVRConfig.h:270
float viewportXMax
Definition: coVRConfig.h:216
bool render
Definition: coVRConfig.h:58
pipeStruct()
Definition: coVRConfig.h:235
bool useVirtualGL() const
Definition: coVRConfig.h:428
std::vector< viewportStruct > viewports
Definition: coVRConfig.h:420
Definition: coVRConfig.h:183
bool useDisplayVariable() const
Definition: coVRConfig.h:423
int swapBarrier
Definition: coVRConfig.h:151
Definition: coVRConfig.h:268
std::string type
Definition: coVRConfig.h:152
osg::Vec3 xyz
Definition: coVRConfig.h:55
float cmin
Definition: coVRConfig.h:128
int window
Definition: coVRConfig.h:186
bool useDISPLAY
Definition: coVRConfig.h:233
MonoViews
Definition: coVRConfig.h:255
int screenNum
Definition: coVRConfig.h:85
float bTan
Definition: coVRConfig.h:62
int x11ScreenNum
Definition: coVRConfig.h:231
float tTan
Definition: coVRConfig.h:61
Definition: coVRConfig.h:176
bool stereo
Definition: coVRConfig.h:89
float sourceYMax
Definition: coVRConfig.h:192
std::vector< int > pbos
Definition: coVRConfig.h:187
Definition: coVRConfig.h:211
osg::DisplaySettings * ds
Definition: coVRConfig.h:88
describes a physical screen, such as one wall of a CAVE
Definition: coVRConfig.h:51
make sure to clean up properly in the plugin's dtor
Definition: coVRPlugin.h:70
float hsize
Definition: coVRConfig.h:53
int PBOsy
Definition: coVRConfig.h:112
describes a render Channel which renders to a PBO or viewport
Definition: coVRConfig.h:79
float sourceXMin
Definition: coVRConfig.h:189
osg::ref_ptr< osgViewer::GraphicsWindow > window
Definition: coVRConfig.h:141
std::vector< blendingTextureStruct > blendingTextures
Definition: coVRConfig.h:421
int sy
Definition: coVRConfig.h:139
std::string viewpointsFile
Definition: coVRConfig.h:326
std::string distortMeshName
Definition: coVRConfig.h:199
screenStruct()
Definition: coVRConfig.h:64
std::string name
Definition: coVRConfig.h:143
float sourceXMax
Definition: coVRConfig.h:191
float stereoOffset
Definition: coVRConfig.h:92
std::string x11DisplayHost
Definition: coVRConfig.h:232
float lTan
Definition: coVRConfig.h:59
PBOStruct()
Definition: coVRConfig.h:116
std::vector< screenStruct > screens
Definition: coVRConfig.h:415
osg::Multisample::Mode getMultisampleMode()
Definition: coVRConfig.h:403
int window
Definition: coVRConfig.h:213
Definition: coVRConfig.h:448
int getMultisampleSamples()
Definition: coVRConfig.h:395
float viewportYMax
Definition: coVRConfig.h:217
float sourceYMin
Definition: coVRConfig.h:190
int windowNum
Definition: coVRConfig.h:113
Definition: coVRConfig.h:269
Definition: coVRConfig.h:181
int viewportNum
Definition: coVRConfig.h:84
bool embedded
Definition: coVRConfig.h:147
int screen
Definition: coVRConfig.h:130
describes what is responsible for rendering the window
Definition: coVRConfig.h:228
Definition: OpenCOVER.h:53
blendingTextureStruct()
Definition: coVRConfig.h:221
bool doublebuffer
Definition: coVRConfig.h:149
Definition: coVRConfig.h:258
float viewportXMin
Definition: coVRConfig.h:194
Definition: coVRConfig.h:180
float rTan
Definition: coVRConfig.h:60
osg::Matrixd leftProj
Definition: coVRConfig.h:94
Definition: coVRConfig.h:259
channelStruct()
Definition: coVRConfig.h:96
bool OpenVR_HMD
Definition: coVRConfig.h:453
Definition: coVRConfig.h:257
std::string blendingTextureName
Definition: coVRConfig.h:200
bool decoration
Definition: coVRConfig.h:144
float viewportYMin
Definition: coVRConfig.h:215
float minangle
Definition: coVRConfig.h:129
Mode mode
Definition: coVRConfig.h:185
float viewportXMax
Definition: coVRConfig.h:196
int oy
Definition: coVRConfig.h:138
Languages
Definition: coVRConfig.h:446
Mode
Definition: coVRConfig.h:178
std::string blendingTextureName
Definition: coVRConfig.h:219
std::vector< pipeStruct > pipes
Definition: coVRConfig.h:418
int hpr
Definition: coVRConfig.h:132
Definition: coVRPluginSupport.h:191
bool doMultisample()
Definition: coVRConfig.h:383
Definition: coVRConfig.h:242
float viewportYMin
Definition: coVRConfig.h:195
std::string name
Definition: coVRConfig.h:57
float viewportYMax
Definition: coVRConfig.h:197
int x11DisplayNum
Definition: coVRConfig.h:230
Definition: VRSceneGraph.h:60
std::string glVersion
Definition: coVRConfig.h:452
osg::Matrixd rightView
Definition: coVRConfig.h:93
std::vector< windowStruct > windows
Definition: coVRConfig.h:419
viewportStruct()
Definition: coVRConfig.h:202