[vtkusers] Embed VTK in a GUI

Ta, Duc-Manh niuton152 at gmail.com
Mon Aug 20 09:27:07 EDT 2018


Hi Andrew,

Thanks for your great insight. I’m new to Python and totally get lost in
its public libraries. I guess I can google it, but just want to ask your
opinion. Is it possible to pack a standalone app with Python and PySide so
that I can distribute it to other colleagues?

Thanks,
Manh

On Mon, Aug 20, 2018 at 7:39 PM Andrew E. Slaughter <
andrew.slaughter at inl.gov> wrote:

> My recommendation is to use PySide (https://wiki.qt.io/Qt_for_Python),
> the official Python bindings for Qt. I have used Python and PySide (the old
> one), PyQt4, and PyQt5 to maintain a VTK based GUI for many years, they
> work well together. Good luck.
>
> ________________________________________
> From: vtkusers <vtkusers-bounces at public.kitware.com> on behalf of
> manhta152 <niuton152 at gmail.com>
> Sent: Monday, August 20, 2018 3:58:58 AM
> To: vtkusers at vtk.org
> Subject: [vtkusers] Embed VTK in a GUI
>
> Hi everyone,
>
> I have a computational modeling program that has been written in Matlab. I
> developed a GUI in Matlab and used VTK to visualize and interact
> (transform,
> cut, deform, etc.,) CAD models. However, Matlab GUI does not support
> embedding VTK, resulting in a separate Matlab GUI and a VTK rendering
> window. I have looked for options to embed VTK in a GUI that works similar
> to 3D Slicer. I know that I can do it in Qt, Python and PyQt, Python and
> Tk,
> Jave, and C#.
>
> The problem is my program consists of many matrix-based calculations that
> may take a great deal of effort if I develop the program in Qt and C#.
> Python is quite close to Matlab that I think I can develop the program in a
> short period and save time.
>
> For those who have experience in developing an app using VTK and PyQt,
> please let me know I should use VTK and PyQt4 or PyQt5 and why?
>
> Also, if you think Qt or C# can work more efficiently than Python (I don't
> have much experience in Qt), please let me know your thoughts and share
> with
> me how I can work efficiently with matrices in Qt and C#.
>
> Thanks in advance. I do appreciate any input.
>
> Regards,
> Manh
>
>
>
>
> --
> Sent from:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&sdata=907KYG62qUwb2Gm7bpb1u4Sk%2FXP0oasjU1Xp3XdIYlE%3D&reserved=0
> _______________________________________________
> Powered by
> https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&sdata=WRwde%2BH2a6rWuYKFkI1DR3h4aZgyBGsJidMPgXBvLSE%3D&reserved=0
>
> Visit other Kitware open-source projects at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&sdata=uoinIT40oISsji%2Fql4XN6QUXXLzomHVdZjm4uPVq574%3D&reserved=0
>
> Please keep messages on-topic and check the VTK FAQ at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&sdata=GgIeiz1t4yStgLAZPGN7eDeQVSHDE3pzyH6xCybqtlo%3D&reserved=0
>
> Search the list archives at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&sdata=29K7%2F6Z17oHJK1fjmLkJ6NzoNMPgOlsVmLmdKmeJnfc%3D&reserved=0
>
> Follow this link to subscribe/unsubscribe:
>
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Candrew.slaughter%40inl.gov%7C91199821da7e4864b14508d606839b09%7C4cf464b7869a42368da2a98566485554%7C0%7C0%7C636703559665615874&sdata=PlqeA5G62Q2dzs3RIUo%2BSmcvjLYo5ztJF2H3%2Foevy2E%3D&reserved=0
>
-- 
Manh Ta
Graduate Research Assistant
Center for Musculoskeletal Research
The University of Tennessee
Knoxville, TN 37996
Email: dta at vols.utk.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180820/e8c0fdf7/attachment.html>


More information about the vtkusers mailing list