1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: wxVTKRenderWindowInteractor.cxx,v $
6 Date: $Date: 2008/03/03 13:14:28 $
7 Version: $Revision: 1.1 $
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 SetReferenceCount(0);
191 //---------------------------------------------------------------------------
192 wxVTKRenderWindowInteractor * wxVTKRenderWindowInteractor::New()
194 // we don't make use of the objectfactory, because we're not registered
195 return new wxVTKRenderWindowInteractor;
197 //---------------------------------------------------------------------------
198 void wxVTKRenderWindowInteractor::Initialize()
200 int *size = RenderWindow->GetSize();
201 // enable everything and start rendering
203 //RenderWindow->Start();
205 // set the size in the render window interactor
209 // this is initialized
212 //---------------------------------------------------------------------------
213 void wxVTKRenderWindowInteractor::Enable()
215 // if already enabled then done
221 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
226 //---------------------------------------------------------------------------
227 bool wxVTKRenderWindowInteractor::Enable(bool enable)
229 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
230 return wxGLCanvas::Enable(enable);
232 return wxWindow::Enable(enable);
235 //---------------------------------------------------------------------------
236 void wxVTKRenderWindowInteractor::Disable()
238 // if already disabled then done
242 // that's it (we can't remove the event handler like it should be...)
246 //---------------------------------------------------------------------------
247 void wxVTKRenderWindowInteractor::Start()
249 // the interactor cannot control the event loop
250 vtkErrorMacro( << "wxVTKRenderWindowInteractor::Start() "
251 "interactor cannot control event loop.");
253 //---------------------------------------------------------------------------
254 void wxVTKRenderWindowInteractor::UpdateSize(int x, int y)
258 // if the size changed tell render window
259 if ( x != Size[0] || y != Size[1] )
261 // adjust our (vtkRenderWindowInteractor size)
264 // and our RenderWindow's size
265 RenderWindow->SetSize(x, y);
269 //---------------------------------------------------------------------------
270 int wxVTKRenderWindowInteractor::CreateTimer(int WXUNUSED(timertype))
272 // it's a one shot timer
273 if (!timer.Start(10, TRUE))
279 //---------------------------------------------------------------------------
280 int wxVTKRenderWindowInteractor::DestroyTimer()
285 //---------------------------------------------------------------------------
286 void wxVTKRenderWindowInteractor::OnTimer(wxTimerEvent& WXUNUSED(event))
291 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
293 InvokeEvent(vtkCommand::TimerEvent, NULL);
296 InteractorStyle->OnTimer();
300 //---------------------------------------------------------------------------
301 // NOTE on implementation:
302 // Bad luck you ended up in the only tricky place of this code.
303 // A few note, wxWidgets still refuse to provide such convenient method
304 // so I have to maintain it myself, eventhough this is completely integrated
306 // Anyway if this happen to break for you then compare to a recent version of wxPython
307 // and look for the function long wxPyGetWinHandle(wxWindow* win)
308 // in wxPython/src/helpers.cpp
309 long wxVTKRenderWindowInteractor::GetHandleHack()
311 //helper function to hide the MSW vs GTK stuff
314 // __WXMSW__ is for Win32
315 //__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)
316 // __WXGTK__ is for both gtk 1.2.x and gtk 2.x
317 #if defined(__WXMSW__) || defined(__WXMAC__)
318 handle_tmp = (long)this->GetHandle();
321 //__WXCOCOA__ stands for using the objective-c Cocoa API
323 // Here is how to find the NSWindow
324 wxTopLevelWindow* toplevel = dynamic_cast<wxTopLevelWindow*>(
325 wxGetTopLevelParent( this ) );
326 if (toplevel != NULL )
328 handle_tmp = (long)toplevel->GetNSWindow();
330 // The NSView will be deducted from
331 // [(NSWindow*)Handle contentView]
332 // if only I knew how to write that in c++
335 // Find and return the actual X-Window.
336 #if defined(__WXGTK__) || defined(__WXX11__)
337 return (long)GetXWindow(this);
341 // handle_tmp = (long)this->GetXWindow();
346 //---------------------------------------------------------------------------
347 void wxVTKRenderWindowInteractor::OnPaint(wxPaintEvent& WXUNUSED(event))
350 //must always be here
353 //do it here rather than in the cstor: this is safer.
356 Handle = GetHandleHack();
357 RenderWindow->SetWindowId(reinterpret_cast<void *>(Handle));
359 RenderWindow->SetParentId(reinterpret_cast<void *>(this->GetParent()->GetHWND()));
362 // get vtk to render to the wxWindows
363 //bbtkDebugMessage("Wx",9,"wxVTKRenderWindowInteractor::OnPaint"<<std::endl);
364 //std::cout << "wxVTKRenderWindowInteractor::OnPaint"<<std::endl;
367 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
368 // bbtkDebugMessage("Core",9,"wxVTKRenderWindowInteractor::OnPaint public wxGLCanvas, virtual public vtkRenderWindowInteractor \n");
370 // bbtkDebugMessage("Core",9,"wxVTKRenderWindowInteractor::OnPaint public wxWindow, virtual public vtkRenderWindowInteractor \n");
374 //---------------------------------------------------------------------------
375 void wxVTKRenderWindowInteractor::OnEraseBackground(wxEraseEvent &event)
377 //printf("EED wxVTKRenderWindowInteractor::OnEraseBackground \n");
378 //turn off background erase to reduce flickering on MSW
381 //---------------------------------------------------------------------------
382 void wxVTKRenderWindowInteractor::OnSize(wxSizeEvent& WXUNUSED(event))
385 GetClientSize(&w, &h);
393 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
394 InvokeEvent(vtkCommand::ConfigureEvent, NULL);
396 //this will check for Handle
399 //---------------------------------------------------------------------------
400 void wxVTKRenderWindowInteractor::OnMotion(wxMouseEvent &event)
407 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
408 SetEventInformationFlipY(event.GetX(), event.GetY(),
409 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
411 InvokeEvent(vtkCommand::MouseMoveEvent, NULL);
413 InteractorStyle->OnMouseMove(event.ControlDown(), event.ShiftDown(),
414 event.GetX(), Size[1] - event.GetY() - 1);
417 //---------------------------------------------------------------------------
418 #if !(VTK_MAJOR_VERSION == 3 && VTK_MINOR_VERSION == 1)
419 void wxVTKRenderWindowInteractor::OnEnter(wxMouseEvent &event)
426 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
428 SetEventInformationFlipY(event.GetX(), event.GetY(),
429 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
431 InvokeEvent(vtkCommand::EnterEvent, NULL);
434 InteractorStyle->OnEnter(event.ControlDown(), event.ShiftDown(),
435 event.GetX(), Size[1] - event.GetY() - 1);
438 //---------------------------------------------------------------------------
439 void wxVTKRenderWindowInteractor::OnLeave(wxMouseEvent &event)
446 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
448 SetEventInformationFlipY(event.GetX(), event.GetY(),
449 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
451 InvokeEvent(vtkCommand::LeaveEvent, NULL);
454 InteractorStyle->OnLeave(event.ControlDown(), event.ShiftDown(),
455 event.GetX(), Size[1] - event.GetY() - 1);
458 //---------------------------------------------------------------------------
459 void wxVTKRenderWindowInteractor::OnKeyDown(wxKeyEvent &event)
466 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
468 int keycode = event.GetKeyCode();
472 // TODO: Unicode in non-Unicode mode ??
476 SetEventInformationFlipY(event.GetX(), event.GetY(),
477 event.ControlDown(), event.ShiftDown(), key, 0, NULL);
479 InvokeEvent(vtkCommand::KeyPressEvent, NULL);
480 InvokeEvent(vtkCommand::CharEvent, NULL);
482 InteractorStyle->OnKeyDown(event.ControlDown(), event.ShiftDown(),
483 event.GetKeyCode(), 1);
487 //---------------------------------------------------------------------------
488 void wxVTKRenderWindowInteractor::OnKeyUp(wxKeyEvent &event)
495 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
497 int keycode = event.GetKeyCode();
501 // TODO: Unicode in non-Unicode mode ??
505 SetEventInformationFlipY(event.GetX(), event.GetY(),
506 event.ControlDown(), event.ShiftDown(), key, 0, NULL);
507 InvokeEvent(vtkCommand::KeyReleaseEvent, NULL);
509 InteractorStyle->OnKeyUp(event.ControlDown(), event.ShiftDown(),
510 event.GetKeyCode(), 1);
514 #endif //!(VTK_MAJOR_VERSION == 3 && VTK_MINOR_VERSION == 1)
515 //---------------------------------------------------------------------------
516 void wxVTKRenderWindowInteractor::OnButtonDown(wxMouseEvent &event)
518 if (!Enabled || (ActiveButton != wxEVT_NULL))
522 ActiveButton = event.GetEventType();
524 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
525 SetEventInformationFlipY(event.GetX(), event.GetY(),
526 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
529 if(event.RightDown())
531 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
533 InvokeEvent(vtkCommand::RightButtonPressEvent, NULL);
536 InteractorStyle->OnRightButtonDown(event.ControlDown(), event.ShiftDown(),
537 event.GetX(), Size[1] - event.GetY() - 1);
540 else if(event.LeftDown())
542 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
544 InvokeEvent(vtkCommand::LeftButtonPressEvent, NULL);
547 InteractorStyle->OnLeftButtonDown(event.ControlDown(), event.ShiftDown(),
548 event.GetX(), Size[1] - event.GetY() - 1);
551 else if(event.MiddleDown())
553 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
555 InvokeEvent(vtkCommand::MiddleButtonPressEvent, NULL);
558 InteractorStyle->OnMiddleButtonDown(event.ControlDown(), event.ShiftDown(),
559 event.GetX(), Size[1] - event.GetY() - 1);
562 //save the button and capture mouse until the button is released
564 //1. it is possible (WX_USE_X_CAPTURE)
565 //2. user decided to.
566 if ((ActiveButton != wxEVT_NULL) && WX_USE_X_CAPTURE && UseCaptureMouse)
571 //---------------------------------------------------------------------------
572 void wxVTKRenderWindowInteractor::OnButtonUp(wxMouseEvent &event)
574 //EVT_xxx_DOWN == EVT_xxx_UP - 1
575 //This is only needed if two mouse buttons are pressed at the same time.
576 //In wxWindows 2.4 and later: better use of wxMOUSE_BTN_RIGHT or
577 //wxEVT_COMMAND_RIGHT_CLICK
578 if (!Enabled || (ActiveButton != (event.GetEventType()-1)))
583 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
584 SetEventInformationFlipY(event.GetX(), event.GetY(),
585 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
588 if(ActiveButton == wxEVT_RIGHT_DOWN)
590 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
592 InvokeEvent(vtkCommand::RightButtonReleaseEvent, NULL);
595 InteractorStyle->OnRightButtonUp(event.ControlDown(), event.ShiftDown(),
596 event.GetX(), Size[1] - event.GetY() - 1);
599 else if(ActiveButton == wxEVT_LEFT_DOWN)
601 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
603 InvokeEvent(vtkCommand::LeftButtonReleaseEvent, NULL);
606 InteractorStyle->OnLeftButtonUp(event.ControlDown(), event.ShiftDown(),
607 event.GetX(), Size[1] - event.GetY() - 1);
610 else if(ActiveButton == wxEVT_MIDDLE_DOWN)
612 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
614 InvokeEvent(vtkCommand::MiddleButtonReleaseEvent, NULL);
617 InteractorStyle->OnMiddleButtonUp(event.ControlDown(), event.ShiftDown(),
618 event.GetX(), Size[1] - event.GetY() - 1);
621 //if the ActiveButton is realeased, then release mouse capture
622 if ((ActiveButton != wxEVT_NULL) && WX_USE_X_CAPTURE && UseCaptureMouse)
626 ActiveButton = wxEVT_NULL;
628 //---------------------------------------------------------------------------
629 void wxVTKRenderWindowInteractor::OnMouseWheel(wxMouseEvent& event)
631 // Mouse wheel was only added after VTK 4.4 (I think...)
632 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 2)
634 //Set vtk event information ... The numebr of wheel rotations is stored in
635 //the x varible. y varible is zero
636 SetEventInformationFlipY(event.GetWheelRotation() / event.GetWheelDelta(), 0,
637 event.ControlDown(), event.ShiftDown(), '\0', 0, NULL);
638 if(event.GetWheelRotation() > 0)
642 // InvokeEvent(vtkCommand::MouseWheelForwardEvent, NULL);
648 // InvokeEvent(vtkCommand::MouseWheelBackwardEvent, NULL);
654 //---------------------------------------------------------------------------
655 void wxVTKRenderWindowInteractor::Render()
658 if (!RenderWhenDisabled)
660 //the user doesn't want us to render when the toplevel frame
661 //is disabled - first find the top level parent
662 wxWindow *topParent = wxGetTopLevelParent(this);
665 //if it exists, check whether it's enabled
666 //if it's not enabeld, RenderAllowed will be false
667 RenderAllowed = topParent->IsEnabled();
673 if(Handle && (Handle == GetHandleHack()) )
675 RenderWindow->Render();
677 #if VTK_MAJOR_VERSION == 5 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 2)
678 else if(GetHandleHack())
680 //this means the user has reparented us; let's adapt to the
681 //new situation by doing the WindowRemap dance
682 //store the new situation
683 Handle = GetHandleHack();
684 RenderWindow->SetNextWindowId(reinterpret_cast<void *>(Handle));
685 RenderWindow->WindowRemap();
686 RenderWindow->Render();
691 //---------------------------------------------------------------------------
692 void wxVTKRenderWindowInteractor::SetRenderWhenDisabled(int newValue)
694 //Change value of __RenderWhenDisabled ivar.
695 //If __RenderWhenDisabled is false (the default), this widget will not
696 //call Render() on the RenderWindow if the top level frame (i.e. the
697 //containing frame) has been disabled.
699 //This prevents recursive rendering during wxSafeYield() calls.
700 //wxSafeYield() can be called during the ProgressMethod() callback of
701 //a VTK object to have progress bars and other GUI elements updated -
702 //it does this by disabling all windows (disallowing user-input to
703 //prevent re-entrancy of code) and then handling all outstanding
706 //However, this often triggers an OnPaint() method for wxVTKRWIs,
707 //resulting in a Render(), resulting in Update() being called whilst
710 RenderWhenDisabled = (bool)newValue;
712 //---------------------------------------------------------------------------
714 // Set the variable that indicates that we want a stereo capable window
715 // be created. This method can only be called before a window is realized.
717 void wxVTKRenderWindowInteractor::SetStereo(int capable)
719 if (Stereo != capable)
722 RenderWindow->StereoCapableWindowOn();
723 RenderWindow->SetStereoTypeToCrystalEyes();
728 //---------------------------------------------------------------------------
731 void wxVTKRenderWindowInteractor::PrintSelf(ostream& os, vtkIndent indent)
733 this->Superclass::PrintSelf(os, indent);
738 const char * wxVTKRenderWindowInteractor::GetClassName() const
740 return "wxVTKRenderWindowInteractor";
745 // LG : EO namespace bbwxvtk
746 //=======================================================================