本文整理汇总了C++中PV3D::clone方法的典型用法代码示例。如果您正苦于以下问题:C++ PV3D::clone方法的具体用法?C++ PV3D::clone怎么用?C++ PV3D::clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PV3D
的用法示例。
在下文中一共展示了PV3D::clone方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: key
//.........这里部分代码省略.........
acumYaw = 0;
camera.desplazar(0.0,2.0,0.0);
break;
case 's':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.desplazar(0.0,-2.0,0.0);
break;
// ------ Desplazar Z
case 'z':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.desplazar(0.0,0.0,2.0);
break;
case 'x':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.desplazar(0.0,0.0,-2.0);
break;
// ------ Ortogonal
case 'o':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.ortogonal(xLeft,xRight,yBot,yTop,N,F);
break;
// ------ Perspectiva
case 'p':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.perspectiva(xLeft,xRight,yBot,yTop,N,F);
break;
// ------ Oblicua
case 'l':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.oblicua(aux.clone(),xLeft,xRight,yBot,yTop,N,F);
break;
// ------ Gira X
case '1':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.giraX(0.1);
break;
// ------ Gira Y
case '2':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.giraY(0.1);
break;
// ------ Gira Z
case '3':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.giraZ(0.1);
break;
// ------ Vista Lateral
case '4':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.lateral();
break;
// ------ Vista Frontal
case '5':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.frontal();
break;
// ------ Vista Cenital
case '6':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.cenital();
break;
// ------ Vista Esquina
case '7':
acumRoll = 0;
acumPitch = 0;
acumYaw = 0;
camera.esquina();
break;
default:
need_redisplay = false;
cout<<key<<endl;
break;
}
if (need_redisplay)
glutPostRedisplay();
}