1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: wxVTKRenderWindowInteractor.cxx,v $
6 Date: $Date: 2008/06/26 18:45:58 $
7 Version: $Revision: 1.3 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
19 #include "wxVTKRenderWindowInteractor.h"
21 //This is needed for vtk 3.1 :
22 #ifndef VTK_MAJOR_VERSION
23 # include "vtkVersion.h"
26 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
27 # include "vtkCommand.h"
29 # include "vtkInteractorStyle.h"
32 //=======================================================================
33 // LG : NAMESPACE IS NECESSARY TO AVOID CONFLICTING SYMBOLS IN DYN LIBS
37 //Keep this for compatibilty reason, this was introduced in wxGTK 2.4.0
38 #if (!wxCHECK_VERSION(2, 4, 0))
39 wxWindow* wxGetTopLevelParent(wxWindow *win)
41 while ( win && !win->IsTopLevel() )
42 win = win->GetParent();
47 // LG : EO namespace bbwxvtk
48 //=======================================================================
50 // To access objc calls on cocoa
53 #import <Cocoa/Cocoa.h>
54 // This trick is no longer need in VTK CVS, should get rid of that:
57 #error Build mismatch you need both wxWidgets and VTK to be configure against Cocoa to work
58 #endif //VTK_USE_COCOA
62 # include <gdk/gdkx.h> // GDK_WINDOW_XWINDOW is found here in wxWidgets 2.8.0
63 # include "gdk/gdkprivate.h"
65 #include <wx/gtk/win_gtk.h>
67 #include <wx/gtk1/win_gtk.h>
69 #define GetXWindow(wxwin) (wxwin)->m_wxwindow ? \
70 GDK_WINDOW_XWINDOW(GTK_PIZZA((wxwin)->m_wxwindow)->bin_window) : \
71 GDK_WINDOW_XWINDOW((wxwin)->m_widget->window)
75 #include "wx/x11/privx.h"
76 #define GetXWindow(wxwin) ((Window)(wxwin)->GetHandle())
80 //For more info on this class please go to:
82 //This hack is for some buggy wxGTK version:
83 #if wxCHECK_VERSION(2, 3, 2) && !wxCHECK_VERSION(2, 4, 1) && defined(__WXGTK__)
84 # define WX_USE_X_CAPTURE 0
86 # define WX_USE_X_CAPTURE 1
89 #define ID_wxVTKRenderWindowInteractor_TIMER 1001
91 //=======================================================================
92 // LG : NAMESPACE IS NECESSARY TO AVOID CONFLICTING SYMBOLS IN DYN LIBS
96 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
97 IMPLEMENT_DYNAMIC_CLASS(wxVTKRenderWindowInteractor, wxGLCanvas)
99 IMPLEMENT_DYNAMIC_CLASS(wxVTKRenderWindowInteractor, wxWindow)
102 //---------------------------------------------------------------------------
103 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
104 BEGIN_EVENT_TABLE(wxVTKRenderWindowInteractor, wxGLCanvas)
106 BEGIN_EVENT_TABLE(wxVTKRenderWindowInteractor, wxWindow)
108 //refresh window by doing a Render
109 EVT_PAINT (wxVTKRenderWindowInteractor::OnPaint)
110 EVT_ERASE_BACKGROUND(wxVTKRenderWindowInteractor::OnEraseBackground)
111 EVT_MOTION (wxVTKRenderWindowInteractor::OnMotion)
113 //Bind the events to the event converters
114 EVT_LEFT_DOWN (wxVTKRenderWindowInteractor::OnButtonDown)
115 EVT_MIDDLE_DOWN (wxVTKRenderWindowInteractor::OnButtonDown)
116 EVT_RIGHT_DOWN (wxVTKRenderWindowInteractor::OnButtonDown)
117 EVT_LEFT_UP (wxVTKRenderWindowInteractor::OnButtonUp)
118 EVT_MIDDLE_UP (wxVTKRenderWindowInteractor::OnButtonUp)
119 EVT_RIGHT_UP (wxVTKRenderWindowInteractor::OnButtonUp)
120 #if !(VTK_MAJOR_VERSION == 3 && VTK_MINOR_VERSION == 1)
121 EVT_ENTER_WINDOW(wxVTKRenderWindowInteractor::OnEnter)
122 EVT_LEAVE_WINDOW(wxVTKRenderWindowInteractor::OnLeave)
123 EVT_MOUSEWHEEL (wxVTKRenderWindowInteractor::OnMouseWheel)
124 // If we use EVT_KEY_DOWN instead of EVT_CHAR, capital versions
125 // of all characters are always returned. EVT_CHAR also performs
126 // other necessary keyboard-dependent translations.
127 //EVT_KEY_DOWN (wxVTKRenderWindowInteractor::OnKeyDown)
128 EVT_CHAR (wxVTKRenderWindowInteractor::OnKeyDown)
129 EVT_KEY_UP (wxVTKRenderWindowInteractor::OnKeyUp)
131 EVT_TIMER (ID_wxVTKRenderWindowInteractor_TIMER, wxVTKRenderWindowInteractor::OnTimer)
132 EVT_SIZE (wxVTKRenderWindowInteractor::OnSize)
135 //---------------------------------------------------------------------------
136 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
137 wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor() : vtkRenderWindowInteractor(), wxGLCanvas()
139 wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor() : vtkRenderWindowInteractor(), wxWindow()
141 , timer(this, ID_wxVTKRenderWindowInteractor_TIMER)
142 , ActiveButton(wxEVT_NULL)
147 , RenderWhenDisabled(1)
151 this->RenderWindow = NULL;
152 this->SetRenderWindow(vtkRenderWindow::New());
153 this->RenderWindow->Delete();
155 //this->SetBackgroundColour( wxColour(255,0,255) );
157 //---------------------------------------------------------------------------
158 wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor(wxWindow *parent,
163 const wxString &name)
164 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
165 : vtkRenderWindowInteractor(), wxGLCanvas(parent, id, pos, size, style, name)
167 : vtkRenderWindowInteractor(), wxWindow(parent, id, pos, size, style, name)
169 , timer(this, ID_wxVTKRenderWindowInteractor_TIMER)
170 , ActiveButton(wxEVT_NULL)
175 , RenderWhenDisabled(1)
179 this->RenderWindow = NULL;
180 this->SetRenderWindow(vtkRenderWindow::New());
181 this->RenderWindow->Delete();
183 // this->SetBackgroundColour( wxColour(255,0,0) );
185 //---------------------------------------------------------------------------
186 wxVTKRenderWindowInteractor::~wxVTKRenderWindowInteractor()
188 // LG : trompe la mort !
189 SetRenderWindow(NULL);
190 SetReferenceCount(0);
192 //---------------------------------------------------------------------------
193 wxVTKRenderWindowInteractor * wxVTKRenderWindowInteractor::New()
195 // we don't make use of the objectfactory, because we're not registered
196 return new wxVTKRenderWindowInteractor;
198 //---------------------------------------------------------------------------
199 void wxVTKRenderWindowInteractor::Initialize()
201 int *size = RenderWindow->GetSize();
202 // enable everything and start rendering
204 //RenderWindow->Start();
206 // set the size in the render window interactor
210 // this is initialized
213 //---------------------------------------------------------------------------
214 void wxVTKRenderWindowInteractor::Enable()
216 // if already enabled then done
222 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
227 //---------------------------------------------------------------------------
228 bool wxVTKRenderWindowInteractor::Enable(bool enable)
230 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
231 return wxGLCanvas::Enable(enable);
233 return wxWindow::Enable(enable);
236 //---------------------------------------------------------------------------
237 void wxVTKRenderWindowInteractor::Disable()
239 // if already disabled then done
243 // that's it (we can't remove the event handler like it should be...)
247 //---------------------------------------------------------------------------
248 void wxVTKRenderWindowInteractor::Start()
250 // the interactor cannot control the event loop
251 vtkErrorMacro( << "wxVTKRenderWindowInteractor::Start() "
252 "interactor cannot control event loop.");
254 //---------------------------------------------------------------------------
255 void wxVTKRenderWindowInteractor::UpdateSize(int x, int y)
259 // if the size changed tell render window
260 if ( x != Size[0] || y != Size[1] )
262 // adjust our (vtkRenderWindowInteractor size)
265 // and our RenderWindow's size
266 RenderWindow->SetSize(x, y);
270 //---------------------------------------------------------------------------
271 int wxVTKRenderWindowInteractor::CreateTimer(int WXUNUSED(timertype))
273 // it's a one shot timer
274 if (!timer.Start(10, TRUE))
280 //---------------------------------------------------------------------------
281 int wxVTKRenderWindowInteractor::DestroyTimer()
286 //---------------------------------------------------------------------------
287 void wxVTKRenderWindowInteractor::OnTimer(wxTimerEvent& WXUNUSED(event))
292 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
294 InvokeEvent(vtkCommand::TimerEvent, NULL);
297 InteractorStyle->OnTimer();
301 //---------------------------------------------------------------------------
302 // NOTE on implementation:
303 // Bad luck you ended up in the only tricky place of this code.
304 // A few note, wxWidgets still refuse to provide such convenient method
305 // so I have to maintain it myself, eventhough this is completely integrated
307 // Anyway if this happen to break for you then compare to a recent version of wxPython
308 // and look for the function long wxPyGetWinHandle(wxWindow* win)
309 // in wxPython/src/helpers.cpp
310 long wxVTKRenderWindowInteractor::GetHandleHack()
312 //helper function to hide the MSW vs GTK stuff
315 // __WXMSW__ is for Win32
316 //__WXMAX__ stands for using Carbon C-headers, using either the CarbonLib/CFM or the native Mach-O builds (which then also use the latest features available)
317 // __WXGTK__ is for both gtk 1.2.x and gtk 2.x
318 #if defined(__WXMSW__) || defined(__WXMAC__)
319 handle_tmp = (long)this->GetHandle();
322 //__WXCOCOA__ stands for using the objective-c Cocoa API
324 // Here is how to find the NSWindow
325 wxTopLevelWindow* toplevel = dynamic_cast<wxTopLevelWindow*>(
326 wxGetTopLevelParent( this ) );
327 if (toplevel != NULL )
329 handle_tmp = (long)toplevel->GetNSWindow();
331 // The NSView will be deducted from
332 // [(NSWindow*)Handle contentView]
333 // if only I knew how to write that in c++
336 // Find and return the actual X-Window.
337 #if defined(__WXGTK__) || defined(__WXX11__)
338 return (long)GetXWindow(this);
342 // handle_tmp = (long)this->GetXWindow();
347 //---------------------------------------------------------------------------
348 void wxVTKRenderWindowInteractor::OnPaint(wxPaintEvent& WXUNUSED(event))
351 //must always be here
354 //do it here rather than in the cstor: this is safer.
357 Handle = GetHandleHack();
358 RenderWindow->SetWindowId(reinterpret_cast<void *>(Handle));
360 RenderWindow->SetParentId(reinterpret_cast<void *>(this->GetParent()->GetHWND()));
363 // get vtk to render to the wxWindows
364 //bbtkDebugMessage("Wx",9,"wxVTKRenderWindowInteractor::OnPaint"<<std::endl);
365 //std::cout << "wxVTKRenderWindowInteractor::OnPaint"<<std::endl;
368 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
369 // bbtkDebugMessage("Core",9,"wxVTKRenderWindowInteractor::OnPaint public wxGLCanvas, virtual public vtkRenderWindowInteractor \n");
371 // bbtkDebugMessage("Core",9,"wxVTKRenderWindowInteractor::OnPaint public wxWindow, virtual public vtkRenderWindowInteractor \n");
375 //---------------------------------------------------------------------------
376 void wxVTKRenderWindowInteractor::OnEraseBackground(wxEraseEvent &event)
378 //printf("EED wxVTKRenderWindowInteractor::OnEraseBackground \n");
379 //turn off background erase to reduce flickering on MSW
382 //---------------------------------------------------------------------------
383 void wxVTKRenderWindowInteractor::OnSize(wxSizeEvent& WXUNUSED(event))
386 GetClientSize(&w, &h);
394 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
395 InvokeEvent(vtkCommand::ConfigureEvent, NULL);
397 //this will check for Handle
400 //---------------------------------------------------------------------------
401 void wxVTKRenderWindowInteractor::OnMotion(wxMouseEvent &event)
408 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
409 SetEventInformationFlipY(event.GetX(), event.GetY(),
410 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
412 InvokeEvent(vtkCommand::MouseMoveEvent, NULL);
414 InteractorStyle->OnMouseMove(event.ControlDown(), event.ShiftDown(),
415 event.GetX(), Size[1] - event.GetY() - 1);
418 //---------------------------------------------------------------------------
419 #if !(VTK_MAJOR_VERSION == 3 && VTK_MINOR_VERSION == 1)
420 void wxVTKRenderWindowInteractor::OnEnter(wxMouseEvent &event)
427 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
429 SetEventInformationFlipY(event.GetX(), event.GetY(),
430 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
432 InvokeEvent(vtkCommand::EnterEvent, NULL);
435 InteractorStyle->OnEnter(event.ControlDown(), event.ShiftDown(),
436 event.GetX(), Size[1] - event.GetY() - 1);
439 //---------------------------------------------------------------------------
440 void wxVTKRenderWindowInteractor::OnLeave(wxMouseEvent &event)
447 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
449 SetEventInformationFlipY(event.GetX(), event.GetY(),
450 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
452 InvokeEvent(vtkCommand::LeaveEvent, NULL);
455 InteractorStyle->OnLeave(event.ControlDown(), event.ShiftDown(),
456 event.GetX(), Size[1] - event.GetY() - 1);
459 //---------------------------------------------------------------------------
460 void wxVTKRenderWindowInteractor::OnKeyDown(wxKeyEvent &event)
467 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
469 int keycode = event.GetKeyCode();
473 // TODO: Unicode in non-Unicode mode ??
477 SetEventInformationFlipY(event.GetX(), event.GetY(),
478 event.ControlDown(), event.ShiftDown(), key, 0, NULL);
480 InvokeEvent(vtkCommand::KeyPressEvent, NULL);
481 InvokeEvent(vtkCommand::CharEvent, NULL);
483 InteractorStyle->OnKeyDown(event.ControlDown(), event.ShiftDown(),
484 event.GetKeyCode(), 1);
488 //---------------------------------------------------------------------------
489 void wxVTKRenderWindowInteractor::OnKeyUp(wxKeyEvent &event)
496 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
498 int keycode = event.GetKeyCode();
502 // TODO: Unicode in non-Unicode mode ??
506 SetEventInformationFlipY(event.GetX(), event.GetY(),
507 event.ControlDown(), event.ShiftDown(), key, 0, NULL);
508 InvokeEvent(vtkCommand::KeyReleaseEvent, NULL);
510 InteractorStyle->OnKeyUp(event.ControlDown(), event.ShiftDown(),
511 event.GetKeyCode(), 1);
515 #endif //!(VTK_MAJOR_VERSION == 3 && VTK_MINOR_VERSION == 1)
516 //---------------------------------------------------------------------------
517 void wxVTKRenderWindowInteractor::OnButtonDown(wxMouseEvent &event)
519 if (!Enabled || (ActiveButton != wxEVT_NULL))
523 ActiveButton = event.GetEventType();
525 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
526 SetEventInformationFlipY(event.GetX(), event.GetY(),
527 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
530 if(event.RightDown())
532 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
534 InvokeEvent(vtkCommand::RightButtonPressEvent, NULL);
537 InteractorStyle->OnRightButtonDown(event.ControlDown(), event.ShiftDown(),
538 event.GetX(), Size[1] - event.GetY() - 1);
541 else if(event.LeftDown())
543 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
545 InvokeEvent(vtkCommand::LeftButtonPressEvent, NULL);
548 InteractorStyle->OnLeftButtonDown(event.ControlDown(), event.ShiftDown(),
549 event.GetX(), Size[1] - event.GetY() - 1);
552 else if(event.MiddleDown())
554 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
556 InvokeEvent(vtkCommand::MiddleButtonPressEvent, NULL);
559 InteractorStyle->OnMiddleButtonDown(event.ControlDown(), event.ShiftDown(),
560 event.GetX(), Size[1] - event.GetY() - 1);
563 //save the button and capture mouse until the button is released
565 //1. it is possible (WX_USE_X_CAPTURE)
566 //2. user decided to.
567 if ((ActiveButton != wxEVT_NULL) && WX_USE_X_CAPTURE && UseCaptureMouse)
572 //---------------------------------------------------------------------------
573 void wxVTKRenderWindowInteractor::OnButtonUp(wxMouseEvent &event)
575 //EVT_xxx_DOWN == EVT_xxx_UP - 1
576 //This is only needed if two mouse buttons are pressed at the same time.
577 //In wxWindows 2.4 and later: better use of wxMOUSE_BTN_RIGHT or
578 //wxEVT_COMMAND_RIGHT_CLICK
579 if (!Enabled || (ActiveButton != (event.GetEventType()-1)))
584 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
585 SetEventInformationFlipY(event.GetX(), event.GetY(),
586 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
589 if(ActiveButton == wxEVT_RIGHT_DOWN)
591 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
593 InvokeEvent(vtkCommand::RightButtonReleaseEvent, NULL);
596 InteractorStyle->OnRightButtonUp(event.ControlDown(), event.ShiftDown(),
597 event.GetX(), Size[1] - event.GetY() - 1);
600 else if(ActiveButton == wxEVT_LEFT_DOWN)
602 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
604 InvokeEvent(vtkCommand::LeftButtonReleaseEvent, NULL);
607 InteractorStyle->OnLeftButtonUp(event.ControlDown(), event.ShiftDown(),
608 event.GetX(), Size[1] - event.GetY() - 1);
611 else if(ActiveButton == wxEVT_MIDDLE_DOWN)
613 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
615 InvokeEvent(vtkCommand::MiddleButtonReleaseEvent, NULL);
618 InteractorStyle->OnMiddleButtonUp(event.ControlDown(), event.ShiftDown(),
619 event.GetX(), Size[1] - event.GetY() - 1);
622 //if the ActiveButton is realeased, then release mouse capture
623 if ((ActiveButton != wxEVT_NULL) && WX_USE_X_CAPTURE && UseCaptureMouse)
627 ActiveButton = wxEVT_NULL;
629 //---------------------------------------------------------------------------
630 void wxVTKRenderWindowInteractor::OnMouseWheel(wxMouseEvent& event)
632 // Mouse wheel was only added after VTK 4.4 (I think...)
633 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 2)
635 //Set vtk event information ... The numebr of wheel rotations is stored in
636 //the x varible. y varible is zero
637 SetEventInformationFlipY(event.GetWheelRotation() / event.GetWheelDelta(), 0,
638 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
639 if(event.GetWheelRotation() > 0)
643 // InvokeEvent(vtkCommand::MouseWheelForwardEvent, NULL);
649 // InvokeEvent(vtkCommand::MouseWheelBackwardEvent, NULL);
655 //---------------------------------------------------------------------------
656 void wxVTKRenderWindowInteractor::Render()
659 if (!RenderWhenDisabled)
661 //the user doesn't want us to render when the toplevel frame
662 //is disabled - first find the top level parent
663 wxWindow *topParent = wxGetTopLevelParent(this);
666 //if it exists, check whether it's enabled
667 //if it's not enabeld, RenderAllowed will be false
668 RenderAllowed = topParent->IsEnabled();
674 if(Handle && (Handle == GetHandleHack()) )
676 RenderWindow->Render();
678 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 2)
679 else if(GetHandleHack())
681 //this means the user has reparented us; let's adapt to the
682 //new situation by doing the WindowRemap dance
683 //store the new situation
684 Handle = GetHandleHack();
685 RenderWindow->SetNextWindowId(reinterpret_cast<void *>(Handle));
686 RenderWindow->WindowRemap();
687 RenderWindow->Render();
692 //---------------------------------------------------------------------------
693 void wxVTKRenderWindowInteractor::SetRenderWhenDisabled(int newValue)
695 //Change value of __RenderWhenDisabled ivar.
696 //If __RenderWhenDisabled is false (the default), this widget will not
697 //call Render() on the RenderWindow if the top level frame (i.e. the
698 //containing frame) has been disabled.
700 //This prevents recursive rendering during wxSafeYield() calls.
701 //wxSafeYield() can be called during the ProgressMethod() callback of
702 //a VTK object to have progress bars and other GUI elements updated -
703 //it does this by disabling all windows (disallowing user-input to
704 //prevent re-entrancy of code) and then handling all outstanding
707 //However, this often triggers an OnPaint() method for wxVTKRWIs,
708 //resulting in a Render(), resulting in Update() being called whilst
711 RenderWhenDisabled = (bool)newValue;
713 //---------------------------------------------------------------------------
715 // Set the variable that indicates that we want a stereo capable window
716 // be created. This method can only be called before a window is realized.
718 void wxVTKRenderWindowInteractor::SetStereo(int capable)
720 if (Stereo != capable)
723 RenderWindow->StereoCapableWindowOn();
724 RenderWindow->SetStereoTypeToCrystalEyes();
729 //---------------------------------------------------------------------------
732 void wxVTKRenderWindowInteractor::PrintSelf(ostream& os, vtkIndent indent)
734 this->Superclass::PrintSelf(os, indent);
738 void wxVTKRenderWindowInteractor::Refresh(bool eraseBackground , const wxRect* rect )
740 // wxWindow::Refresh(false,rect);
745 const char * wxVTKRenderWindowInteractor::GetClassName() const
747 return "wxVTKRenderWindowInteractor";
754 // LG : EO namespace bbwxvtk
755 //=======================================================================