/*========================================================================= medInria Copyright (c) INRIA 2019. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. =========================================================================*/ #include #include #include #include #include reformatPlugin::reformatPlugin(QObject *parent) : medPluginLegacy(parent) { } bool reformatPlugin::initialize() { if(!medReformatWorkspace::registered()) { qWarning() << "Unable to register medReformatWorkspace type"; } if (!resliceToolBox::registered()) { qWarning() << "Unable to register resliceToolBox type"; } if (!medCropToolBox::registered()) { qWarning() << "Unable to register medCropToolBox type"; } if (!resampleProcess::registered()) { qWarning() << "Unable to register resample process"; } return true; } QString reformatPlugin::description() const { QString description = \ "This plugin implements two toolboxes: \
Cropping

\ Crop a volume into a smaller one. \
Reslice

\ Reorient a volume, change its spacing or dimension. \

This plugin uses the ITK \ and VTK libraries."; return description; } QString reformatPlugin::name() const { return "Reformat"; } QString reformatPlugin::version() const { return REFORMATPLUGIN_VERSION; } QStringList reformatPlugin::types() const { return QStringList() << "medReformatWorkspace" << "medCropToolBox" << "resliceToolBox" << "resampleProcess"; }