BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FitWorker Class Reference

Description

Definition at line 23 of file FitWorker.h.

Inheritance diagram for FitWorker:
[legend]
Collaboration diagram for FitWorker:
[legend]

Public Slots

void interruptFitting ()
 
void startFit ()
 

Signals

void error (const QString &message)
 
void finished ()
 
void started ()
 

Public Member Functions

 FitWorker (std::shared_ptr< FitObjectiveBuilder > suite)
 

Private Attributes

std::shared_ptr< FitObjectiveBuilderm_fit_objective
 

Constructor & Destructor Documentation

◆ FitWorker()

FitWorker::FitWorker ( std::shared_ptr< FitObjectiveBuilder suite)
inline

Definition at line 27 of file FitWorker.h.

27 { m_fit_objective = suite; }
std::shared_ptr< FitObjectiveBuilder > m_fit_objective
Definition: FitWorker.h:44

References m_fit_objective.

Member Function Documentation

◆ error

void FitWorker::error ( const QString &  message)
signal

◆ finished

void FitWorker::finished ( )
signal

◆ interruptFitting

void FitWorker::interruptFitting ( )
slot

Definition at line 30 of file FitWorker.cpp.

31 {
32  if (m_fit_objective)
33  m_fit_objective->interruptFitting();
34 }

References m_fit_objective.

Referenced by FitWorkerLauncher::runFitting().

◆ started

void FitWorker::started ( )
signal

◆ startFit

void FitWorker::startFit ( )
slot

Definition at line 19 of file FitWorker.cpp.

20 {
21  emit started();
22  try {
23  m_fit_objective->runFit();
24  } catch (const std::exception& ex) {
25  emit error(QString::fromLatin1(ex.what()));
26  }
27  emit finished();
28 }
void started()
void finished()
void error(const QString &message)

References error(), finished(), m_fit_objective, and started().

Referenced by FitWorkerLauncher::runFitting().

Member Data Documentation

◆ m_fit_objective

std::shared_ptr<FitObjectiveBuilder> FitWorker::m_fit_objective
private

Definition at line 44 of file FitWorker.h.

Referenced by FitWorker(), interruptFitting(), and startFit().


The documentation for this class was generated from the following files: