std::vector<vtkImageData*> mResults;
VectorMapInfoDicom mResultsDicomAtr;
creaImageIO::SimpleView mView;
- if( mView.readFile(bbGetInputLstNameImages() , bbGetInputDicomTags() , mResultsDicomAtr , mResults)==true )
+
+ if (bbGetInputActive()==true)
{
- bbSetOutputOut( mView.getVolumeSelected( mResults ) );
- bbSetOutputOutImages( mResults );
- bbSetOutputDicomInfo( mResultsDicomAtr );
+ if( mView.readFile(bbGetInputLstNameImages() , bbGetInputDicomTags() , mResultsDicomAtr , mResults)==true )
+ {
+ bbSetOutputOut( mView.getVolumeSelected( mResults ) );
+ bbSetOutputOutImages( mResults );
+ bbSetOutputDicomInfo( mResultsDicomAtr );
+ } else {
+ bbSetOutputOut( NULL );
+ printf("EED Warning! ReadImages::Process Files(s) not found. \n");
+ }// if readFile
} else {
- bbSetOutputOut( NULL );
- printf("EED Warning! ReadImages::Process Files(s) not found. \n");
- }// if readFile
+ bbSetOutputOutImages( mResults );
+ bbSetOutputDicomInfo( mResultsDicomAtr );
+ bbSetOutputOut( NULL );
+ }//Active
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
-// bbSetInputIn(0);
+ bbSetInputActive(true);
}
//=====