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


C++ TRACK::ClearLapSequence方法代码示例

本文整理汇总了C++中TRACK::ClearLapSequence方法的典型用法代码示例。如果您正苦于以下问题:C++ TRACK::ClearLapSequence方法的具体用法?C++ TRACK::ClearLapSequence怎么用?C++ TRACK::ClearLapSequence使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TRACK的用法示例。


在下文中一共展示了TRACK::ClearLapSequence方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: handleKeyPress


//.........这里部分代码省略.........
			mq1.AddMessage("Saved to file");
			track.Write(editordata.activetrack);
			break;
		
		case 'l':
			track.SetStart(cam.position.ScaleR(-1));
			track.SetStartOrientation(cam.dir.ReturnConjugate());
			mq1.AddMessage("Added start location");
			break;
		
		case 'k':
			track.RemoveStart();
			track.RemoveStartOrientation();
			mq1.AddMessage("Removed start location");
			break;
		
		case 'r':
			//mq1.AddMessage("Saved to file");
			tvec1.zero();
			tvec1.z = -1;
			tvec2 = cam.dir.ReturnConjugate().RotateVec(tvec1);
			l = track.Collide(cam.position.ScaleR(-1.0), tvec2, tvec1, true, activestrip, colbez);
			if (!l)
			{
				mq1.AddMessage("Can't select road: no road found under cursor");
			}
			break;
		
		case 'a':
			AutoTrace();
			break;
			
		case 'f':
			for (i = 0; i < 25; i++)
			{
				AutoTrace();
			}
			break;
		
		case 'i':
			camray.z = -1;
			camray = cam.dir.ReturnConjugate().RotateVec(camray);
			if (objects.FindClosestVert(cam.position.ScaleR(-1.0), camray, selvert, tstr))
				cout << tstr << endl;
			break;
			
		case '-':
			track.ClearLapSequence();
			mq1.AddMessage("All lap sequence markers cleared");
			break;
		
		case 'e':
			//mq1.AddMessage("Saved to file");
			tvec1.zero();
			tvec1.z = -1;
			tvec2 = cam.dir.ReturnConjugate().RotateVec(tvec1);
			l = track.Collide(cam.position.ScaleR(-1.0), tvec2, tvec1, true, tempstrip, colbez);
			if (!l)
			{
				mq1.AddMessage("Can't create lap sequence marker: no road found under cursor");
			}
			else
			{
				track.AddLapSequence(colbez);
			}
			break;
			
		case '2':
			mq1.AddMessage("Two-vertex selection mode");
			vertmode = TWOVERTS;
			break;
			
		case '3':
			mq1.AddMessage("Three-vertex selection mode");
			vertmode = THREEVERTS;
			break;
			
		case '4':
			mq1.AddMessage("Four-vertex selection mode");
			vertmode = FOURVERTS;
			break;
		
		//case SDLK_F11:
			//SDL_WM_ToggleFullScreen( surface );
			//ChangeDisplay(1280,1024,32,true);
			//menu.DisplayMenu();//DisplaySelect();
			//break;
		
		//case SDLK_F12:
			//menu.MainMenu();
			//break;
		
		default:
			keyman.OneTime(keysym->sym);
			break;
		}
	}
	
    return;
}
开发者ID:VDrift,项目名称:trackeditor,代码行数:101,代码来源:main.cpp


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