]> Creatis software - clitk.git/blob - vv/vvs.cxx
f23054b5b365eaa922460571144d051f0361f5af
[clitk.git] / vv / vvs.cxx
1 /*=========================================================================
2
3  Program:   vv
4  Language:  C++
5  Author :   Pierre Seroul (pierre.seroul@gmail.com)
6
7 Copyright (C) 2008
8 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
9 CREATIS-LRMN http://www.creatis.insa-lyon.fr
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, version 3 of the License.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
23 =========================================================================*/
24
25 #include <QApplication>
26
27 #include "vvImageReader.h"
28 #include "vvMeshReader.h"
29 #include "vvInit.h"
30 #include "vvs.h"
31
32
33 int main( int argc, char** argv )
34 {
35     initialize_IO();
36     QApplication app(argc,argv);
37     vvDummyWindow w;
38     w.show();
39     return app.exec();
40 }
41
42 vvDummyWindow::vvDummyWindow()
43 {
44     setupUi(this);
45 }
46
47 void vvDummyWindow::Run()
48 {
49     vvImageReader imr;
50     imr.SetInputFilename("CT_UNTAGGED2MM_0.mhd");
51     imr.Update(IMAGE);
52
53     vvMeshReader r;
54     r.SetImage(imr.GetOutput());
55     r.SetFilename("struct.DCM");
56     std::vector<int> selected;
57     selected.push_back(1);
58     r.SetSelectedItems(selected);
59     r.Update();
60 }