// test int main(){ int i; write(-1000); errorCount = 0; write(paraTest(10)); eight_queen(0); write(gCount); structTest(); breakContinueTest(); for(i = 0; i < 25; ++i){ write(callTest(i)); } for(i = 0; i < 25; ++i){ write(feb2(i)); } logicArithmaticTest(); arrayTest(); scopeVariableTest(); arithmaticTest(); loopTest(); relopTest(); dfs(0,0); write(errorCount); write(-2000); return 0; }
//------------------------------------------------------------------------------ int main(int argc, char** argv) { switch( TRAJECTORY ) { case TRAJECTORY_LINE: default: lineTest(); break; case TRAJECTORY_CIRCLE: circleTest(); break; case TRAJECTORY_SINE: sineTest(); break; case TRAJECTORY_DBLSINE: compressedsineandsineTest(); break; case TRAJECTORY_IMMELMANN: immelmannTest(); break; case TRAJECTORY_DBLIMMELMANN: dblimmelmannTest(); break; case TRAJECTORY_LOOP: loopTest(); break; } glutInit(&argc, argv); glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB |GLUT_DEPTH); glutInitWindowSize (600, 600); glutInitWindowPosition (100, 100); glutCreateWindow ( title.c_str() ); catmullrom_s = CubicSpline::linearly_interpolate_arclength( CUBIC_SPLINE_CATMULLROM, actor.trajectory.controlpoints ); catmullrom_M = CubicSpline::basisCatmullRom(); catmullrom_arclength_map = CubicSpline::map_spline( CUBIC_SPLINE_CATMULLROM, actor.trajectory.controlpoints ); std::cout << "catmullrom arclength s:" << catmullrom_s << std::endl; bspline_s = CubicSpline::linearly_interpolate_arclength( CUBIC_SPLINE_B, actor.trajectory.controlpoints ); bspline_M = CubicSpline::basisUniformNonrationalBSpline(); bspline_arclength_map = CubicSpline::map_spline( CUBIC_SPLINE_B, actor.trajectory.controlpoints ); std::cout << "bspline arclength s:" << bspline_s << std::endl; camera.project(); init (); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glutIdleFunc(idle); glutMainLoop(); return 0; }
PrefPortaudio::PrefPortaudio(Ui::PrefDialog *ui, QObject *parent) : QObject(parent), _ui(ui) { _settings = new QSettings(); connect(_ui->PaRingFileBtn, SIGNAL(clicked()), this, SLOT(ringFileChoose())); connect(_ui->PaHoldFileBtn, SIGNAL(clicked()), this, SLOT(holdFileChoose())); connect(_ui->PaIndevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(indevChangeDev(int))); connect(_ui->PaOutdevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(outdevChangeDev(int))); connect(_ui->PaRingdevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(ringdevChangeDev(int))); connect(_ui->PaRingdevTestBtn, SIGNAL(clicked()), this, SLOT(ringdevTest())); connect(_ui->PaLoopTestBtn, SIGNAL(clicked()), this, SLOT(loopTest())); connect(_ui->PaRefreshDevListBtn, SIGNAL(clicked()), this, SLOT(refreshDevList())); }
PrefPortaudio::PrefPortaudio(Ui::PrefDialog *ui, QObject *parent) : QObject(parent), _ui(ui) { connect(_ui->PaRingFileBtn, SIGNAL(clicked()), this, SLOT(ringFileChoose())); connect(_ui->PaHoldFileBtn, SIGNAL(clicked()), this, SLOT(holdFileChoose())); connect(_ui->PaIndevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(indevChangeDev(int))); connect(_ui->PaOutdevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(outdevChangeDev(int))); connect(_ui->PaRingdevCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(ringdevChangeDev(int))); connect(_ui->PaRingdevTestBtn, SIGNAL(clicked()), this, SLOT(ringdevTest())); connect(_ui->PaLoopTestBtn, SIGNAL(clicked()), this, SLOT(loopTest())); connect(_ui->PaRefreshDevListBtn, SIGNAL(clicked()), this, SLOT(refreshDevList())); connect(_ui->btnApplyPreprocessor, SIGNAL(toggled(bool)), this, SLOT(applyPreprocessors(bool))); }