1 #include "bbcreaMaracasVisuSliceImage.h"
2 #include "bbcreaMaracasVisuPackage.h"
3 namespace bbcreaMaracasVisu
8 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,SliceImage)
9 BBTK_BLACK_BOX_IMPLEMENTATION(SliceImage,bbtk::AtomicBlackBox);
10 void SliceImage::Process()
12 printf("EED 0 SliceImage::Process \n");
13 vtkImageData *imagedata=NULL;
14 if ( bbGetInputIn()!=NULL ){
15 imageReslice->SetInput( bbGetInputIn() );
16 imageReslice->SetInformationInput(bbGetInputIn() );
17 imageReslice->SetResliceAxesDirectionCosines(1,0,0, 0,1,0 ,0,0,1);
18 imageReslice->SetResliceAxesOrigin(0,0, bbGetInputZ() );
19 imageReslice->SetOutputDimensionality(2);
20 imageReslice->SetInterpolationModeToLinear();
21 imagedata = imageReslice->GetOutput();
23 imagedata->UpdateInformation();
24 printf("EED 1 SliceImage::Process %p\n", imagedata);
26 bbSetOutputOut( imagedata );
30 //-----------------------------------------------------------------
31 void SliceImage::bbUserSetDefaultValues()
38 //-----------------------------------------------------------------
39 void SliceImage::bbUserInitializeProcessing()
41 imageReslice = vtkImageReslice::New();
44 //-----------------------------------------------------------------
45 void SliceImage::bbUserFinalizeProcessing()
49 //-----------------------------------------------------------------
53 // EO namespace bbcreaMaracasVisu