]> Creatis software - creaContours.git/blobdiff - appli/wxContourGUIExample/wxContourGUIExample.cxx
Clean code
[creaContours.git] / appli / wxContourGUIExample / wxContourGUIExample.cxx
index 4c3a29628e0ffc4dd425b2c9347a1b60fc8fc8c5..707a287102626a794f1ddebda894388dafa6f7d8 100644 (file)
 
 #include "wxContourGUIExample.h"
 #include "wxContourMainFrame.h"
-//#include "OutlineModelManager.h"
-//#include "wxContourEventHandler.h"
-//#include <creaImageIOWxGimmickDialog.h>
-//#include <creaImageIOWxGimmickReaderDialog.h>
 #include <creaImageIOWxSimpleDlg.h>
 #include <creaImageIOSystem.h>
 #include <creaVtkBasicSlicer.h>
-//#include "wxContourMainPanel.h"
 #include "vtkMetaImageReader.h"
 #include <map>
 #include "vtkImageData.h"
@@ -70,17 +65,19 @@ wxContourGUIExample :: wxContourGUIExample(const wxString& title, const wxPoint&
 */
 
 #ifdef _DEBUG
-void wxAppConsole::OnAssert(char const *,int,char const *,char const *)
-{
-}
+//void wxAppConsole::OnAssert(char const *,int,char const *,char const *)
+//{
+//}
 
-void wxAppConsole::OnAssertFailure(char const *,int,char const *,char const *,char const *)
-{
-}
+//void wxAppConsole::OnAssertFailure(char const *,int,char const *,char const *,char const *)
+//{
+//}
 #endif
 
+
 bool wxTheApplication::OnInit()
 {
+
        vtkOutputWindowCreaContour *outputWindowCreaContour= vtkOutputWindowCreaContour::New();
        vtkOutputWindow::SetInstance( outputWindowCreaContour );
        outputWindowCreaContour->Delete();
@@ -113,6 +110,7 @@ bool wxTheApplication::OnInit()
 //JCP
        //std::string datadir(  crea::wx2std(GetExecutablePath()) );
        std::string datadir(  crea::System::GetExecutablePath() );
+       
 //JCP
            #ifdef LINUX /* assume this is OSX */
                    datadir=datadir+"/../share/creaContours";