Ejemplo n.º 1
0
void BioXASZebraInputView::setControl(BioXASZebraInput *newControl)
{
	if (control_ != newControl) {

		if (control_) {
			disconnect( control_, 0, this, 0 );
		}

		control_ = newControl;

		if (control_) {
			connect( control_, SIGNAL(connected(bool)), this, SLOT(refresh()) );
			connect( control_, SIGNAL(inputValueChanged(int)), this, SLOT(updateInputBox()) );
			connect( control_, SIGNAL(inputValueStringChanged(QString)), this, SLOT(updateInputLabel()) );
			connect( control_, SIGNAL(inputStateChanged(double)), this, SLOT(updateInputStatusLabel()) );
		}

		refresh();

		emit controlChanged(control_);
	}
}
Ejemplo n.º 2
0
void MainWindow::startProcessing()
{
    connect(controller->processingThread, SIGNAL(newProcessedFrame(QImage)), this, SLOT(updateVideoLabel(QImage)));
    connect(controller->processingThread->tracker_, SIGNAL(newCorrelationImage(QImage)), this, SLOT(updateOutputLabel(QImage)));
    connect(controller->processingThread->tracker_, SIGNAL(newFilterImage(QImage)), this, SLOT(updateFilterLabel(QImage)));
    connect(controller->processingThread->tracker_, SIGNAL(newInputImage(QImage)), this, SLOT(updateInputLabel(QImage)));

    // enable play btn and set the icon to pause
    ui->playButton->setEnabled(true);
    ui->playButton->setIcon(QIcon(":/pauseIcon"));
    // enable the menu option for selecting the target
    ui->actionSelect_target->setEnabled(true);
}
Ejemplo n.º 3
0
void BioXASZebraInputView::refresh()
{
	updateInputBox();
	updateInputLabel();
	updateInputStatusLabel();
}