]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx
#3472 MeshDeformation
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtk3DBaseView.cxx
index 2dd9455d42a509a851a1ff3c9ac174183785b848..05ccfb1c79086846c5784fd04228f413df3fa4c4 100644 (file)
@@ -129,8 +129,13 @@ void wxVtk3DBaseView::SetStereo(int type)
                        // VTK_STEREO_RIGHT        5
                        // VTK_STEREO_DRESDEN      6
                        // VTK_STEREO_ANAGLYPH     7
-                       // VTK_STEREO_CHECKERBOARD 8            
-                       _renWin->SetStereoType(type);      
+            // VTK_STEREO_CHECKERBOARD 8
+            // VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
+            // VTK_STEREO_FAKE 10
+                       // VTK_STEREO_EMULATE 11
+            
+                       _renWin->SetStereoType(type);
+
                } // if type
        } // _renWin
 }
@@ -145,7 +150,8 @@ void wxVtk3DBaseView::Configure()
                //wxVtkBaseView::Configure();
                _aRenderer      = vtkRenderer::New();
                _renWin         = vtkRenderWindow::New();
-               
+
+
                int supportopengl=_renWin->SupportsOpenGL();
                printf("EED wxVtk3DBaseView::Configure >>>>> vtkRenderWindow SupportsOpenGL %d\n", supportopengl );
                printf("EED wxVtk3DBaseView::Configure >>>>> vtkRenderWindow IsDirect       %d\n", _renWin->IsDirect() );
@@ -226,6 +232,14 @@ void wxVtk3DBaseView::Configure()
 //        }
 // Or CurrentPeel >= MaximumNumberOfPeels || TranslucentWrittenPixels <= OcclusionThreshold not coherent. Why ??
         _aRenderer->UseDepthPeelingOff();
+
+        
+/*
+_renWin -> StereoRenderOn ();
+_renWin -> StereoCapableWindowOn ();
+_renWin -> SetStereoTypeToSplitViewportHorizontal();
+*/
+        
         
        } // if _configure
 }