]> Creatis software - creaMaracasVisu.git/commitdiff
No newline at end of file
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 16 Jun 2009 13:38:29 +0000 (13:38 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 16 Jun 2009 13:38:29 +0000 (13:38 +0000)
CMakeLists.txt
lib/maracasVisuLib/src/interface/wxWindows/CMakeLists.txt
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualViewPerpPlaneContour.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx

index 6ca83968568c50fcd8650b44fed169938c97e150..8259fa4a03f8ee1fc6f2d17cee7ec93878ad53ff 100644 (file)
@@ -52,7 +52,6 @@ INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/data/Icons )
 
 
 
-
 SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/data)
 FILE(GLOB CONFIGURE_DATA_FILES *.*)
 IF(WIN32)
@@ -65,4 +64,4 @@ IF(WIN32)
 ELSE(WIN32)
        SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/data)
        CREA_CPDIR(${INPUT_DATA_DIR} ${OUTPUT_DATA_DIR})
-ENDIF(WIN32)
\ No newline at end of file
+ENDIF(WIN32)
index 9a5382cd4ac7689baf18a244ba230d6a4511af47..1e4081f779ac3ba9d2a6a6e43e0d044b360f32f9 100644 (file)
@@ -7,7 +7,6 @@
 INCLUDE_DIRECTORIES(
 "C:/Creatis/MaracasTools/OSGi/src"
 "C:/Creatis/MaracasTools/Include"
-"/home/jpr/Creatis/Maracas/src/interface/wxWindows"
 )
 
 #-----------------------------------------------------------------------------
@@ -333,7 +332,9 @@ IF(WIN32)
       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_qa_vc_custom.dll          COPYONLY        )
       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll  ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_richtext_vc_custom.dll   COPYONLY        )
       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll      ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_xrc_vc_custom.dll         COPYONLY        )
-      CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll                 ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll                        COPYONLY        ) 
+      CONFIGURE_FILE(
+${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll
+${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll          COPYONLY        ) 
     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
        MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Debug copy dlls)")
     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
@@ -377,7 +378,7 @@ IF(WIN32)
 
 
 
-##----Copy Release cofiguration and DLLs---
+##----Copy Release configuration and DLLs---
 
     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release )
     FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/data )
@@ -404,7 +405,7 @@ IF(WIN32)
       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_richtext_vc_custom.dll   ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_richtext_vc_custom.dll  COPYONLY        )
       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_qa_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_qa_vc_custom.dll         COPYONLY        )
       CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_xrc_vc_custom.dll       ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_xrc_vc_custom.dll        COPYONLY        )
-      CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll                ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll                 COPYONLY        ) 
+      CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll        ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll         COPYONLY        ) 
     ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
        MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Release copy dlls)")
     ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
index edc09ca5b3a7bc9c344364fc1c68967d6c7fd10e..0fd5c3f9f6a4ad8018f521b65f375548871793f7 100644 (file)
@@ -201,4 +201,5 @@ bool manualViewPerpPlaneContour::ifTouchContour( int x, int y, int z)
                ok = true;
        }
        return ok;
-}
\ No newline at end of file
+}
+
index 53bf04744c086cd71e34e37eb72281670ed24f8b..45a387a363f244dc823acce94a70a3ccb5bb518b 100644 (file)
@@ -8,8 +8,8 @@
 wxVtk2DBaseView::wxVtk2DBaseView(wxWindow *parent)
 :wxVtkBaseView(parent)
 {
-       _imageViewer2XYZ        = NULL;
-       _vtkIinfoTextImage      = NULL;
+   _imageViewer2XYZ   = NULL;
+   _vtkIinfoTextImage = NULL;
 }
 
 //EED 5mai2009
@@ -18,12 +18,12 @@ wxVtk2DBaseView::~wxVtk2DBaseView()
 {      
        if (_vtkIinfoTextImage!=NULL) 
        {
-               delete _vtkIinfoTextImage; 
+          delete _vtkIinfoTextImage; 
        }
 
        if (_imageViewer2XYZ!=NULL) 
        {
-               delete _imageViewer2XYZ; 
+          delete _imageViewer2XYZ; 
        }
 }
 
@@ -88,13 +88,13 @@ void wxVtk2DBaseView::Configure(bool okimage)
        wxVtkBaseView::Configure();
 
 // EED 17 Oct 2007
