CameraInteractionHandler Class Reference

Interaction handler for camera interactions providing two navigation modes: trackball and first-person. More...

#include <camerainteractionhandler.h>

Inheritance diagram for CameraInteractionHandler:
InteractionHandler PropertyOwner EventListener AbstractSerializable Serializable

List of all members.

Public Types

enum  NavigationMetaphor { TRACKBALL, FIRST_PERSON }
 

Used to specify the current camera interaction behaviour.


Public Member Functions

 CameraInteractionHandler ()
 Default constructor needed for serialization. Do not call it directly.
 CameraInteractionHandler (const std::string &id, const std::string &guiText, CameraProperty *cameraProp, bool sharing=false, bool enabled=true)
 Constructor.
void setNavigationMode (NavigationMetaphor behaviour)
 Determines the the navigation metaphor to be used for interpreting the user input.
NavigationMetaphor getNavigationMode () const
 Returns the currently used navigation mode.

Friends

class EventProperty< CameraInteractionHandler >

Detailed Description

Interaction handler for camera interactions providing two navigation modes: trackball and first-person.

It is possible to use multiple camera interaction handlers in a single processor, but then you have to make sure that they have unique names.

See also:
TrackballNavigation
FirstPersonNavigation

Definition at line 54 of file camerainteractionhandler.h.


Constructor & Destructor Documentation

CameraInteractionHandler ( const std::string &  id,
const std::string &  guiText,
CameraProperty cameraProp,
bool  sharing = false,
bool  enabled = true 
)

Constructor.

Parameters:
id Identifier that must be unique across all interaction handlers of a processor. Must not be empty.
guiText the string that is to be displayed in the GUI
cameraProp camera property the handler will operate on. Must not be null.

Definition at line 52 of file camerainteractionhandler.cpp.