void Calibrate::tabletPressEvent(coTUIElement *tUIItem) { if (tUIItem == StepX) { stepX(); } else if (tUIItem == StepY) { stepY(); } else if (tUIItem == StepZ) { stepZ(); } else if (tUIItem == Next) { stepNext(); } else if (tUIItem == Save) { save(); } else if (tUIItem == Load) { readFile(); } else if (tUIItem == Capture) { osg::Matrix m = cover->getViewerMat(); osg::Vec3 pos; pos = m.getTrans(); fprintf(stderr, "\a"); // beep int n = cI * ny * nz + cJ * nz + cK; if (position) { if (position[n].x != MyNAN) fprintf(stderr, "\a"); // beep position[n].x = pos[0]; position[n].y = pos[1]; position[n].z = pos[2]; } if (orientation) { orientation[n].o[0] = m(0, 0); orientation[n].o[1] = m(0, 1); orientation[n].o[2] = m(0, 2); orientation[n].o[3] = m(1, 0); orientation[n].o[4] = m(1, 1); orientation[n].o[5] = m(1, 2); orientation[n].o[6] = m(2, 0); orientation[n].o[7] = m(2, 1); orientation[n].o[8] = m(2, 2); } stepDown(); } }
SWizard::SWizard(QWidget *parent) : QWidget(parent), ui(new Ui::SWizard) { ui->setupUi(this); connect(ui->buttonNext, SIGNAL(clicked()), this, SLOT(stepNext())); connect(ui->buttonBack, SIGNAL(clicked()), this, SLOT(stepBack())); }