]> Creatis software - clitk.git/blob - vv/vvLandmarksPanel.h
Initial revision
[clitk.git] / vv / vvLandmarksPanel.h
1 #ifndef _vvLandmarksPanel_H
2 #define _vvLandmarksPanel_H
3
4 /*=========================================================================
5
6  Program:   vv
7  Module:    $RCSfile: vvLandmarksPanel.h,v $
8  Language:  C++
9  Date:      $Date: 2010/01/06 13:31:57 $
10  Version:   $Revision: 1.1 $
11  Author :   Pierre Seroul (pierre.seroul@gmail.com)
12
13 Copyright (C) 200COLUMN_IMAGE_NAME
14 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
15 CREATIS-LRMN http://www.creatis.insa-lyon.fr
16
17 This program is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation, version 3 of the License.
20
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with this program.  If not, see <http://www.gnu.org/licenses/>.
28
29 =========================================================================*/
30
31 #include <iostream>
32 #include <vector>
33 #include "vvLandmarks.h"
34
35 #include "ui_vvLandmarksPanel.h"
36
37 //====================================================================
38 class vvLandmarksPanel : public QWidget, private Ui::vvLandmarksPanel
39 {
40
41     Q_OBJECT
42
43 public:
44     // constructor - destructor
45     vvLandmarksPanel(QWidget * parent=0);
46     ~vvLandmarksPanel() {}
47     void SetCurrentLandmarks(vvLandmarks *lm, int time);
48     void SetCurrentPath(std::string path) {
49         mCurrentPath = path;
50     }
51     void SetCurrentImage(std::string filename);
52
53 public slots:
54     void Load();
55     void Save();
56     void RemoveLastPoint();
57     void AddPoint();
58     void CommentsChanged(int row, int column);
59 signals:
60     void UpdateRenderWindows();
61
62 private:
63     void AddPoint(int);
64     vvLandmarks* mCurrentLandmarks;
65     std::string mCurrentPath;
66 }; // end class vvLandmarksPanel
67 //====================================================================
68
69 #endif /* end #define _vvLandmarksPanel_H */
70