cee::vis::CameraInputHandlerWalk

class CameraInputHandlerWalk : public CameraInputHandler

Camera input handler implementing standard Ceetron style Walk navigation.

  • Left button: Pan

  • Right button: Rotate

  • Middle button or Left+Right: Walk

Public Functions

CameraInputHandlerWalk()

Creates the Ceetron Zoom Navigation handler.

virtual void wheelEvent(const WheelEvent &theWheelEvent)

Processes the mouse wheel event.

This is typically called from the viewer (platform dependent class derived from cee::vis::Viewer) based on mouse input.

virtual void wheelEvent(const WheelEvent &theWheelEvent, const cee::Vec3d &pos)

Processes the mouse wheel event.

This is typically called from the viewer (platform dependent class derived from cee::vis::Viewer) based on mouse input.

This wheel event also takes a position position which is used for the ‘zoom to cursor’ feature. For normal zoom, use the ordinary wheelEvent() function.

void setMinimumTargetDistance(double minDistance)

Specifies the minimum distance used in computing walk navigation.

This value is used as a minimum distance to the rotation point to prevent a complete slowdown when getting close to the rotation point.

Protected Functions

virtual NavigationType navigationTypeFromInputState(MouseButtons mouseButtons, KeyboardModifiers keyboardModifiers) const

Implements of Ceetron style Walk Navigation.

virtual NavigationType wheelNavigationType() const

Returns WALK.