The cee::vis::Camera has an input handler that handles user input (mouse and keyboard events) and manipulates the camera based on these events.
This is used to move the camera around the scene to inspect the model.
Ceetron Desktop Components provides two default Input Handlers:
In this tutorial we will show how to create a custom navigation scheme by subclassing the cee::vis::CameraInputHandler.
Create a class that derives from cee::vis::CameraInputHandler and override the two following methods:
The navigationTypeFromInputState() method should return the wanted navigation type (PAN, ROTATE, WALK, ZOOM) based on the mouse and keyboard input state.
The wheelNavigationType() determines the use of the mouse wheel. Usually WALK or ZOOM.
Use of the new input handler by setting it as the input handler for the current camera.
Then, create a model to demonstrate the new navigation scheme. Here we use the GeometryModel.
Visualization: Create a custom navigation handler to support a custom navigation scheme