Changes between Version 4 and Version 5 of Support/KnowledgeBase/Views_and_Viewers

Show
Ignore:
Timestamp:
04/07/09 05:37:29 (5 years ago)
Author:
XenonofArcticus (IP: 68.64.211.33)
Comment:

Fixing link to Traits

Legend:

Unmodified
Added
Removed
Modified
  • Support/KnowledgeBase/Views_and_Viewers

    v4 v5  
    2323== Windowing == 
    2424 
    25 Windows are created for each [http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01207.html GraphicsContext] created.  When using some of helper funcions for osgView::View, such as setUpViewAcrossAllScreens(), setUpViewOnSingleScreen(), or setUpViewInWindow(), the graphics context with a new window will be created for each call.  Therefore, using some combination of these calls with a !CompositeViewer with multiple Views would produce multiple windows.  If one did not want multiple windows or maybe didn't want window decorations, one can setup the [http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01210.html Traits] themselves. A single window with multiple views can be achieved by setting Traits::sharedContext to a previously created context. And, the decorations can be turned of with Traits::windowDecoration set to false.   
     25Windows are created for each [http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01207.html GraphicsContext] created.  When using some of helper funcions for osgView::View, such as setUpViewAcrossAllScreens(), setUpViewOnSingleScreen(), or setUpViewInWindow(), the graphics context with a new window will be created for each call.  Therefore, using some combination of these calls with a !CompositeViewer with multiple Views would produce multiple windows.  If one did not want multiple windows or maybe didn't want window decorations, one can setup the [http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00279.html Traits] themselves. A single window with multiple views can be achieved by setting Traits::sharedContext to a previously created context. And, the decorations can be turned of with Traits::windowDecoration set to false.   
    2626 
    2727Examples of setting up windows and contexts can be found in the [http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgwindows/osgwindows.cpp osgwindows] and [http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgcamera/osgcamera.cpp osgcamera] examples among others.