]> Creatis software - crea.git/blob - samples/creaSample_VtkBasicSlicer/main.cxx
458038d8101aa1b414280d427b97a7d06ce20ef7
[crea.git] / samples / creaSample_VtkBasicSlicer / main.cxx
1 #include <creaVtkBasicSlicer.h>
2 #include "vtkImageViewer2.h"
3 #include "vtkRenderWindowInteractor.h"
4 #include "vtkRenderWindow.h"
5
6 int main(int argc, char* argv[])
7 {       
8  std::cout << "** creaSample_VtkBasicSlicer : begin of main "<<std::endl;
9
10  vtkImageData* I = vtkImageData::New();
11  crea::VtkBasicSlicer( I );
12
13  /*
14    vtkImageViewer2* viewer= vtkImageViewer2::New();
15   vtkRenderWindowInteractor* renderWindowInteractor=
16     vtkRenderWindowInteractor::New();
17   viewer->SetupInteractor( renderWindowInteractor);
18   viewer->SetInput( I );
19   viewer->Render();
20   viewer->SetColorWindow( 255);
21   viewer->SetColorLevel( 128);
22
23   renderWindowInteractor->Start();
24  */
25
26 std::cout << "** creaSample_VtkBasicSlicer : end of main "<<std::endl;
27 }