19#include <FMEThirdPartyWarningsDisable.h>
21#include <FMEThirdPartyWarningsRestore.h>
42 _dicomTree = dicomTree;
46 _dicomTree = dicomTree->copy();
50 void setFilename(
const std::string& filename) { _filename = filename; }
54 virtual void run()
override;
57 std::string _filename;
58 bool _savingWasSuccessful;
75 bool _isInputRTObjectValid();
77 bool _getInputDicomTreeFromBaseField();
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERMODULES_EXPORT
BackgroundTaskBaseModule(int n=1, int m=0)
Constructor.
bool isSynchronous() const
Checks whether the task is synchronous, which means it is not executed in a different thread.
ModuleBackgroundTask(Module *module, FloatField *progressField=nullptr, StringField *statusField=nullptr)
DcmtkBase derived base object class for base objects that wrap RT related objects.
RTObjectSaveBackgroundTask(Module *module, FloatField *progressField, StringField *statusField)
void setDicomTree(DCMTree::TreePtr dicomTree)
bool hasSuccessfullySaved() const
virtual void run() override
Method that needs to be reimplemented. This is called from the worker thread.
virtual ~RTObjectSaveBackgroundTask()
void setFilename(const std::string &filename)
virtual void handleNotification(Field *field) override
Handle field changes of the field field.
#define ML_MODULE_CLASS_HEADER(className)
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.