Anatomist module for cortical folds graphs


qwAnnealParams.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1998-2003 CEA
3 *
4 * This software and supporting documentation were developed by
5 * CEA/DSV/SHFJ
6 * 4 place du General Leclerc
7 * 91401 Orsay cedex
8 * France
9 *
10 */
11
12#ifndef ANAFOLD_FGRAPH_QWANNEALPARAMS_H
13#define ANAFOLD_FGRAPH_QWANNEALPARAMS_H
14
15
16#include <anatomist/observer/Observer.h>
17#include <qwidget.h>
18
19namespace sigraph
20{
21 class AnnealConfigurator;
22}
23
24namespace anatomist
25{
26 class AFGraph;
27}
28
29
31class QAnnealParams : public QWidget, public anatomist::Observer
32{
33 Q_OBJECT
34
35public:
36 enum State
37 {
39 };
40
41 QAnnealParams( QWidget* parent, const char* name,
42 anatomist::AFGraph* fusion );
43 virtual ~QAnnealParams();
44 virtual void update( const anatomist::Observable* obs, void* arg = 0 );
45
46signals:
47
48public slots:
49 void loadConfig();
50 void saveConfig();
51 void start();
52 void stop();
55
56
57protected slots:
59 void setThreaded( bool );
60
61protected:
66 virtual bool event( QEvent* e );
67
68 sigraph::AnnealConfigurator *_conf;
70
71private:
72 struct PrivateData;
73 class AnnealPThread;
74 friend class AnnealPThread;
75 PrivateData *pdat;
76};
77
78
79#endif
80
QAnnealParams(QWidget *parent, const char *name, anatomist::AFGraph *fusion)
void updateInterface()
void selectPlotFile()
virtual bool event(QEvent *e)
sigraph::AnnealConfigurator * _conf
void loadConfig()
anatomist::AFGraph * _fusion
virtual ~QAnnealParams()
void selectTranslationFile()
virtual void update(const anatomist::Observable *obs, void *arg=0)
void annealStepFinished()
void saveConfig()
void updateBoxes()
friend class AnnealPThread
void setThreaded(bool)
void annealThread()
void updateConfig()