当前位置: 首页>>代码示例>>C++>>正文


C++ MayaCamUI::mouseDrag方法代码示例

本文整理汇总了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() );
}
开发者ID:alexbw,项目名称:Cinder,代码行数:7,代码来源:OBJLoaderApp.cpp

示例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() );
}
开发者ID:bgbotond,项目名称:MarionetteZoo,代码行数:7,代码来源:MarionetteZooApp.cpp

示例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 );
}
开发者ID:QiangJi,项目名称:Cinder-Skinning,代码行数:7,代码来源:ProceduralAnimApp.cpp

示例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 );}
开发者ID:jefftimesten,项目名称:MPCApp,代码行数:8,代码来源:_TBOX_PREFIX_App.cpp

示例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() );
}
开发者ID:initialfx,项目名称:TDFadeCandy,代码行数:8,代码来源:FadeCandyClientApp.cpp

示例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() );
}
开发者ID:AKS2346,项目名称:Cinder,代码行数:9,代码来源:StereoscopicRenderingApp.cpp

示例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() );
//     */
}
开发者ID:chalmersgit,项目名称:wellingtonModel_withWater,代码行数:11,代码来源:wellingtonModelApp.cpp

示例8: mouseDrag

void HexagonMirrorApp::mouseDrag( MouseEvent event )
{
    mCamera.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
开发者ID:audionerd,项目名称:Cinder-Samples,代码行数:4,代码来源:HexagonMirrorApp.cpp

示例9: mouseDrag

void PointCloudApp::mouseDrag(MouseEvent event)
{
	mMayaCam.mouseDrag(event.getPos(), event.isLeftDown(), false, event.isRightDown());
}
开发者ID:thebarbariangroup,项目名称:Cinder-RSSDK,代码行数:4,代码来源:PointCloudApp.cpp

示例10: mouseDrag

void cApp::mouseDrag( MouseEvent event ){
    camUi.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
开发者ID:stdmtb,项目名称:n9,代码行数:3,代码来源:cApp.cpp

示例11: mouseDrag

void rayMarcherApp::mouseDrag( MouseEvent event )
{
    mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
    mCurrentLine = 0;
}
开发者ID:rkabir,项目名称:Cinder,代码行数:5,代码来源:rayMarcherApp.cpp

示例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 );
	}
}
开发者ID:bgbotond,项目名称:MarionetteZoo,代码行数:71,代码来源:MarionetteZooApp.cpp

示例13: mouseDrag

void EpicMonsterApp::mouseDrag( MouseEvent event )
{
	mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
开发者ID:EeroHeikkinen,项目名称:cinderworkshop,代码行数:4,代码来源:EpicMonsterApp.cpp

示例14: mouseDrag

void AudioVisualizerApp::mouseDrag( MouseEvent event )
{
	// handle mouse drag
	mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
	mCamera = mMayaCam.getCamera();
}
开发者ID:20SecondsToSun,项目名称:Cinder-Samples,代码行数:6,代码来源:AudioVisualizerApp.cpp

示例15: mouseDrag

void gpuPSApp::mouseDrag( MouseEvent event )
{
    mMousePos = event.getPos();
    mMayaCam.mouseDrag( event.getPos(), event.isLeftDown(), event.isMiddleDown(), event.isRightDown() );
}
开发者ID:jacquemin,项目名称:Cinder-Particles,代码行数:5,代码来源:gpuPSApp.cpp


注:本文中的MayaCamUI::mouseDrag方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。