1 #include <creaVtkBasicSlicer.h>
2 #include "vtkImageViewer2.h"
3 #include "vtkRenderWindowInteractor.h"
4 #include "vtkRenderWindow.h"
6 int main(int argc, char* argv[])
8 std::cout << "** creaSample_VtkBasicSlicer : begin of main "<<std::endl;
10 vtkImageData* I = vtkImageData::New();
11 crea::VtkBasicSlicer( I );
14 vtkImageViewer2* viewer= vtkImageViewer2::New();
15 vtkRenderWindowInteractor* renderWindowInteractor=
16 vtkRenderWindowInteractor::New();
17 viewer->SetupInteractor( renderWindowInteractor);
18 viewer->SetInput( I );
20 viewer->SetColorWindow( 255);
21 viewer->SetColorLevel( 128);
23 renderWindowInteractor->Start();
26 std::cout << "** creaSample_VtkBasicSlicer : end of main "<<std::endl;