Overview | All Modules | Tutorial | User's Guide | Programming Guide |
Previous | COVISE Online Documentation | Next |
This class manages the selection of the menu via joystick. 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) |
sets the active menu More... | |
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 = 0 |
static singleton variable More... | |
This class manages the selection of the menu via joystick.
Manages the joystick as input device
vrui::coJoystickManager::~coJoystickManager | ( | ) |
|
protected |
a submenu has been closed select the parentMenu
is called if a submenu is closed via pick interaction set the parent menu as active
|
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
for pattern singelton use instead of constructor
|
protected |
void vrui::coJoystickManager::newUpdate | ( | float | x, |
float | y, | ||
int | button, | ||
long | timeStamp = -1 |
||
) |
set the values
takes the values of the valuators of the joystick (Flystick 2) values between -1 and 1 button for selection in menuModus
void vrui::coJoystickManager::newUpdate | ( | int | x, |
int | y, | ||
int | button, | ||
long | timeStamp = -1 |
||
) |
set the values
takes the values of the valuators of the joystick (Flystick 1) values are -1 or 1 button for selection in menuModus
void vrui::coJoystickManager::openedSubMenu | ( | coGenericSubMenuItem * | item, |
coMenu * | subMenu | ||
) |
opend a submenu via pickray
is called form coSubMenuItem if it opens the submenu activate the submenu and the first item in it
|
protected |
void vrui::coJoystickManager::registerMenu | ( | coMenu * | m, |
bool | force = false |
||
) |
register a rootMenu
a root menu of the application has to be registered if it is the first rootMenu it will be the active one
|
protected |
|
protected |
void vrui::coJoystickManager::selectItem | ( | coMenuItem * | item, |
coMenu * | parentMenu | ||
) |
a item has been selected via ray
is called from coMenuItem if it is hit via ray selects the item
|
protected |
|
inline |
set accuracy of float-slider (one step is maxValue-minValue/accuracy)
void vrui::coJoystickManager::setActive | ( | bool | a | ) |
activate the selectionmode via joystick
activate or deactivate the joystick interaction
|
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 |
sets the active menu
|
inline |
set select on release
void vrui::coJoystickManager::unregisterMenu | ( | coMenu * | m | ) |
unregister a rootMenu
a root menu of the application has to be unregistered
void vrui::coJoystickManager::update | ( | float | x, |
float | y, | ||
long | timeStamp = -1 |
||
) |
set the values of the valuator (new flystick)
takes the values of the valuators of the joystick (Flystick 2) values between -1 and 1
void vrui::coJoystickManager::update | ( | int | x, |
int | y, | ||
long | timeStamp = -1 |
||
) |
set the values of the valuator (old flystick)
takes the values of the valuators of the joystick (Flystick 1) values are -1 or 1
|
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 |
Previous | Next |
Authors: Martin Aumüller, Ruth Lang, Daniela Rainer, Jürgen Schulze-Döbold, Andreas Werner, Peter Wolf, Uwe Wössner |
Copyright © 1993-2009 HLRS, 2004-2009 RRZK, 2005-2009 Visenso |
COVISE Version 6.5 Academic
|