void HistogramEqualizationProcessor::confirm() { HistogramEqualizationProcessor *newProcessor = new HistogramEqualizationProcessor(); newProcessor->_tunel = _tunel; emit processorCreated(newProcessor); }
void RotateProcessor::confirm (Area area, ImageAlgorithm::GeometricAlgorithmType algorithmType, double angle) { RotateProcessor *processor = new RotateProcessor(); processor->_algorithmType = algorithmType; processor->_angle = angle; processor->_area = area; emit processorCreated(processor); }
void DilationErosionProcessor::confirm(DilationErosionProcessor::DilationErosionType type, int width, int height, int center, bool gray, Area area, QVector<int> matrix) { DilationErosionProcessor *processor = new DilationErosionProcessor(); processor->_type = type; processor->_width = width; processor->_height = height; processor->_center = center; processor->_center = center; processor->_gray = gray; processor->_matrix = matrix; emit processorCreated(processor); }
void FilterProcessor::confirm(FilterProcessor::FilterType type, int width, int height, Area area, QVector<int> convolutionMatrix, int convolutionDivisor, int convolutionOffset) { FilterProcessor *processor = new FilterProcessor(); processor->_type = type; processor->_width = width; processor->_height = height; processor->_area = area; processor->_convolutionMatrix = convolutionMatrix; processor->_convolutionDivisor = convolutionDivisor; processor->_convolutionOffset = convolutionOffset; emit processorCreated(processor); }
void ToGrayProcessor::confirm() { ToGrayProcessor *newProcessor = new ToGrayProcessor(); newProcessor->_type = _type; emit processorCreated(newProcessor); }
void BoundProcessor::confirm(BoundProcessor::BoundType type) { BoundProcessor *processor = new BoundProcessor(); processor->type = type; emit processorCreated(processor); }
void HistogramMatchProcessor::confirm(QString path) { HistogramMatchProcessor *processor = new HistogramMatchProcessor(); processor->_path = path; emit processorCreated(processor); }
if(choice == defaultChoice) action->setChecked(true); } ui->actionImageDisplays->setMenu(&mImageDisplayMenu); ui->actionStop->setChecked(true); ui->actionProblems->setVisible(false); connect(&mInterface, SIGNAL(portValueChanged(int, QString,QVariant)), SLOT(check())); connect(&mInterface, SIGNAL(filterConnected(PortId,PortId,int)), SLOT(check())); connect(&mInterface, SIGNAL(filterDisconnected(PortId,PortId,int)), SLOT(check())); connect(&mInterface,SIGNAL(processorsDisconnected(int,int)), SLOT(check())); connect(&mInterface,SIGNAL(inputPortConnected(QString,PortId,int)), SLOT(check())); connect(&mInterface,SIGNAL(inputPortDisconnected(QString,PortId,int)), SLOT(check())); connect(&mInterface, SIGNAL(filterCreated(FilterInfo,int)), SLOT(check())); connect(&mInterface, SIGNAL(filterDeleted(FilterInfo)), SLOT(check())); connect(&mInterface, SIGNAL(processorCreated(ProcessorInfo)), SLOT(check())); connect(&mInterface, SIGNAL(processorDeleted(ProcessorInfo)), SLOT(check())); connect(&mInterface, SIGNAL(cleared()), SLOT(check())); connect(&mInterface, SIGNAL(executionFinished()), SLOT(onExecutionFinished())); connect(&mInterface, SIGNAL(executionStarted()), SLOT(onExecutionStarted())); connect(&mInterface, SIGNAL(makroInputCreated(QString,PortId,int)), SLOT(check())); connect(&mInterface, SIGNAL(makroInputRemoved(PortId,int)), SLOT(check())); // connect signals to olvis interface always QUEUED, to be sure gui has finished all repaints and animations connect(this, SIGNAL(startRequested()),& mInterface, SLOT(start()), Qt::QueuedConnection); connect(this, SIGNAL(stopRequested()), &mInterface, SLOT(stop()), Qt::QueuedConnection); connect(this, SIGNAL(pauseRequested()), &mInterface, SLOT(pause()), Qt::QueuedConnection); connect(this, SIGNAL(stepRequested(bool)), &mInterface, SLOT(step(bool)), Qt::QueuedConnection); connect(this, SIGNAL(setTraceEnabled(bool)), &mInterface, SLOT(setTracingEnabled(bool)), Qt::QueuedConnection); onExecutionFinished(); check();
void ReverseProcessor::confirm() { ReverseProcessor *newProcessor = new ReverseProcessor(); emit processorCreated(newProcessor); }