/*========================================================================= 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; description += "This plugin implements two toolboxes: "; description += "

Cropping

"; description += "Crop a volume into a smaller one. You can manually move and transform the cropping box on the view holding the edges with your mouse.
"; description += "From the View settings toolbox, you can change the volume orientation and adapt the cropping box in this new direction.
"; description += "When you are ready, click on 'Apply' to apply the segmentation to the volume. The output is displayed in the view.
"; description += "Click on 'Save' to save the output in the database."; description += "

Reslice

"; description += "Reorient a volume, change its spacing or dimension."; description += "
    "; description += "
  • Drop a volume in the view.
  • "; description += "
  • Click on 'Start Reslice'.
  • "; description += "
  • The view is split in 3 orientations and 1 view in 3D.
  • "; description += "
  • Hold the red and green axis with your mouse to rotate the volume.
  • "; description += "
  • Click on 'o' to reset the orientations.
  • "; description += "
  • You can change the volume constrast holding left-click on the views.
  • "; description += "
  • Click on 'r' to reset the contrast changes.
  • "; description += "
  • In the toolbox, you can choose between 'Spacing' and 'Dimension' parameters to apply to the volume.
  • "; description += "
  • When you are ready, click on 'Save Image' to export the reformated volume in the database.
  • "; description += "
"; description += "This plugin uses the ITK and VTK libraries: https://itk.org and https://vtk.org"; 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"; }