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);
}
//=====
//=====
// 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)
//=====
+ BBTK_DECLARE_INPUT(Active,bool);
BBTK_DECLARE_INPUT(DicomTags,std::vector<std::string>);
BBTK_DECLARE_INPUT(LstNameImages,std::vector<std::string>);
BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
BBTK_DESCRIPTION("No Description.");
BBTK_CATEGORY("empty");
+ BBTK_INPUT(ReadImages,Active,"(default true) Active true/false",bool,"");
BBTK_INPUT(ReadImages,DicomTags,"Dicom Tags (vector of Dicom tags ex: D0028_0030 D0020_0037)",std::vector<std::string>,"");
BBTK_INPUT(ReadImages,LstNameImages,"List path to images",std::vector<std::string>,"");