本文整理汇总了C++中ThisSim::setCaption方法的典型用法代码示例。如果您正苦于以下问题:C++ ThisSim::setCaption方法的具体用法?C++ ThisSim::setCaption怎么用?C++ ThisSim::setCaption使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ThisSim
的用法示例。
在下文中一共展示了ThisSim::setCaption方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main (int argc, char **argv)
{
ThisSim sim;
sim.setCaption("Spherical Robot (lpzrobots Simulator) Martius,Der 2007");
// run simulation
return sim.run(argc, argv) ? 0 : 1;
}
示例2: main
int main (int argc, char **argv)
{
int index = Simulation::contains(argv,argc,"-guide");
if(index >0 && argc>index){
teacher=atof(argv[index]);
useSym = 1;
}
index = Simulation::contains(argv,argc,"-k");
if(index >0 && argc>index){
k=atoi(argv[index]);
}
index = Simulation::contains(argv,argc,"-change");
if(index >0 && argc>index){
change=atoi(argv[index]);
}
index = Simulation::contains(argv,argc,"-bars");
if(index >0 && argc>index){
bars=atoi(argv[index]);
}
index = Simulation::contains(argv,argc,"-stairs");
if(index >0 && argc>index){
stairs=atoi(argv[index]);
}
track = Simulation::contains(argv,argc,"-notrack") == 0;
ThisSim sim;
sim.setGroundTexture("Images/red_velour_wb.rgb");
sim.setCaption("lpzrobots Simulator Martius et al, 2009");
return sim.run(argc, argv) ? 0 : 1;
}
示例3: main
int main (int argc, char **argv)
{
int index = Simulation::contains(argv,argc,"-guide");
if(index >0 && argc>index) {
teacher=atof(argv[index]);
}
index = Simulation::contains(argv,argc,"-bars");
if(index >0 && argc>index) {
bars=atoi(argv[index]);
}
track = Simulation::contains(argv,argc,"-track") != 0;
tracksegm = Simulation::contains(argv,argc,"-tracksegm") != 0;
ThisSim sim;
sim.setGroundTexture("Images/green_velour_wb.rgb");
sim.setCaption("lpzrobots Simulator Homeokinesis - One-Layer Controller");
return sim.run(argc, argv) ? 0 : 1;
}