1 #ifndef __bbSlicerCreateaDICOMSeries_h_INCLUDED__
2 #define __bbSlicerCreateaDICOMSeries_h_INCLUDED__
4 #include "bbSlicer_EXPORT.h"
5 #include "bbtkAtomicBlackBox.h"
14 #include <ModuleDescriptionUtilities.h>
15 #include <ModuleDescriptionParser.h>
16 #include <ModuleParameterGroup.h>
17 #include <ModuleDescription.h>
18 #include <ModuleParameter.h>
20 #include "CreationTool.h"
24 class bbSlicer_EXPORT CreateaDICOMSeries
26 public bbtk::AtomicBlackBox {
27 BBTK_BLACK_BOX_INTERFACE ( CreateaDICOMSeries , bbtk::AtomicBlackBox ) ;
31 BBTK_DECLARE_INPUT ( patientName , std::string );
32 BBTK_DECLARE_INPUT ( patientID , std::string );
33 BBTK_DECLARE_INPUT ( patientComments , std::string );
34 BBTK_DECLARE_INPUT ( studyID , std::string );
35 BBTK_DECLARE_INPUT ( studyDate , std::string );
36 BBTK_DECLARE_INPUT ( studyComments , std::string );
37 BBTK_DECLARE_INPUT ( studyDescription , std::string );
38 BBTK_DECLARE_INPUT ( modality , std::string );
39 BBTK_DECLARE_INPUT ( manufacturer , std::string );
40 BBTK_DECLARE_INPUT ( model , std::string );
41 BBTK_DECLARE_INPUT ( seriesNumber , std::string );
42 BBTK_DECLARE_INPUT ( seriesDescription , std::string );
43 BBTK_DECLARE_INPUT ( rescaleIntercept , double );
44 BBTK_DECLARE_INPUT ( rescaleSlope , double );
45 BBTK_DECLARE_INPUT ( inputVolume , std::string );
46 BBTK_DECLARE_INPUT ( dicomDirectory , std::string );
47 BBTK_DECLARE_INPUT ( dicomPrefix , std::string );
48 BBTK_DECLARE_INPUT ( dicomNumberFormat , std::string );
49 BBTK_DECLARE_INPUT ( reverseImages , bool );
50 BBTK_DECLARE_INPUT ( useCompression , bool );
54 BBTK_PROCESS ( Process ) ;
57 void execute ( std::string lib , int _argc , char * _argv[] ) ;
60 BBTK_BEGIN_DESCRIBE_BLACK_BOX ( CreateaDICOMSeries , bbtk::AtomicBlackBox ) ;
61 BBTK_NAME ( "CreateaDICOMSeries" ) ;
62 BBTK_AUTHOR ( "Bill Lorensen" ) ;
63 BBTK_DESCRIPTION ( "Create a DICOM Series from a Slicer volume. User can specify values for selected DICOM tags in the UI. Given the number of tags DICOM series have, it is impossible to expose all tags in UI. So only important tags can be set by the user." ) ;
64 BBTK_CATEGORY ( "Converters" ) ;
66 // GENERATED DESCRPTION
68 BBTK_INPUT(CreateaDICOMSeries , patientName , "patientName" , std::string, "");
69 BBTK_INPUT(CreateaDICOMSeries , patientID , "patientID" , std::string, "");
70 BBTK_INPUT(CreateaDICOMSeries , patientComments , "patientComments" , std::string, "");
71 BBTK_INPUT(CreateaDICOMSeries , studyID , "studyID" , std::string, "");
72 BBTK_INPUT(CreateaDICOMSeries , studyDate , "studyDate" , std::string, "");
73 BBTK_INPUT(CreateaDICOMSeries , studyComments , "studyComments" , std::string, "");
74 BBTK_INPUT(CreateaDICOMSeries , studyDescription , "studyDescription" , std::string, "");
75 BBTK_INPUT(CreateaDICOMSeries , modality , "modality" , std::string, "");
76 BBTK_INPUT(CreateaDICOMSeries , manufacturer , "manufacturer" , std::string, "");
77 BBTK_INPUT(CreateaDICOMSeries , model , "model" , std::string, "");
78 BBTK_INPUT(CreateaDICOMSeries , seriesNumber , "seriesNumber" , std::string, "");
79 BBTK_INPUT(CreateaDICOMSeries , seriesDescription , "seriesDescription" , std::string, "");
80 BBTK_INPUT(CreateaDICOMSeries , rescaleIntercept , "rescaleIntercept" , double, "");
81 BBTK_INPUT(CreateaDICOMSeries , rescaleSlope , "rescaleSlope" , double, "");
82 BBTK_INPUT(CreateaDICOMSeries , inputVolume , "inputVolume" , std::string, "");
83 BBTK_INPUT(CreateaDICOMSeries , dicomDirectory , "dicomDirectory" , std::string, "");
84 BBTK_INPUT(CreateaDICOMSeries , dicomPrefix , "dicomPrefix" , std::string, "");
85 BBTK_INPUT(CreateaDICOMSeries , dicomNumberFormat , "dicomNumberFormat" , std::string, "");
86 BBTK_INPUT(CreateaDICOMSeries , reverseImages , "reverseImages" , bool, "");
87 BBTK_INPUT(CreateaDICOMSeries , useCompression , "useCompression" , bool, "");
89 // EO GENERATED DESCRIPTION
91 BBTK_END_DESCRIBE_BLACK_BOX ( CreateaDICOMSeries ) ;
94 #endif // __bbSlicerCreateaDICOMSeries_h_INCLUDED__