+++ /dev/null
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-#include "bbImagesReader.h"
-#include "bbcreaImageIOPackage.h"
-namespace bbcreaImageIO
-{
-
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaImageIO,ImagesReader)
-BBTK_BLACK_BOX_IMPLEMENTATION(ImagesReader,bbtk::AtomicBlackBox);
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-void ImagesReader::Process()
-{
-
- creaImageIO::WxSimpleDlg dlg(0,crea::std2wx(bbGetInputTitle()));
- dlg.ShowModal();
- bbSetOutputOut( dlg.getImagesSelected());
-
-
-}
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-void ImagesReader::bbUserSetDefaultValues()
-{
-
-}
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-void ImagesReader::bbUserInitializeProcessing()
-{
-
-}
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-void ImagesReader::bbUserFinalizeProcessing()
-{
-
-}
-}
-// EO namespace bbcreaImageIO
-
-
+++ /dev/null
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-#ifndef __bbImagesReader_h_INCLUDED__
-#define __bbImagesReader_h_INCLUDED__
-#include "bbcreaImageIO_EXPORT.h"
-#include "bbtkAtomicBlackBox.h"
-#include "creaImageIOWxSimpleDlg.h"
-
-namespace bbcreaImageIO
-{
-
-class bbcreaImageIO_EXPORT ImagesReader
- :
- public bbtk::AtomicBlackBox
-{
- BBTK_BLACK_BOX_INTERFACE(ImagesReader,bbtk::AtomicBlackBox);
-typedef std::vector<vtkImageData*> OutputImagesType;
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
- BBTK_DECLARE_INPUT(Title,std::string);
- BBTK_DECLARE_OUTPUT(Out,OutputImagesType);
- BBTK_PROCESS(Process);
- void Process();
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-};
-
-BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImagesReader,bbtk::AtomicBlackBox);
-BBTK_NAME("ImagesReader");
-BBTK_AUTHOR("frederic.cervenansky@creatis.insa-lyon.fr");
-BBTK_DESCRIPTION("ImagesReader is a simple application to select file(s) or directory or data from Gimmick database and display them. It handles DICOM,jpg,tif,png,bmp and mhd.");
-BBTK_CATEGORY("image;reader;dicom");
-typedef std::vector<vtkImageData*> OutputImagesType;
-BBTK_INPUT(ImagesReader,Title,"Title of the dialog",std::string,"");
-BBTK_OUTPUT(ImagesReader,Out,"The selected images",OutputImagesType,"");
-BBTK_END_DESCRIBE_BLACK_BOX(ImagesReader);
-//=====
-// Don't edit this file. This file is generated from xml description..
-//=====
-}
-// EO namespace bbcreaImageIO
-
-#endif // __bbImagesReader_h_INCLUDED__
-
+++ /dev/null
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!--==========================================================================
- STARTS THE DESCRIPTION OF THE BLACK BOX -->
-<blackbox name="ImagesReader">
- <!--========================================================================
- THE BOX DOCUMENTATION -->
- <author>cervenansky.frederic@creatis.insa-lyon.fr</author>
- <description>
- ImagesReader is a simple application to select file(s) or directory or data from Gimmick database and display them. It handles DICOM, jpg, tif, png, bmp and mhd."
- </description>
- <category>image;reader;dicom</category>
-
- <!--========================================================================
- #include directives to be put in the .h generated
- There must be one tag per file to include -->
- <include>creaImageIOWxSimpleView.h</include>
- <!--========================================================================
- INPUTS/OUTPUTS DECLARATION -->
-
- <input name="Title" type="std::string" description="Title of the dialog"/>
- <typedef>
- <PRE>
- typedef std::vector<vtkImageData*> OutputImagesType;</PRE>
- </typedef>
-
- <output name="Out" type="OutputImagesType" description="The selected images"/>
-
- <!--========================================================================
- PROCESS section -->
-
- <process>
- <PRE>
- creaImageIO::WxSimpleView dlg(0,crea::std2wx(bbGetInputTitle()));
- dlg.ShowModal();
- if (bbGetInputOutput()==0)
- {
- bbSetOutputOut( x.getImagesSelected());
- }
-
- </PRE>
- </process>
-
- <!--======================================================================
- CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
-
- <constructor>
- <PRE>
- bbSetInputImageDimension(3);
- bbSetInputTitle("Select image(s)");
- bbSetInputOutput(0);
- bbSetOutputOut(0);
- </PRE>
- </constructor>
-
- <!-- THE COPY-CONSTRUCTION METHOD BODY : -->
- <copyconstructor>
- <PRE>
- bbSetOutputOut(0);
- </PRE>
- </copyconstructor>
-
- <!-- THE DESTRUCTION METHOD BODY -->
- <destructor>
- <PRE>
- std::vector<vtkImageData*>::iterator i;
- for (i=bbGetOutputOut2().begin();i!=bbGetOutputOut2().end();++i) (*i)->Delete();
- </PRE>
- </destructor>
-
-</blackbox>
-