anatomist 6.0.4
3D neuroimaging data viewer
profWin.h
Go to the documentation of this file.
1/* This software and supporting documentation are distributed by
2 * Institut Federatif de Recherche 49
3 * CEA/NeuroSpin, Batiment 145,
4 * 91191 Gif-sur-Yvette cedex
5 * France
6 *
7 * This software is governed by the CeCILL-B license under
8 * French law and abiding by the rules of distribution of free software.
9 * You can use, modify and/or redistribute the software under the
10 * terms of the CeCILL-B license as circulated by CEA, CNRS
11 * and INRIA at the following URL "http://www.cecill.info".
12 *
13 * As a counterpart to the access to the source code and rights to copy,
14 * modify and redistribute granted by the license, users are provided only
15 * with a limited warranty and the software's author, the holder of the
16 * economic rights, and the successive licensors have only limited
17 * liability.
18 *
19 * In this respect, the user's attention is drawn to the risks associated
20 * with loading, using, modifying and/or developing or reproducing the
21 * software by the user in light of its specific status of free software,
22 * that may mean that it is complicated to manipulate, and that also
23 * therefore means that it is reserved for developers and experienced
24 * professionals having in-depth computer knowledge. Users are therefore
25 * encouraged to load and test the software's suitability as regards their
26 * requirements in conditions enabling the security of their systems and/or
27 * data to be ensured and, more generally, to use and operate it in the
28 * same conditions as regards security.
29 *
30 * The fact that you are presently reading this means that you have had
31 * knowledge of the CeCILL-B license and that you accept its terms.
32 */
33
34
35#ifndef PROF_WIN_H
36#define PROF_WIN_H
37
39#include <set>
40#include <map>
41
42
43class QwtPlot;
44class QRadioButton;
46
47
49{
50 Q_OBJECT
51
52public:
53
61
63 {
66 };
67
68 QAProfileWindow( QWidget *parent=0, const char *name=0,
69 carto::Object options = carto::none(),
70 Qt::WindowFlags f = Qt::Window );
72
74 virtual Type type() const { return (Type)_classType; }
75
76 virtual void displayClickPoint();
77
78 virtual void refreshNow();
79
80 virtual void registerObject( anatomist::AObject* object,
81 bool temporaryObject = false,
82 int position = -1 );
83 virtual void unregisterObject( anatomist::AObject* object );
84
86
87 virtual const std::set<unsigned> & typeCount() const;
88 virtual std::set<unsigned> & typeCount();
89 virtual const std::string & baseTitle() const;
90
91protected:
92
93 virtual void Draw( bool flush = true );
94
95public slots:
96
97 void dirChange( int );
98
99private:
100 struct Private;
101 Private *d;
102
103 QRadioButton *bt1;
104 QRadioButton *bt2;
105 QRadioButton *bt3;
106 QRadioButton *bt4;
107
108 QwtPlot *graphic;
109
110 QAProfileStrategy *profS;
111
112 Direction pDir;
113
114 double *x_curve;
115
116 int pdim;
117 std::map< anatomist::AObject *, double * > pprof;
118
119 Point4df pmin;
120 Point4df pmax;
121
122 void initX();
123 QRgb newColor( int );
124
125 static int registerClass();
126
127 static std::set< unsigned > _profCount;
128 static std::string _baseTitle;
129 static int _classType;
130};
131
132#endif
#define slots
void setDirection(Direction)
virtual void unregisterObject(anatomist::AObject *object)
virtual void registerObject(anatomist::AObject *object, bool temporaryObject=false, int position=-1)
QAProfileWindow(QWidget *parent=0, const char *name=0, carto::Object options=carto::none(), Qt::WindowFlags f=Qt::Window)
virtual const std::set< unsigned > & typeCount() const
void dirChange(int)
virtual ~QAProfileWindow()
virtual const std::string & baseTitle() const
virtual std::set< unsigned > & typeCount()
virtual void displayClickPoint()
static AWindow * createProfileWindow(void *, carto::Object)
virtual Type type() const
Get the window type (2D, 3D or control)
Definition profWin.h:74
virtual void Draw(bool flush=true)
virtual void refreshNow()
Real drawing function, replacing AWindow::Refresh in subclasses of QAWindow - Don't forget to call QA...
QAWindow(QWidget *parent=0, const char *name=0, carto::Object params=carto::none(), Qt::WindowFlags f=Qt::WindowFlags())
Base Anatomist object (abstract)
Definition Object.h:97
AWindow()
AWindow constructor registers itself in the application.
Object none()
AimsVector< float, 4 > Point4df