]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuCutModule.cxx
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuCutModule.cxx
index b5e9e2dafa2bd2e04e4f3d5d746d645fd8f00764..ebcfce3eb7b52eacee6581911ea0d9b4c68130e2 100644 (file)
@@ -1,5 +1,7 @@
 #include "bbcreaMaracasVisuCutModule.h"
 #include "bbcreaMaracasVisuPackage.h"
+#include "creaSystem.h"
+
 namespace bbcreaMaracasVisu
 {
 
@@ -7,7 +9,6 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,CutModule)
 BBTK_BLACK_BOX_IMPLEMENTATION(CutModule,bbtk::WxBlackBox);
 void CutModule::Process()
 {
        vtkImageData* img = bbGetInputIn();
        vtkRenderWindowInteractor* interactor = bbGetInputInteractor();
        vtkRenderer* render = bbGetInputRenderer();
@@ -28,8 +29,11 @@ void CutModule::Process()
 }
 void CutModule::CreateWidget(wxWindow* parent)
 {
-       _mainpanel = CutModelMainPanel::getInstance(parent);
+
+       std::string path = crea::System::GetDllAppPath("bbcreaMaracasVisu.dll");
+       _mainpanel = CutModelMainPanel::getInstance(parent, path);
+       _mainpanel->SetType(0);
+       
    bbSetOutputWidget( _mainpanel); 
    Process();