OpenCOVER
|
Manages the joystick as input device. More...
#include <coJoystickManager.h>
Public Member Functions | |
~coJoystickManager () | |
void | setActive (bool a) |
activate the selectionmode via joystick More... | |
bool | getActive () |
void | setSelectOnRelease (bool b) |
set select on release More... | |
bool | getSelectOnRelease () |
void | setBarrierXValue (float f) |
set barrier value for x value of slider More... | |
void | setBarrierYValue (float f) |
set barrier value for y value of slider More... | |
float | getBarrierXValue () |
float | getBarrierYValue () |
void | setBarrierMilliSeconds (int sec) |
set milliseconds to wait until a action is called (release action) More... | |
int | getBarrierMilliSeconds () |
void | setDeltaSlider (long delta) |
set milliseconds after a slider updates its value More... | |
long | getDeltaSlider () |
void | setAccuracyFloatSlider (int accuracy) |
set accuracy of float-slider (one step is maxValue-minValue/accuracy) More... | |
int | getAccuracyFloatSlider () |
long | getLastTime () |
get time of the last update More... | |
long | getActualTime () |
get time of the actual update More... | |
void | registerMenu (coMenu *, bool force=false) |
register a rootMenu More... | |
void | unregisterMenu (coMenu *) |
unregister a rootMenu More... | |
void | closedMenu (coMenu *oldMenu, coMenu *newMenu) |
a submenu has been closed select the parentMenu More... | |
void | selectItem (coMenuItem *item, coMenu *parentMenu) |
a item has been selected via ray More... | |
void | openedSubMenu (coGenericSubMenuItem *item, coMenu *subMenu) |
opend a submenu via pickray More... | |
void | update (float x, float y, long timeStamp=-1) |
set the values of the valuator (new flystick) More... | |
void | update (int x, int y, long timeStamp=-1) |
set the values of the valuator (old flystick) More... | |
void | newUpdate (float x, float y, int button, long timeStamp=-1) |
set the values More... | |
void | newUpdate (int x, int y, int button, long timeStamp=-1) |
set the values More... | |
void | setAttachment (int att) |
Static Public Member Functions | |
static coJoystickManager * | instance () |
get the singleton instance of coJoystickManager More... | |
Protected Member Functions | |
coJoystickManager () | |
void | setMenuActive (coMenu *m) |
void | setItemActive (bool b) |
void | pressActiveItem (int action) |
void | selectAction (int action) |
void | selectActionButton (int action) |
std::vector< coMenuItem * > | getGoodItems (coMenu *m) |
bool | isDocument (coMenu *m) |
void | selectNextMenu (bool forward) |
Protected Attributes | |
coMenu * | activeMenu |
the selected menu More... | |
coMenu * | oldActiveMenu |
selected menu before More... | |
std::map< coMenu *, int > | activeItem |
list of the selected items in menu and in parent menus More... | |
std::list< coMenu * > | menus |
coMenu * | rootMenu |
root menu More... | |
bool | active |
flag if the joystick manager is active More... | |
bool | selectOnRelease |
int | oldX |
save old value of x valuator More... | |
int | oldY |
save old value of y valuator More... | |
int | oldButton |
float | barrierXValue |
float | barrierYValue |
int | barrierMilliSeconds |
long | firstPressed |
long | actualTime |
long | lastTime |
long | deltaSlider |
int | accuracyFloatSlider |
int | attachment |
bool | actionRelease |
bool | actionPress |
bool | secondActionRelease |
bool | secondActionPress |
bool | menuTypeChanged |
Static Protected Attributes | |
static coJoystickManager * | joystickManager |
static singleton variable More... | |
Manages the joystick as input device.
This class manages the selection of the menu via joystick
vrui::coJoystickManager::~coJoystickManager | ( | ) |
|
protected |
a submenu has been closed select the parentMenu
|
inline |
|
inline |
|
inline |
get time of the actual update
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
inline |
get time of the last update
|
inline |
|
static |
get the singleton instance of coJoystickManager
|
protected |
void vrui::coJoystickManager::newUpdate | ( | float | x, |
float | y, | ||
int | button, | ||
long | timeStamp = -1 |
||
) |
set the values
void vrui::coJoystickManager::newUpdate | ( | int | x, |
int | y, | ||
int | button, | ||
long | timeStamp = -1 |
||
) |
set the values
void vrui::coJoystickManager::openedSubMenu | ( | coGenericSubMenuItem * | item, |
coMenu * | subMenu | ||
) |
opend a submenu via pickray
|
protected |
void vrui::coJoystickManager::registerMenu | ( | coMenu * | , |
bool | force = false |
||
) |
register a rootMenu
|
protected |
|
protected |
void vrui::coJoystickManager::selectItem | ( | coMenuItem * | item, |
coMenu * | parentMenu | ||
) |
a item has been selected via ray
|
protected |
|
inline |
set accuracy of float-slider (one step is maxValue-minValue/accuracy)
void vrui::coJoystickManager::setActive | ( | bool | a | ) |
activate the selectionmode via joystick
|
inline |
|
inline |
set milliseconds to wait until a action is called (release action)
|
inline |
set barrier value for x value of slider
|
inline |
set barrier value for y value of slider
|
inline |
set milliseconds after a slider updates its value
|
protected |
|
protected |
|
inline |
set select on release
void vrui::coJoystickManager::unregisterMenu | ( | coMenu * | ) |
unregister a rootMenu
void vrui::coJoystickManager::update | ( | float | x, |
float | y, | ||
long | timeStamp = -1 |
||
) |
set the values of the valuator (new flystick)
void vrui::coJoystickManager::update | ( | int | x, |
int | y, | ||
long | timeStamp = -1 |
||
) |
set the values of the valuator (old flystick)
|
protected |
|
protected |
|
protected |
|
protected |
flag if the joystick manager is active
|
protected |
list of the selected items in menu and in parent menus
|
protected |
the selected menu
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
static singleton variable
|
protected |
|
protected |
|
protected |
|
protected |
selected menu before
|
protected |
|
protected |
save old value of x valuator
|
protected |
save old value of y valuator
|
protected |
root menu
|
protected |
|
protected |
|
protected |