1 #ifndef SimTK_SIMBODY_VISUALIZER_INPUT_LISTENER_H_
2 #define SimTK_SIMBODY_VISUALIZER_INPUT_LISTENER_H_
61 static const unsigned SpecialKeyOffset = 0x100;
76 KeyF1 = SpecialKeyOffset + 1,
77 KeyF2 = SpecialKeyOffset + 2,
78 KeyF3 = SpecialKeyOffset + 3,
79 KeyF4 = SpecialKeyOffset + 4,
80 KeyF5 = SpecialKeyOffset + 5,
81 KeyF6 = SpecialKeyOffset + 6,
82 KeyF7 = SpecialKeyOffset + 7,
83 KeyF8 = SpecialKeyOffset + 8,
84 KeyF9 = SpecialKeyOffset + 9,
85 KeyF10 = SpecialKeyOffset + 10,
86 KeyF11 = SpecialKeyOffset + 11,
87 KeyF12 = SpecialKeyOffset + 12,
89 KeyLeftArrow = SpecialKeyOffset + 100,
90 KeyUpArrow = SpecialKeyOffset + 101,
91 KeyRightArrow = SpecialKeyOffset + 102,
92 KeyDownArrow = SpecialKeyOffset + 103,
93 KeyPageUp = SpecialKeyOffset + 104,
94 KeyPageDown = SpecialKeyOffset + 105,
95 KeyHome = SpecialKeyOffset + 106,
96 KeyEnd = SpecialKeyOffset + 107,
97 KeyInsert = SpecialKeyOffset + 108
117 virtual bool keyPressed(
unsigned key,
unsigned modifiers) {
return false;}
243 bool isAnyUserInput()
const;
248 void waitForAnyUserInput()
const;
262 bool takeKeyHit(
unsigned& key,
unsigned& modifiers);
269 void waitForKeyHit(
unsigned& key,
unsigned& modifiers);
283 bool takeMenuPick(
int& menu,
int& item);
290 void waitForMenuPick(
int& menu,
int& item);
305 bool takeSliderMove(
int& slider,
Real& value);
312 void waitForSliderMove(
int& slider,
Real& value);
322 virtual bool keyPressed(
unsigned key,
unsigned modifiers);
323 virtual bool menuSelected(
int menu,
int item);
324 virtual bool sliderMoved(
int slider,
Real value);
327 const Impl& getImpl()
const {assert(m_impl);
return *m_impl;}
328 Impl& updImpl() {assert(m_impl);
return *m_impl;}
335 #endif // SimTK_SIMBODY_VISUALIZER_INPUT_LISTENER_H_
Declares the Visualizer class used for collecting Simbody simulation results for display and interact...
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
Every Simbody header and source file should include this header before any other Simbody header...
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:577
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:72
Provide simple visualization of and interaction with a Simbody simulation, with real time control of ...
Definition: Visualizer.h:146