Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-17 Thread Utkarsh Ayachit
> All of the above work, except the ScaleFactor setter. The scale factor is > odd anyway: in the GUI a value of 1.8 appears by default (even though > according to the doc it should be 1.0) . Any clue ? Certain properties update their default values based on runtime data values. This is done by wha

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-17 Thread Florian Hoffmann
Dear Utkarsh, Thanks. That did help. So I am having now: ... vtkSMPropertyHelper(glyph, "Source").Set(getSphereSource(glyph)); // "scalar" = 0 // "vector" = 1 // "vector_comp" = 2 // "off" = 3 vtkSMPropertyHelper(glyph, "ScaleMode",true).Set(0); vt

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-17 Thread Utkarsh Ayachit
Click on the "?" button on the ParaView UI with the filter active. That'll take you a page that will list all such "properties" available on the filter. Additionally, you can look at these xml files[1]. Locate the proxy using the group/name and then you'll have the details for properties on it. Ut

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-17 Thread Florian Hoffmann
Dear Utkarsh, thanks a lot. I made a small mistake during cmake configuration. It works fine. Question: Where can I find the "keywords" for vtkSMPropertyHelper(...) For example you used: vtkSMPropertyHelper(cylinder,"Resolution").Set(18); I would like to setup the glyph's settings in a si

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-16 Thread Utkarsh Ayachit
Not entirely sure why. I just built that same with ParaVIew git/master and it built fine for me. What OS is this? Can you attach CMakeCache.txt from ParaView build as well as the plugin build? Utkarsh On Tue, Sep 16, 2014 at 11:26 AM, Florian Hoffmann wrote: > I have the file there as well but n

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-16 Thread Florian Hoffmann
I have the file there as well but nevertheless during compilation of the Plugin it cannot be found. Do you have any idea why this might be the case ? Thanks. Florian Mit freundlichen Grüßen -- Dr.-Ing. Florian Hoffmann inuTech GmbH Phone: +49-(0)911-323843-22 Fuerther St

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-16 Thread Utkarsh Ayachit
It's under "ParaVIewCore/ServerManager/Rendering/" in the ParaVIew source[1] Utkarsh [1] https://github.com/Kitware/ParaView/blob/master/ParaViewCore/ServerManager/Rendering/vtkSMParaViewPipelineControllerWithRendering.h On Tue, Sep 16, 2014 at 8:11 AM, Florian Hoffmann wrote: > Dear Utkarsh,

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-16 Thread Florian Hoffmann
Dear Utkarsh, thank you very much for your fast reply and the provided example. I compiled PV4.2RC2 from source and just tried to compile your example. Nevertheless I receive a compilation error complaining that the file vtkSMParaViewPipelineControllerWithRendering.h cannot be found. Where is

Re: [Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-15 Thread Utkarsh Ayachit
Attached is an example based on ParaView 4.2-RC1. As it shows, you cannot directly use VTK objects to create visualization pipelines in ParaView. While this can surely be done with 4.1 or earlier, I'd suggest basing off 4.2, if possible since it simplified a lot of this initialization. Utkarsh On

[Paraview] PV4.1, Custom Dock Widget: How to automatically add a glyph3d filter after loading data ?

2014-09-15 Thread Florian Hoffmann
I would like to automatically add a glyph filter and render the correctly scaled spheres after the user has opened a file in my custom dock widget. I created a DockWidget using the example in /examples/Plugins/DockWidget. When pressing a button a specific file is being opened for the user by th