本文整理汇总了C++中MayaCamUI::mouseDrag方法的典型用法代码示例。如果您正苦于以下问题:C++ MayaCamUI::mouseDrag方法的具体用法?C++ MayaCamUI::mouseDrag怎么用?C++ MayaCamUI::mouseDrag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MayaCamUI
的用法示例。
在下文中一共展示了MayaCamUI::mouseDrag方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mouseDrag
void ObjLoaderApp::mouseDrag( MouseEvent event )
{
if( event.isAltDown() )
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
else
mArcball.mouseDrag( event.getPos() );
}
示例2: mouseDrag
void MarionetteZooApp::mouseDrag( MouseEvent event )
{
if ( mCameraLock )
mBulletWorld->mouseDrag( event, mMayaCam.getCamera() );
else
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
示例3: mouseDrag
void ProceduralAnimApp::mouseDrag( MouseEvent event )
{
// Added support for international mac laptop keyboards.
bool middle = event.isMiddleDown() || ( event.isMetaDown() && event.isLeftDown() );
bool right = event.isRightDown() || ( event.isControlDown() && event.isLeftDown() );
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown() && !middle && !right, middle, right );
}
示例4: mouseDrag
void _TBOX_PREFIX_App::mouseDrag( MouseEvent event )
{
mMousePos = event.getPos();
// Added/hacked support for international mac laptop keyboards.
bool middle = event.isMiddleDown() || ( event.isMetaDown() && event.isLeftDown() );
bool right = event.isRightDown() || ( event.isControlDown() && event.isLeftDown() );
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown() && !middle && !right, middle, right );}
示例5: mouseDrag
void FadeCandyClientApp::mouseDrag( MouseEvent event )
{
// keep track of the mouse
mMousePos = event.getPos();
// let the camera handle the interaction
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
示例6: mouseDrag
void StereoscopicRenderingApp::mouseDrag( MouseEvent event )
{
// handle camera
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
// update stereoscopic camera
mCamera.setEyePoint( mMayaCam.getCamera().getEyePoint() );
mCamera.setCenterOfInterestPoint( mMayaCam.getCamera().getCenterOfInterestPoint() );
}
示例7: mouseDrag
void wellingtonModelApp::mouseDrag(MouseEvent event)
{
// /*
mouseMove(event);
if( event.isAltDown() )
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
else
mArcball.mouseDrag( event.getPos() );
// */
}
示例8: mouseDrag
void HexagonMirrorApp::mouseDrag( MouseEvent event )
{
mCamera.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
示例9: mouseDrag
void PointCloudApp::mouseDrag(MouseEvent event)
{
mMayaCam.mouseDrag(event.getPos(), event.isLeftDown(), false, event.isRightDown());
}
示例10: mouseDrag
void cApp::mouseDrag( MouseEvent event ){
camUi.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
示例11: mouseDrag
void rayMarcherApp::mouseDrag( MouseEvent event )
{
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
mCurrentLine = 0;
}
示例12: keyDown
void MarionetteZooApp::keyDown( KeyEvent event )
{
switch( event.getCode() )
{
case KeyEvent::KEY_f:
if ( ! isFullScreen() )
{
setFullScreen( true );
if ( mParams.isVisible() )
showCursor();
else
hideCursor();
}
else
{
setFullScreen( false );
showCursor();
}
break;
case KeyEvent::KEY_s:
{
mndl::params::PInterfaceGl::showAllParams( !mParams.isVisible() );
if ( isFullScreen() )
{
if ( mParams.isVisible() )
showCursor();
else
hideCursor();
}
break;
}
case KeyEvent::KEY_l:
{
mCameraLock = ! mCameraLock;
}
break;
case KeyEvent::KEY_LEFT:
{
mMayaCam.mouseDown( Vec2i( mStepKey, 0 ) );
mMayaCam.mouseDrag( Vec2i( mStepKey, 0 ), true, false, false );
mMayaCam.mouseDrag( Vec2i( 0 , 0 ), true, false, false );
}
break;
case KeyEvent::KEY_RIGHT:
{
mMayaCam.mouseDown( Vec2i( 0 , 0 ) );
mMayaCam.mouseDrag( Vec2i( 0 , 0 ), true, false, false );
mMayaCam.mouseDrag( Vec2i( mStepKey, 0 ), true, false, false );
}
break;
case KeyEvent::KEY_UP:
{
mMayaCam.mouseDown( Vec2i( 0, mStepKey ) );
mMayaCam.mouseDrag( Vec2i( 0, mStepKey ), true, false, false );
mMayaCam.mouseDrag( Vec2i( 0, 0 ), true, false, false );
}
break;
case KeyEvent::KEY_DOWN:
{
mMayaCam.mouseDown( Vec2i( 0, 0 ) );
mMayaCam.mouseDrag( Vec2i( 0, 0 ), true, false, false );
mMayaCam.mouseDrag( Vec2i( 0, mStepKey ), true, false, false );
}
break;
case KeyEvent::KEY_ESCAPE:
quit();
break;
default:
mBulletWorld->keyDown( event );
}
}
示例13: mouseDrag
void EpicMonsterApp::mouseDrag( MouseEvent event )
{
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
示例14: mouseDrag
void AudioVisualizerApp::mouseDrag( MouseEvent event )
{
// handle mouse drag
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
mCamera = mMayaCam.getCamera();
}
示例15: mouseDrag
void gpuPSApp::mouseDrag( MouseEvent event )
{
mMousePos = event.getPos();
mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}