-/*
-#include "MementoState.h"
-
-#include <vtkProperty.h>
-#include <vtkRenderWindow.h>
-#include <vtkMetaImageReader.h>
-
-#include <QFileDialog>
-#include <QMessageBox>
-
-#ifdef _WIN32
-# define PLUGIN_PREFIX ""
-# define PLUGIN_EXT "dll"
-# define PLUGIN_REGEX "Plugins file (*.dll);;All files (*)"
-#else
-# define PLUGIN_PREFIX "lib"
-# define PLUGIN_EXT "so"
-# define PLUGIN_REGEX "Plugins file (*.so);;All files (*)"
-#endif // _WIN32
-
-// -------------------------------------------------------------------------
-ImageMPR::ImageMPR( QWidget* parent )
- : QMainWindow( parent ),
- m_UI( new Ui::ImageMPR ),
- m_ImageReaderClass( "" ),
- m_ImageWriterClass( "" ),
- m_MeshReaderClass( "" ),
- m_MeshWriterClass( "" ),
- m_MeshCutterClass( "" ),
- m_Image( NULL ),
- m_state(0),
- m_max_state(0)
-{
- this->m_UI->setupUi( this );
-
- // Create and associate renderers
- this->m_MPRObjects = vtkSmartPointer< TMPRObjects >::New( );
- this->m_MPRObjects->SetRenderWindows(
- this->m_UI->m_XPlaneVTK->GetRenderWindow( ),
- this->m_UI->m_YPlaneVTK->GetRenderWindow( ),
- this->m_UI->m_ZPlaneVTK->GetRenderWindow( ),
- this->m_UI->m_3DVTK->GetRenderWindow( )
- );
-
- // signals <-> slots
- QObject::connect(
- this->m_UI->actionOpenPlugins, SIGNAL( triggered( ) ),
- this, SLOT( _triggered_actionOpenPlugins( ) )
- );
- QObject::connect(
- this->m_UI->actionOpenInputImage, SIGNAL( triggered( ) ),
- this, SLOT( _triggered_actionOpenInputImage( ) )
- );
- QObject::connect(
- this->m_UI->actionOpenSegmentation, SIGNAL( triggered( ) ),
- this, SLOT( _triggered_actionOpenSegmentation( ) )
- );
- QObject::connect(
- this->m_UI->actionOpenInputPolyData, SIGNAL( triggered( ) ),
- this, SLOT( _triggered_actionOpenInputPolyData( ) )
- );
- QObject::connect(
- this->m_UI->actionUndo, SIGNAL(triggered()),
- this, SLOT(_triggered_actionUndo())
- );
- QObject::connect(
- this->m_UI->actionRedo, SIGNAL(triggered()),
- this, SLOT(_triggered_actionRedo())
- );
-
- // Start: load all disponible plugins
- this->_LoadPlugins(
- std::string( PLUGIN_PREFIX ) +
- std::string( "cpPluginsIO." ) +
- std::string( PLUGIN_EXT )
- );
- this->_LoadPlugins(
- std::string( PLUGIN_PREFIX ) +
- std::string( "cpPluginsBasicFilters." ) +
- std::string( PLUGIN_EXT )
- );