[vtkusers] Embed VTK in a GUI
Manh Ta
niuton152 at gmail.com
Mon Aug 20 10:31:13 EDT 2018
Thanks Andras,
I think I need a full-featured application as my current GUI in Matlab uses
fully features that Matlab provides. Your suggestion was a bit over my head
right now, but it would be extremely useful when I reach that level.
*Manh Ta*
Graduate Research Assistant
Center for Musculoskeletal Research
The University of Tennessee, Knoxville
Email: dta at vols.utk.edu
On Mon, Aug 20, 2018 at 9:05 PM, Andras Lasso <lasso at queensu.ca> wrote:
> If you need a full-featured application then you may also consider
> customizing/extending existing VTK-based open-source applications that
> embed Python. Using Python scripting, you can build up your application GUI
> from plain low-level Qt widgets and bring in any additional
> application-specific widgets as needed; and access to all the features that
> these application provide. You can build on Paraview for general technical
> visualization, 3D Slicer for medical image computing, etc.
>
> Andras
>
> -----Original Message-----
> From: vtkusers <vtkusers-bounces at public.kitware.com> On Behalf Of Andrew
> E. Slaughter
> Sent: Monday, August 20, 2018 8:40 AM
> To: manhta152 <niuton152 at gmail.com>; vtkusers at vtk.org
> Subject: Re: [vtkusers] Embed VTK in a GUI
>
> My recommendation is to use PySide (https://na01.safelinks.
> protection.outlook.com/?url=https%3A%2F%2Fwiki.qt.io%2FQt_
> for_Python&data=02%7C01%7Classo%40queensu.ca%
> 7C9040f7185e0842ecf59808d6069a0205%7Cd61ecb3b38b142d582c4efb2838b
> 925c%7C1%7C0%7C636703655886230803&sdata=iIVPxJtVxy985WoXTk%
> 2BRWVNghkfXufiuVuUcVjIL1Ic%3D&reserved=0), 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%7C4cf464b7869a42368da2a9856648
> 5554%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%7C4cf464b7869a42368da2a9856648
> 5554%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%7C4cf464b7869a42368da2a9856648
> 5554%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%7C4cf464b7869a42368da2a9856648
> 5554%7C0%7C0%7C636703559665615874&sdata=PlqeA5G62Q2dzs3RIUo%
> 2BSmcvjLYo5ztJF2H3%2Foevy2E%3D&reserved=0
> _______________________________________________
> Powered by https://na01.safelinks.protection.outlook.com/?url=
> www.kitware.com&data=02%7C01%7Classo%40queensu.ca%
> 7C9040f7185e0842ecf59808d6069a0205%7Cd61ecb3b38b142d582c4efb2838b
> 925c%7C1%7C0%7C636703655886230803&sdata=7%2BYbID%2FxslBlzqKxEM8ghIA%
> 2BlyBUCmzFYnvVcTFetgQ%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%7Classo%40queensu.ca%
> 7C9040f7185e0842ecf59808d6069a0205%7Cd61ecb3b38b142d582c4efb2838b
> 925c%7C1%7C0%7C636703655886230803&sdata=FD%2BOMciZcGR%2BPi1DBOqyL%
> 2FY4amr2NEW4xxPAEZ8UwVc%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%7Classo%40queensu.ca%7C9040f7185e0842ecf59808d6069a0205%
> 7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636703655886230803&sdata=
> j4iX5BXlaECzt4KNp5sLksI6IBB9BxCDfK2uV6Ts%2FpY%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%7Classo%40queensu.ca%
> 7C9040f7185e0842ecf59808d6069a0205%7Cd61ecb3b38b142d582c4efb2838b
> 925c%7C1%7C0%7C636703655886240812&sdata=CdsYNqQAFMk%
> 2BQJT0wFy2a26LgdStw3enUx0imvXxhYQ%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%7Classo%40queensu.ca%
> 7C9040f7185e0842ecf59808d6069a0205%7Cd61ecb3b38b142d582c4efb2838b
> 925c%7C1%7C0%7C636703655886240812&sdata=WEZo64MvkTe%
> 2Bn1JQsk6CezzJ3kqWxE6qTnvvE%2BXX2w8%3D&reserved=0
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180820/1c162967/attachment.html>
More information about the vtkusers
mailing list