[vtkusers] Embed VTK in a GUI

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


Great! Thanks you all for insightful experience.

Best,
Manh

On Mon, Aug 20, 2018 at 8:41 PM David E DeMarle <dave.demarle at kitware.com>
wrote:

> Yes you can.
>
> The Python terminology for making a standalone app is "freezing". There
> are a variety of tools that automate the process. py2app, py2exe etc. They
> all bundle your code and its dependencies together and sometimes fixing up
> shared library paths so that you can hand it off to someone else and they
> can run it without any extra installs.
>
> David E DeMarle
> Kitware, Inc.
> Principal Engineer
> 21 Corporate Drive
> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
> Clifton Park, NY 12065
> <https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g>
> -8662
> Phone: 518-881-4909
>
>
> On Mon, Aug 20, 2018 at 9:29 AM Ta, Duc-Manh <niuton152 at gmail.com> wrote:
>
>> 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
>>
> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> https://public.kitware.com/mailman/listinfo/vtkusers
>>
> --
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/be1fdc5b/attachment.html>


More information about the vtkusers mailing list