本文整理汇总了C++中osg::ApplicationUsage类的典型用法代码示例。如果您正苦于以下问题:C++ ApplicationUsage类的具体用法?C++ ApplicationUsage怎么用?C++ ApplicationUsage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ApplicationUsage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getUsage
void PointsEventHandler::getUsage(osg::ApplicationUsage &usage) const
{
usage.addKeyboardMouseBinding("+", "Increase point size");
usage.addKeyboardMouseBinding("-", "Reduce point size");
usage.addKeyboardMouseBinding(">", "Increase point size");
usage.addKeyboardMouseBinding("<", "Reduce point size");
}
示例2: getUsage
void AnimationPathManipulator::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("AnimationPath: Space","Reset the viewing position to start of animation");
usage.addKeyboardMouseBinding("AnimationPath: p","Pause/resume animation.");
usage.addKeyboardMouseBinding("AnimationPath: <","Slow down animation speed.");
usage.addKeyboardMouseBinding("AnimationPath: <","Speed up animation speed.");
}
示例3: getUsage
void SlideEventHandler::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("Space","Reset the image position to center");
usage.addKeyboardMouseBinding("a","Toggle on/off the automatic advancement for image to image");
usage.addKeyboardMouseBinding("n","Advance to next image");
usage.addKeyboardMouseBinding("p","Move to previous image");
}
示例4: getUsage
void ViroManipulator::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("ViRo: Mouse Wheel","Accelerate / Decelerate");
usage.addKeyboardMouseBinding("ViRo: Left-Button","Stop");
usage.addKeyboardMouseBinding("ViRo: Right-Button","Press and Turn - Hold CTRL for Slide/Height");
usage.addKeyboardMouseBinding("ViRo: Mid-Button","Fly-To picked point - Hold CTRL for Satellite Picking");
}
示例5: getUsage
void MovieEventHandler::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("i","toggle interactive mode, scrub via mouse-move");
usage.addKeyboardMouseBinding("p","Play/Pause movie");
usage.addKeyboardMouseBinding("r","Restart movie");
usage.addKeyboardMouseBinding("l","Toggle looping of movie");
}
示例6: getUsage
void StateSetManipulator::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding(reinterpret_cast<const char*>(&_keyEventToggleBackfaceCulling),"Toggle backface culling");
usage.addKeyboardMouseBinding(reinterpret_cast<const char*>(&_keyEventToggleLighting),"Toggle lighting");
usage.addKeyboardMouseBinding(reinterpret_cast<const char*>(&_keyEventToggleTexturing),"Toggle texturing");
usage.addKeyboardMouseBinding(reinterpret_cast<const char*>(&_keyEventCyclePolygonMode),"Toggle polygon fill mode between fill, line (wire frame) and points");
}
示例7: bindingDescription
virtual void bindingDescription(osg::ApplicationUsage & au) const {
au.addKeyboardMouseBinding("Teachung: t","toggle mode");
au.addKeyboardMouseBinding("Teaching: u","forward");
au.addKeyboardMouseBinding("Teaching: j","backward");
au.addKeyboardMouseBinding("Simulation: s","store");
au.addKeyboardMouseBinding("Simulation: l","load");
}
示例8:
void Vwr::CameraManipulator::getUsage(osg::ApplicationUsage& usage) const {
usage.addKeyboardMouseBinding("Trackball: Space",
"Reset the viewing position to home");
usage.addKeyboardMouseBinding("Trackball: +",
"When in stereo, increase the fusion distance");
usage.addKeyboardMouseBinding("Trackball: -",
"When in stereo, reduce the fusion distance");
}
示例9: getUsage
void DriveManipulator::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("Drive: Space","Reset the viewing position to home");
usage.addKeyboardMouseBinding("Drive: q","Use mouse y for controlling speed");
usage.addKeyboardMouseBinding("Drive: a","Use mouse middle,right mouse buttons for speed");
usage.addKeyboardMouseBinding("Drive: Down","Cursor down key to look downwards");
usage.addKeyboardMouseBinding("Drive: Up","Cursor up key to look upwards");
}
示例10: getUsage
void ChaseCam::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("Drive: Space", "Accelerate");
usage.addKeyboardMouseBinding("Drive: Left", "Roll left");
usage.addKeyboardMouseBinding("Drive: Right", "Roll right");
usage.addKeyboardMouseBinding("Drive: Down", "Hochziehen");
usage.addKeyboardMouseBinding("Drive: Up", "Runterziehen");
}
示例11: getUsage
void SlideEventHandler::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("Space","Reset the image position to center");
usage.addKeyboardMouseBinding("a","Toggle on/off the automatic advancement for image to image");
usage.addKeyboardMouseBinding("n","Advance to next image");
usage.addKeyboardMouseBinding("p","Move to previous image");
usage.addKeyboardMouseBinding("q","Zoom into the image");
usage.addKeyboardMouseBinding("a","Zoom out of the image");
usage.addKeyboardMouseBinding("j","Reduce horizontal offset");
usage.addKeyboardMouseBinding("k","Increase horizontal offset");
usage.addKeyboardMouseBinding("m","Reduce vertical offset");
usage.addKeyboardMouseBinding("i","Increase vertical offset");
}
示例12: getUsage
void LODScaleHandler::getUsage(osg::ApplicationUsage& usage) const
{
{
std::ostringstream ostr;
ostr<<char(_keyEventIncreaseLODScale);
usage.addKeyboardMouseBinding(ostr.str(),"Increase LODScale.");
}
{
std::ostringstream ostr;
ostr<<char(_keyEventDecreaseLODScale);
usage.addKeyboardMouseBinding(ostr.str(),"Decrease LODScale.");
}
}
示例13: bindingDescription
void OpenLoopSim::bindingDescription(osg::ApplicationUsage & au) const {
au.addKeyboardMouseBinding("Barrel: y","add force to the left");
au.addKeyboardMouseBinding("Barrel: Y","add force to the right");
au.addKeyboardMouseBinding("Barrel: x","add torque counter-clockwise");
au.addKeyboardMouseBinding("Barrel: X","add torque clockwise");
au.addKeyboardMouseBinding("Barrel: i","decrease period");
au.addKeyboardMouseBinding("Barrel: I","incrase period");
};
示例14: getUsage
void UFOManipulator::getUsage(osg::ApplicationUsage& usage) const
{
/** Way too busy. This needs to wait until we have a scrollable window
usage.addKeyboardMouseBinding("UFO Manipulator: <SpaceBar>", "Reset the viewing angle to 0.0");
usage.addKeyboardMouseBinding("UFO Manipulator: <UpArrow>", "Acceleration forward.");
usage.addKeyboardMouseBinding("UFO Manipulator: <DownArrow>", "Acceleration backward (or deceleration forward");
usage.addKeyboardMouseBinding("UFO Manipulator: <LeftArrow>", "Rotate view and direction of travel to the left.");
usage.addKeyboardMouseBinding("UFO Manipulator: <RightArrow>", "Rotate view and direction of travel to the right.");
usage.addKeyboardMouseBinding("UFO Manipulator: <SpaceBar>", "Brake. Gradually decelerates linear and rotational movement.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Shift/UpArrow>", "Accelerate up.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Shift/DownArrow>", "Accelerate down.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Shift/LeftArrow>", "Accelerate (linearly) left.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Shift/RightArrow>","Accelerate (linearly) right.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Shift/SpaceBar>", "Instant brake. Immediately stop all linear and rotational movement.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Ctrl/UpArrow>", "Rotate view (but not direction of travel) up.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Ctrl/DownArrow>", "Rotate view (but not direction of travel) down.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Ctrl/LeftArrow>", "Rotate view (but not direction of travel) left.");
usage.addKeyboardMouseBinding("UFO Manipulator: <Ctrl/RightArrow>", "Rotate view (but not direction of travel) right.");
*/
usage.addKeyboardMouseBinding("UFO: ", "Please see http://www.openscenegraph.org/html/UFOCameraManipulator.html");
// Keep this one as it might be confusing
usage.addKeyboardMouseBinding("UFO: H", "Reset the viewing position to home");
}
示例15: getUsage
void KeySwitchMatrixManipulator::getUsage(osg::ApplicationUsage& usage) const
{
for(KeyManipMap::const_iterator itr=_manips.begin();
itr!=_manips.end();
++itr)
{
std::string key; key += (char)(itr->first);
std::string explanation(std::string("Select '")+itr->second.first+std::string("' camera manipulator"));
if (_current==itr->second.second) explanation += " (default)";
usage.addKeyboardMouseBinding(key,explanation);
itr->second.second->getUsage(usage);
}
}