]> Creatis software - clitk.git/blob - vv/vvs.cxx
XVI IO
[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 "vvs.h"
30
31
32 int main( int argc, char** argv )
33 {
34     initialize_IO();
35     QApplication app(argc,argv);
36     vvDummyWindow w;
37     w.show();
38     return app.exec();
39 }
40
41 vvDummyWindow::vvDummyWindow()
42 {
43     setupUi(this);
44 }
45
46 void vvDummyWindow::Run()
47 {
48     vvImageReader imr;
49     imr.SetInputFilename("CT_UNTAGGED2MM_0.mhd");
50     imr.Update(IMAGE);
51
52     vvMeshReader r;
53     r.SetImage(imr.GetOutput());
54     r.SetFilename("struct.DCM");
55     std::vector<int> selected;
56     selected.push_back(1);
57     r.SetSelectedItems(selected);
58     r.Update();
59 }