Re: [Paraview] How to add plug-in's parameters to ParaView state file
Every time SaveState is called in the ParaView GUI, pqApplicationCore singleton fires a signal stateSaved(vtkPVXMLElement*). Your code can handle this signal to add new child XML elements to the root. Similarly, there's a stateLoadeded(...) signal that gets fired that you can handle to load the custom elements from the state xml. Utkarsh On Sun, Jan 2, 2011 at 9:04 PM, Nenad Vujicic nena...@gmail.com wrote: Hello everyone, I have developed exporter plug-in for ParaView with 50+ input parameters. At the moment, I'm setting parameters from dialog I start on menu action and preserve their values between ParaView sessions by using QSettings object. Is it possible to save these values in ParaView state files without changing ParaView main sources? Thanks, Nenad. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] How to add plug-in's parameters to ParaView state file
I have not tried this from a plug in, but I can't think of any reason why it would not work: #include pqApplicationCore.h #include pqSettings.h ... pqSettings *settings = pqApplicationCore::instance()-settings(); pqSettings is a subclass of QSettings (it adds a few methods for saving and restoring the positions of windows). The one returned by the pqApplicationCore singleton instance will point to ParaView's settings file. -Ken On 1/2/11 7:04 PM, Nenad Vujicic nena...@gmail.com wrote: Hello everyone, I have developed exporter plug-in for ParaView with 50+ input parameters. At the moment, I'm setting parameters from dialog I start on menu action and preserve their values between ParaView sessions by using QSettings object. Is it possible to save these values in ParaView state files without changing ParaView main sources? Thanks, Nenad. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Multiple selections: points and cells
Hi, I have seen thaht we can select cells or points but not cells and points (or points and cell) and have them display in Paraview GUI. So, I would like to know if it is possible to have selected cells and points at the same time in paraview ? Thanks ! ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Multiple selections: points and cells
Currently, it is not possible to have cells and points selected at the same time. Utkarsh On Mon, Jan 3, 2011 at 2:19 PM, R M mlok...@yahoo.fr wrote: Hi, I have seen thaht we can select cells or points but not cells and points (or points and cell) and have them display in Paraview GUI. So, I would like to know if it is possible to have selected cells and points at the same time in paraview ? Thanks ! ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] How to add plug-in's parameters to ParaView state file
Dear Utkarsh, On Mon, Jan 3, 2011 at 2:30 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Every time SaveState is called in the ParaView GUI, pqApplicationCore singleton fires a signal stateSaved(vtkPVXMLElement*). Your code can handle this signal to add new child XML elements to the root. Similarly, there's a stateLoadeded(...) signal that gets fired that you can handle to load the custom elements from the state xml. Thank You very much on Your suggestion. It works perfectly. Is there also some easy solution when working with pvpython and pvbatch clients or I should add Python parsing code to servermanager.py (servermanager::LoadState())? Thanks, Nenad. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] How to add plug-in's parameters to ParaView state file
Nenad, The signals that pqApplication core fires are actually forwarded from vtk-events fired by the proxy manager (look at pqApplicationCore::onStateSaved/onStateLoaded). So you can add an observer to those events on the proxy manager from Python and handle them. However, you cannot really processes the arguments passed to when the event is fired in Python. One workaround would be to create a vtk-class that does the event handling and simply instantiate and initialize it in Python. Utkarsh On Mon, Jan 3, 2011 at 3:13 PM, Nenad Vujicic nena...@gmail.com wrote: Dear Utkarsh, On Mon, Jan 3, 2011 at 2:30 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Every time SaveState is called in the ParaView GUI, pqApplicationCore singleton fires a signal stateSaved(vtkPVXMLElement*). Your code can handle this signal to add new child XML elements to the root. Similarly, there's a stateLoadeded(...) signal that gets fired that you can handle to load the custom elements from the state xml. Thank You very much on Your suggestion. It works perfectly. Is there also some easy solution when working with pvpython and pvbatch clients or I should add Python parsing code to servermanager.py (servermanager::LoadState())? Thanks, Nenad. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Best way to represent a network of contacts
Dear Eric, Your first suggestion sounds like the way to go. I call it suggestion instead of question because I am not actually printing the connectivity info, I was just wondering what would be the best way for printing that info. It is relatively easy for me to write the lines that join the centers, and, by using the tube filter, to rescale them. I will let you know the advances here. I would like also to color the tubes by some other info, like the strength of the contacts. I will explore the possibilities. I am sorry in advance if my questions are so simple, I am a newbie for Paraview and I am trying to avoid asking silly questions =). As soon as I have the files with the line-connectivity info inside them, I will post one of them here. Thanks again for the help. Best regards / Cordialmente, -- William Oquendo Phd Candidate Simulation Of Physical Systems Group Universidad Nacional de Colombia Linux User # 321481 * Este correo puede carecer de tildes o eñes ya que el teclado no contiene estos caracteres. Presento excusas por eso. * On Fri, Dec 31, 2010 at 10:11 AM, Eric E. Monson emon...@cs.duke.eduwrote: Hey William, Have you included the connectivity structure explicitly in the data you're visualizing (as edges between the grain centers), or is your data really a bunch of vertices with the connectivity embedded in a vector attribute at each vertex? If the contact lines are really part of the data then you can probably use a Tube filter which scales its size (radius) with a scalar value. If the lines are only included as vector data on the points then it might be more challenging since the Glyph filter scales in all three directions equally according to your vector or scalar magnitude (except in vector_components mode). At one point I made a modified version of the vtkGlyph3D filter as a ParaView plugin which would only scale the glyph in the direction of the vector (with a constant scaling in the other two directions) -- it sounds like you would need the opposite: a glyph that scaled a constant amount in the direction of the vector and variable according to scalar/vector in the other two directions. Another possibility might be to use color instead of line/tube thickness... Would you be able to post a sample of your data (vtp file) someplace so some of us could play with possibilities? Talk to you later, -Eric On Dec 29, 2010, at 8:50 PM, William Oquendo wrote: Dear all, I am performing Discrete Element Simulations of granular materials. I have successfully employed Paraview to visualize the grains and to filter by its scalar and vectorial data, printing to vtk xml vtp files. Now, I would like to use Paraview to explore the connectivity structure of the contacts, and, for instance, to be able to scale/color/etc by normal force magnitude and so on. I would like to know what is the best way to represent the contacts among particles. In principle, they are lines that goes from the center of one particle to the other. Its width could be proportional to some scalar value, like the normal force** magnitude. I tried to use lines, and in order to scale to use a glyph. Unfortunately, the glyphs are applied to the points of the line. Should I use just points and apply a cylinder glyph on them? how can I orient the glyph to point from center to center? the normal vectors attribute is useful for that? Thanks for your kind attention, time, and help. Best regards / Cordialmente, -- William Oquendo Phd Candidate Simulation Of Physical Systems Group Universidad Nacional de Colombia Linux User # 321481 * Este correo puede carecer de tildes o eñes ya que el teclado no contiene estos caracteres. Presento excusas por eso. * ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview