|Version 2 (modified by osg, 5 years ago)|
Views and Viewers
When choosing an OpenSceneGraph provided Viewer, one has two choices: Viewer or CompositeViewer. Both are derived off of osgViewer::ViewerBase. ViewerBase provides functionality such as controlling stats, threading, and frame calls.
osgViewer::Viewer along with being a ViewerBase is also a View. This simplifies the setup and interface if one is interested in a single view.
osgViewer::CompositeViewer, in contrast with Viewer, actually contains a list of multiple Views. This gives more versatility to the programmer but with more work to access View functionality.
Which Viewer to Use
So which Viewer class is right for your app? This is discussed in detail on this page.
Event and Pick Handling
TODO: This is just a stub.