NutsnBolts  0.1.0
An extension library for Coin
Loading...
Searching...
No Matches
Navigation

The SIM Nuts'n'Bolts NbSceneManager class implements a navigation system that allows for user interaction without having to deploy a full GUI toolkit viewer.

This is done by attaching an object of type NbNavigationSystem to the NbSceneManager that will listen to all events sent to the scene and perform user-based camera navigation based on those events.

A set of built-in navigation systems can be used for certain common navigation setups, but it is also possible to create ones own navigation modes, or patch together a new one from existing navigation submodes.

Built-in modes are named in the following set of defines:

  • NB_IDLER_SYSTEM
  • NB_EXAMINER_SYSTEM
  • NB_PANNER_SYSTEM
  • NB_ZOOMER_SYSTEM
  • NB_ROTATER_SYSTEM

The NB_EXAMINER_SYSTEM is a navigation system that implements most of the examiner viewer navigation. Not complete yet, but that is the goal.

The NB_PANNER_SYSTEM just implements panning when the mouse button is pressed. Similarly, the NB_ZOOMER_SYSTEM and NB_ROTATER_SYSTEM implement just zooming and rotating when the mouse is pressed.