void MainWidget::MainWidgetSetup() { SetupDialog *setup = new SetupDialog(this); setup->show(); connect(setup,SIGNAL(TimeToRefresh(int)),this,SLOT(MainWidgetSetRefreshTime(int))); connect(setup,SIGNAL(SliderToRefresh(int)),this,SLOT(SetOpacity(int))); connect(setup,SIGNAL(DefaultPosition()),this,SLOT(SetDefaultPosition())); }
/*! This version of the function moves all motors simultaneously to the desired positions. This has to be done in 2 steps: first the desired position is set as default for each motor. Then, all motors are intructed to move to the default position together. */ void BarrettHand::MoveTogether(double *destinations) { int finger_indices[4]; finger_indices[0] = BARRETT_SPREAD; finger_indices[1] = BARRETT_FINGER1; finger_indices[2] = BARRETT_FINGER2; finger_indices[3] = BARRETT_FINGER3; for (int i=0; i<4; i++) { int internal = RadiansToInternal( finger_indices[i], destinations[i] ); SetDefaultPosition( finger_indices[i], internal); } Move(BARRETT_ALL, -1); }
bool HDRCompositionInterface::Launch( const MetaProcess& P, const ProcessImplementation*, bool& dynamic, unsigned& /*flags*/ ) { // ### Deferred initialization if ( GUI == 0 ) { GUI = new GUIData( *this ); SetWindowTitle( "HDRComposition" ); UpdateControls(); // Restore position only if ( !RestoreGeometry() ) SetDefaultPosition(); AdjustToContents(); } dynamic = false; return &P == TheHDRCompositionProcess; }