-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathh2discreteflowfactorythread.h
41 lines (31 loc) · 1.05 KB
/
h2discreteflowfactorythread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef H2DISCRETEFLOWFACTORYTHREAD_H
#define H2DISCRETEFLOWFACTORYTHREAD_H
#include <QThread>
#include "tools.h"
#include "discreteflowfactory.h"
class ActionHandler;
class H2DiscreteFlowFactoryThread : public QThread
{
Q_OBJECT
friend class TopFactory;
friend class ActionHandler;
public:
H2DiscreteFlowFactoryThread(GroupRepresentation<H2Isometry> *rhoDomain, GroupRepresentation<H2Isometry> *rhoImage,
LiftedGraphFunctionTriangulated<H2Point, H2Isometry> *domainFunction,
LiftedGraphFunctionTriangulated<H2Point, H2Isometry> *imageFunction);
uint getNbIterations() const;
void updateSupError();
void updateEnergyError();
void updateErrors();
double getEnergyError() const;
double getSupError() const;
double getTolerance() const;
void setFlowChoice(int flowChoice);
public slots:
void run();
void iterate(uint N);
void stopRunning();
private:
DiscreteFlowFactory<H2Point, H2Isometry> factory;
};
#endif // H2DISCRETEFLOWFACTORYTHREAD_H