OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
vrui::coButtonInteraction Class Reference

#include <coButtonInteraction.h>

Inheritance diagram for vrui::coButtonInteraction:
Inheritance graph
[legend]
Collaboration diagram for vrui::coButtonInteraction:
Collaboration graph
[legend]

Public Types

enum  RunningState { StateStarted = 0, StateRunning, StateStopped, StateNotRunning }
 
- Public Types inherited from vrui::coInteraction
enum  InteractionState {
  Idle = 0, PendingActive, Active, Paused,
  RemoteActive, ActiveNotify, Stopped
}
 
enum  InteractionPriority {
  Low = 0, Navigation, NavigationHigh, Medium,
  High, Menu, Highest
}
 
enum  InteractionType {
  ButtonA = 0, ButtonB, ButtonC, ButtonD,
  ButtonE, Wheel, Joystick, AllButtons,
  NumInteractorTypes
}
 

Public Member Functions

 coButtonInteraction (InteractionType type, const std::string &name, InteractionPriority priority=Medium)
 
virtual ~coButtonInteraction ()
 
virtual void update ()
 
virtual void startInteraction ()
 
virtual void stopInteraction ()
 
virtual void doInteraction ()
 
virtual void cancelInteraction ()
 
virtual void resetState ()
 
bool wasStarted () const
 
bool isRunning () const
 
bool wasStopped () const
 
bool isIdle () const
 
int getWheelCount ()
 
- Public Member Functions inherited from vrui::coInteraction
 coInteraction (InteractionType type, const std::string &name, InteractionPriority priority=Medium)
 
virtual ~coInteraction ()
 
InteractionState getState () const
 
InteractionType getType () const
 
InteractionPriority getPriority () const
 
int getRemoteLockID () const
 
void setRemoteLockID (int ID)
 
void setRemoteLock (bool)
 
void setRemoteActive (bool)
 
void requestActivation ()
 
virtual void setName (const std::string &name)
 
virtual void removeIcon ()
 
virtual void addIcon ()
 
virtual bool hasPriority ()
 
virtual void cancelPendingActivation ()
 
virtual void doActivation ()
 
virtual void pause ()
 
virtual const std::string & getName () const
 
bool activate ()
 
bool isRegistered ()
 
void setNotifyOnly (bool flag)
 
bool isNotifyOnly ()
 

Protected Attributes

RunningState runningState
 
InteractionState oldState
 
int wheelCount
 
vruiButtonsbutton
 
- Protected Attributes inherited from vrui::coInteraction
std::string name
 
InteractionState state
 
InteractionType type
 
InteractionPriority priority
 
bool notifyOnly
 
bool hasPriorityFlag
 
bool registered
 
bool remoteLock
 
int remoteLockID
 

Member Enumeration Documentation

Enumerator
StateStarted 
StateRunning 
StateStopped 
StateNotRunning 

Constructor & Destructor Documentation

vrui::coButtonInteraction::coButtonInteraction ( InteractionType  type,
const std::string &  name,
InteractionPriority  priority = Medium 
)
virtual vrui::coButtonInteraction::~coButtonInteraction ( )
virtual

Member Function Documentation

virtual void vrui::coButtonInteraction::cancelInteraction ( )
virtual

Reimplemented from vrui::coInteraction.

virtual void vrui::coButtonInteraction::doInteraction ( )
virtual
int vrui::coButtonInteraction::getWheelCount ( )
inline
bool vrui::coButtonInteraction::isIdle ( ) const
inline
bool vrui::coButtonInteraction::isRunning ( ) const
inline
virtual void vrui::coButtonInteraction::resetState ( )
virtual

Reimplemented from vrui::coInteraction.

virtual void vrui::coButtonInteraction::startInteraction ( )
virtual
virtual void vrui::coButtonInteraction::stopInteraction ( )
virtual
virtual void vrui::coButtonInteraction::update ( )
virtual
bool vrui::coButtonInteraction::wasStarted ( ) const
inline
bool vrui::coButtonInteraction::wasStopped ( ) const
inline

Member Data Documentation

vruiButtons* vrui::coButtonInteraction::button
protected
InteractionState vrui::coButtonInteraction::oldState
protected
RunningState vrui::coButtonInteraction::runningState
protected
int vrui::coButtonInteraction::wheelCount
protected

The documentation for this class was generated from the following file: