]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx
DFCH
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtk3DBaseView.cxx
index 3722c50fc2a985278d3031e1a6fa9c57ce0134f8..ecfae840fe818c084eaeddc62614cd2546649cb2 100644 (file)
@@ -2,7 +2,9 @@
 
 #include "vtkInteractorStyleBaseView3D.h"
 
-
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
 wxVtk3DBaseView::wxVtk3DBaseView(wxWindow *parent)
 :wxVtkBaseView( parent )
 {
@@ -68,11 +70,17 @@ void wxVtk3DBaseView::Configure()
 //       _renWin->SetStereoTypeToRedBlue();
 //       _renWin->SetStereoRender(1);
 
-               GetWxVTKRenderWindowInteractor()->SetRenderWindow(_renWin);
+//EED 19/10/2011 OK  EED stereo 
+//             _renWin->SetStereoCapableWindow(1);
+//             _renWin->SetAnaglyphColorMask(4,3);
+//             _renWin->SetAnaglyphColorSaturation(0.65);
+//             _renWin->SetStereoTypeToAnaglyph();         // OK 1.
+//             _renWin->SetStereoRender(1);
+               printf("EED wxVtk3DBaseView::Configure  test Stereo ...\n");
+               
 
+               GetWxVTKRenderWindowInteractor()->SetRenderWindow(_renWin);
 
-// EED Borrame
-//             vtkInteractorStyle3DMaracas *interactorStyle3DMaracas = vtkInteractorStyle3DMaracas::New(); 
                vtkInteractorStyleBaseView3D *interactorStyleBaseView3D = vtkInteractorStyleBaseView3D::New(); 
 
                SetInteractorStyleBaseView( interactorStyleBaseView3D );
@@ -80,12 +88,6 @@ void wxVtk3DBaseView::Configure()
                GetWxVTKRenderWindowInteractor()->SetInteractorStyle( interactorStyleBaseView3D );
                interactorStyleBaseView3D->SetwxVtkBaseView(this);      
 
-
-/* EED Borrame
-  vtkInteractorStyleSwitch *iss = dynamic_cast<vtkInteractorStyleSwitch*>(_iren->GetInteractorStyle());
-  iss->SetCurrentStyleToTrackballCamera();
-*/
-
                // It is convenient to create an initial view of the data. The
                // FocalPoint and Position form a vector direction. Later on
                // (ResetCamera() method) this vector is used to position the camera