/*========================================================================= medInria Copyright (c) INRIA 2013 - 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 medCreateMeshFromMaskPlugin::medCreateMeshFromMaskPlugin(QObject *parent) : medPluginLegacy(parent) { } bool medCreateMeshFromMaskPlugin::initialize() { if( !medCreateMeshFromMask::registered() ) { qWarning() << "Unable to register medCreateMeshFromMask process"; } if ( !medCreateMeshFromMaskToolBox::registered() ) { qWarning() << "Unable to register medCreateMeshFromMask toolbox"; } return true; } QString medCreateMeshFromMaskPlugin::description() const { QString description; description += "

Convert a Mesh from Mask Tutorial

"; description += "Convert a mask to a closed surface mesh:"; description += "
    "; description += "
  • Drop a volume or mask in the view.
  • "; description += "
  • If needed, choose a threshold. Pixel values over or equal to this threshold are going to be computed.
  • "; description += "
  • You can choose to decimate the output mesh, then choose the reduction factor.
  • "; description += "
  • You can choose to smooth the output mesh, then choose the iteration number and the relaxation factor.
  • "; description += "
  • When you are ready, click on 'Run'.
  • "; description += "
"; description += "This plugin uses the VTK library: https://vtk.org"; return description; } QString medCreateMeshFromMaskPlugin::name() const { return "Create Mesh From Mask"; } QString medCreateMeshFromMaskPlugin::version() const { return MEDCREATEMESHFROMMASKPLUGIN_VERSION; } QStringList medCreateMeshFromMaskPlugin::types() const { return QStringList() << "medCreateMeshFromMask"; }