Adding own GUI in Paraview
Asked Answered
L

1

6

I need to add my own, self made qt gui in paraview. I heard about paraview plugins that should allow that. But I do not find a tutorial on it. How can I add buttons, checkboxes, comboboxes in Paraview? Could somebody show me an example? Thanks in advance

Lavinialavinie answered 9/7, 2012 at 7:46 Comment(2)
Did you find info on how to create checkboxes, buttons, etc? I'm doing the same and all I can find in the examples are textfields. Thanks.Bloxberg
After looking at a script made by someone to automatically generate GUIs (kitware.com/blog/home/post/534), I found that this page has the available components: paraview.org/Wiki/ParaView/Plugin_HowToBloxberg
C
3

The ParaView Wiki has lots of information on using and customising ParaView. In particular, see the section on plugins and the page on writing custom applications. These describe two different ways of customising the functionality of ParaView.

You don't state what language your GUI is written in, but if you can use or call Python then the easiest way to interact with ParaView may be through the Python scripting interface.

Cadi answered 9/7, 2012 at 8:55 Comment(7)
I am using QT as a GUI language. As soon as I understood, you need to provide a dll. So I think (correct me if I am wrong), I should create a C++ library project in QT, create dll, lib, ... and then I should load this dll from the Paraview.Lavinialavinie
To be honest I have never tried to modify ParaView using a QT application, so I don't know any more than what is in the ParaView Wiki pages I link to. The writing custom applications page seems to describe the build process you need (see from here).Cadi
I looked online at Paraview Wiki and so on, but it is a mess, it is not clear at all where should you start and where to finish..Lavinialavinie
It isn't the greatest. You're probably best off asking this question on the ParaView users mailing list. The ParaView tag on SO doesn't get much attention so you are far more likely to get a definitive answer on the mailing list.Cadi
Yes, maybe I should try it there. Thanks anywayLavinialavinie
In Paraview 4.1 it's also possible to create a plugin from a programmable filter or a programmable source (= no need to compile paraview) see kitware.com/blog/home/post/534Ruiz
Please refer to the Examples in the paraview source code. They are up to date and you will find plugin example as well as paraview based Qt Apllication example.Portemonnaie

© 2022 - 2024 — McMap. All rights reserved.