[Fwd: Re: [vtkusers] Embed vtk application inside wxWindows GUI to run on MacOSX]
Karl Garsha
garsha at itg.uiuc.edu
Wed Sep 10 15:51:03 EDT 2003
-------- Original Message --------
Subject: Re: [vtkusers] Embed vtk application inside wxWindows GUI to
run on MacOSX
Date: Wed, 10 Sep 2003 10:41:48 -0500
From: Karl Garsha <garsha at itg.uiuc.edu>
To: ezhou <ezhou at gene-networks.com>
References: <023201c37639$62093590$0464000a at mylaptop>
Greetings,
For wxPython there are some options you might look into--I would assume
that the VTK C++ libraries have the same classes, as the Python classes
just wrap C++. The Atamai classes for VTK-Python include a module called
wxPaneFrame which allows a RenderPane to be used with wxPython. The
Atamai classes can be downloaded from
www.atamai.com/atamai_Downloads.html. There is some documentation online
at www.imaging.robarts.ca/coders. Go to the Classes and Examples link,
and then to the link which says Atamai Documentation. From what I can
tell, most people working with VTK on OSX are using Python/Tkinter, but
I've had nothing but problems with Tkinter.
Also, look in the
/Library/Frameworks/Python.framework/Versions/Current/lib/Python*.*/site-packages/vtk_python/vtk/wx
directory. There is a class called wxVTKRenderWindow.py and a
wxVTKRenderWindowInteractor.py. In the */site-packages/wxPython/lib
directory there is a class called vtk.py which you should take a look at.
-Karl G.
ezhou wrote:
> Hi everyone,
>
> I am trying to embed vtk application inside of wxWindow GUI to run on
> MacOSX. The same code works on Windows. However, the VTK windows are
> decoupled from the wxWindow GUI on MacOSX.
>
> Here is the code snippet:
>
> Void MyMethod(wxWindow * pWnd){
>
> …
>
> vtkRenderWindow* pWindow = vtkRenderWindow::New();
>
> pWindow->SetParentId((void*)pWnd->GetHandle() );
>
> …..
>
> }
>
> Language : C++
>
> VTK version: Latest
>
> wxWindow Version: 4.2.1
>
> Thanks.
>
--
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, IL 61801
Office: B650J
Phone: 217.244.6292
Fax: 217.244.6219
Mobile: 217.390.1874
www.itg.uiuc.edu
--
Karl Garsha
Light Microscopy Specialist
Imaging Technology Group
Beckman Institute for Advanced Science and Technology
University of Illinois at Urbana-Champaign
405 North Mathews Avenue
Urbana, IL 61801
Office: B650J
Phone: 217.244.6292
Fax: 217.244.6219
Mobile: 217.390.1874
www.itg.uiuc.edu
More information about the vtkusers
mailing list