-                       if (_imageViewer2XYZ==NULL)
-                       {
-                               _imageViewer2XYZ = new vtkImageViewer2_XYZ();
-                               wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
-                               _imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
-                               SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
-                       }
+       if (_imageViewer2XYZ==NULL)
+       {
+               _imageViewer2XYZ = new vtkImageViewer2_XYZ();
+               wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
+               _imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
+               SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
+       }
 
 
        vtkImageData *imageData = GetVtkBaseData()->GetMarImageData()->GetImageData();
@@ -154,7 +154,7 @@ void wxVtk2DBaseView::Configure(bool okimage)
                        camera->SetParallelScale( spx*(x2-x1)/3.0 );
                        
                        // text information over the graphic window
-                       _vtkIinfoTextImage                              = new vtkInfoTextImage();
+                       _vtkIinfoTextImage              = new vtkInfoTextImage();
                        _vtkIinfoTextImageInteractor    = new vtkInfoTextImageInteractor();
                        _vtkIinfoTextImage->SetWxVtk2DBaseView(this);
                        _vtkIinfoTextImage->SetMarImageData( GetVtkBaseData()->GetMarImageData() );
@@ -170,37 +170,37 @@ void wxVtk2DBaseView::Configure(bool okimage)
 
 int    wxVtk2DBaseView::GetActualSlice()  // virtual 
 {
-       return (int)(_vtkbasedata->GetZ());
+   return (int)(_vtkbasedata->GetZ());
 }
 
 //-------------------------------------------------------------------
 void wxVtk2DBaseView::SetActualSlice(int slice)  // Virtual
 {
-       _vtkbasedata->SetZ(slice);
+   _vtkbasedata->SetZ(slice);
 }
 
 //-------------------------------------------------------------------
 
 vtkBaseData *wxVtk2DBaseView::GetVtkBaseData()
 {
-       return _vtkbasedata;
+   return _vtkbasedata;
 }
 
 //-------------------------------------------------------------------
 
 void wxVtk2DBaseView::SetVtkBaseData(vtkBaseData *vtkbasedata)
 {
-       _vtkbasedata=vtkbasedata;
+   _vtkbasedata=vtkbasedata;
 }
 
 //-------------------------------------------------------------------
 
 void wxVtk2DBaseView::Refresh()
 {
-       int z = (int)(GetVtkBaseData()->GetZ());
-       _imageViewer2XYZ->SetZSlice( z ); 
+   int z = (int)(GetVtkBaseData()->GetZ());
+  _imageViewer2XYZ->SetZSlice( z ); 
 
-       wxVtkBaseView::Refresh();
+   wxVtkBaseView::Refresh();
 }
 
 //-------------------------------------------------------------------
@@ -225,18 +225,19 @@ void wxVtk2DBaseView::SetInteractorStyleImage(vtkInteractorStyleBaseView *intera
 //---------------------------------------------------------------------------
 vtkRenderer* wxVtk2DBaseView::GetRenderer()    // virtual 
 {
-       return  _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer();
+   return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer();
 }
 //---------------------------------------------------------------------------
 vtkRenderWindow* wxVtk2DBaseView::GetRenWin()          // virtual
 {
-       return  _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderWindow();
+   return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderWindow();
 }
 
 //-------------------------------------------------------------------
 
 void wxVtk2DBaseView::GetSpacing(double spc[3])  // virtual
 {
-       vtkImageData *imageData = GetVtkBaseData()->GetImageData();
-       imageData->GetSpacing(spc);
-}
\ No newline at end of file
+   vtkImageData *imageData     = GetVtkBaseData()->GetImageData();
+   imageData->GetSpacing(spc);
+}
+
index ffb634b00944cfca2d1c7e567b5e6e2321b70b25..4af3bfd28f614fc45f25784088748d0fe461d519 100644 (file)
@@ -14,9 +14,9 @@ wxVtk3DBaseView::wxVtk3DBaseView(wxWindow *parent)
 //-------------------------------------------------------------------
 wxVtk3DBaseView::~wxVtk3DBaseView()
 {
-       if (_aCamera!=NULL)             { _aCamera              -> Delete(); }
+       if (_aCamera!=NULL)     { _aCamera              -> Delete(); }
        if (_aRenderer!=NULL)   { _aRenderer    -> Delete(); }
-       if (_renWin!=NULL)              { _renWin               -> Delete(); }
+       if (_renWin!=NULL)      { _renWin               -> Delete(); }
 }
 //-------------------------------------------------------------------
 vtkCamera* wxVtk3DBaseView::GetCamera()
@@ -101,4 +101,5 @@ void wxVtk3DBaseView::GetSpacing(double spc[3])
        spc[0]=1;
        spc[1]=1;
        spc[2]=1;
-}
\ No newline at end of file
+}
+