[Paraview] Exporting ICEM CFD Mesh to ParaView
Hi, I'm trying to export a mesh generated in ICEM CFD to ParaView. I realized that I can export the mesh to Exodus II format and then open it with ParaView, but no information about the parts of the mesh is loaded, just the blocks. Any reader available to export geometry and mesh from ICEM CFD to ParaView ? I would like that the MultiBlockDataSet generated as result have information about the parts created in ICEM CFD. Regards, Rafael March. ___ 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] Hide Cells/Points
Hi, I'm programming a plugin for ParaView, whose purpose is to be a pre-processor for a finite element simulator. It is all based in selecting nodes or elements, and defining some regions - based on these - so that one can attribute boundary conditions to them. The main challenge seems to assure that the user will be able to select EVERY node or element he wants. So I'm treating all kind of selections, but I'm stucked in some problems and I have some questions: 1-Why the New Range button in the Selection Inspector is always deactivated ? Is this option already implemented in ParaView ? 2-It would be pretty useful if the user could select all the nodes/cells in an coordinates interval. Is there anyway to do this ? Selection based on location only allows me to select one coordinate at a time, but I can't specify an interval. 3-Is there anyway to hide selected cells/nodes ? I don't want to extract them with a filter (I would do this by just applying the Extract Selection filter) but just restrict the mesh in the screen to some subset. If I could do this, it would be easier (or even possible) to select some cells by picking. 4-Finally, Is there anyway to control Frustum's shape or dimensions ? Thanks in advance for your help. Regards, Rafael March. ___ 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] MultiblockDataSet Global IDs
Hi, how to correctly generate a Points Global IDs to a vtkMultiBlockDataSet ? The IDs must, of course, be unique. I tried to iterate through the blocks and attribute to each part a vtkIntArray with the IDs, but of course this does not work when the parts have points in common. Also, I'm specially interested in MultiBlock comming from Ensight files, and I discovered recently that the Ensight Reader does not associate the true number of points to each part. So the GetNumberOfPoints() method doesn't work in these cases. How to achieve this ? I really need these Global IDs in order to uniquely identify each node of my model, to create a finite element preprocessor. Regards, Rafael March. ___ 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] Transforming Points IDs to Global IDs
Hi, what is the easiest way to transform Points IDs to Global IDs ? I have a Multiblock Dataset, and I can iterate through its blocks, get each cell of each block and get the ids of its points. These points ids are unique and global, since my model is being read with the Ensight reader. Now, I would like that this point information persists when I apply a filter to my model. For example: suppose I have a Model with 2 parts: A and B. When I look at the points nodes which belong to the part A, I have a set. Then I extract this part, selecting it and using Extract Selection filter. When I look again to its points ids it seems that I have another set: they have been regenerated, and begin with 0 and end with number of points. Is there a way to avoid this ? Thanks, Rafael March. ___ 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] Multiblock Dataset number of points
Hi, I'm experiencing something weird when opening Ensight case files with ParaView. I am able to open them normally, and ParaView instantiates a Multiblock Dataset with the parts corresponding to the ones contained in the .geo file. But when I open the model, the number of points info in the information tab doesn't seem to be right. It displays the same number to all the components (which does not correspond to the reality) and this number is quite larger than the real number of point. I posted an example in the link below. I opened a Multiblock and extracted a block of it. ParaView says it has 38560 points, but it is visually obvious that this information is wrong. Is this a bug ? http://www.nacad.ufrj.br/~rnelias/paraview/pv-fig-num-points.jpg ___ 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] Server Manager Properties and the apply button
Hi, I have a filter which implements a custom object panel, through extension of the pqNamedObjectPanel class. Generally, I don't match the widget names with the Server Manager Properties names, but I am able to change the properties by calling vtkSMProxy::UpdateProperty(PropertyName,1). So, I have to hit ParaView's APPLY button only when the filter is instantiated. When I set the SM properties due to some GUI changes, ParaView never requires the APPLY button to be hit. Now I've added a checkbox to the GUI, and when its state changes, I want that some IntVectorProperty be changed JUST when the user press APPLY. I mean, I want that APPLY be activated and waiting to be pressed when I change the state of the checkbox, and when this is done, the Server state should be changed. How can I achieve this ? Regards, Rafael. ___ 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] Getting Blocks Selection
Utkarsh, for me is actually ok, as you suggested, to use the Extract Selection filter as a black box. It will do what I need, which is to get the global id's of the nodes which the user selected (no matter how). The Extract Selection filter does exactly this job, right ? At least I'm able to do using it by hands in ParaView. I'm just having difficulties in setting up the inputs of this filter. It seems that the class vtkPVExtractSelection is an interface for the already existing filter vtkExtractSelection. The latter requires the vtkDataObject, from which we want to extract a piece, and a vtkSelection object, which represents the selected points or cells (Actually this is what is stated in vtkExtractSelection::FillInputPortInformation and opposed as explained in the documentation, so the docs might be wrong). My question is, how can I get - from my filter's code - a vtkSelection object, which represents exactly what the user is selecting in ParaView's screen ? If I am able to get this information, I can use the vtkPVExtractSelection filter and the job is done ! Thanks for your attention. Best Regards, Rafael. --- On Mon, 6/15/09, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: From: Utkarsh Ayachit utkarsh.ayac...@kitware.com Subject: Re: [Paraview] Getting Blocks Selection To: Rafael March rafaelmar...@yahoo.com Cc: paraview@paraview.org Date: Monday, June 15, 2009, 7:45 PM Rafael, pqSelectionManager::getGlobalIDs takes all the necessary steps and then delegates to vtkSelectionConvertor filter to do the actual conversion. So if you fix vtkSelectionConvertor to convert from blocks to ids, then pqSelectionManager::getGlobalIDs should automatically work. Look at implementation of pqSelectionManager::getGlobalIDs to see how the two inputs are set up. Utkarsh On Mon, Jun 15, 2009 at 3:06 PM, Rafael March rafaelmar...@yahoo.com wrote: Hi Utkarsh, thanks for the tip. I'm trying now to use the vtkExtractSelection filter, but it requires two inputs: a vtkSelection object, and the Model, whose block will be extracted, according to the selection. The question now is: how to get the vtkSelection object which corresponds to my current selection made in Paraview ? I can only manage to get a pqSelectionManager object in my filter. Thanks again for the help. Regards, Rafael. --- On Mon, 6/15/09, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: From: Utkarsh Ayachit utkarsh.ayac...@kitware..com Subject: Re: [Paraview] Getting Blocks Selection To: Rafael March rafaelmar...@yahoo.com Cc: paraview@paraview.org Date: Monday, June 15, 2009, 3:13 PM Currently there's no direct way of converting from block to id-based selection. vtkConvertSelection does not handle the case where the input is a block-based selection. Feel free to add a feature request to the bug tracker. A possible alternative would be to apply the ExtractSelection filter and then fetch the resulting dataset to the client. That will have the ids for the extracted block. Utkarsh On Mon, Jun 15, 2009 at 10:53 AM, Rafael March rafaelmar...@yahoo.com wrote: Hi, I want to get the global Ids of the nodes selected through selection inspector, using a Block Selection to choose a part of the model. I thought I would be able to retrieve the ids of the cells (or points) with the method pqSelectionManager::getIndices() or pqSelectionManager::getGlobalIds(), but none of them retrieve any Ids when I make the selection of a block. Which is the right way to get this information ? Regards, Rafael. ___ 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] Getting Blocks Selection
Hi Utkarsh, thanks for the tip. I'm trying now to use the vtkExtractSelection filter, but it requires two inputs: a vtkSelection object, and the Model, whose block will be extracted, according to the selection. The question now is: how to get the vtkSelection object which corresponds to my current selection made in Paraview ? I can only manage to get a pqSelectionManager object in my filter. Thanks again for the help. Regards, Rafael. --- On Mon, 6/15/09, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: From: Utkarsh Ayachit utkarsh.ayac...@kitware.com Subject: Re: [Paraview] Getting Blocks Selection To: Rafael March rafaelmar...@yahoo.com Cc: paraview@paraview.org Date: Monday, June 15, 2009, 3:13 PM Currently there's no direct way of converting from block to id-based selection. vtkConvertSelection does not handle the case where the input is a block-based selection. Feel free to add a feature request to the bug tracker.. A possible alternative would be to apply the ExtractSelection filter and then fetch the resulting dataset to the client. That will have the ids for the extracted block. Utkarsh On Mon, Jun 15, 2009 at 10:53 AM, Rafael March rafaelmar...@yahoo.com wrote: Hi, I want to get the global Ids of the nodes selected through selection inspector, using a Block Selection to choose a part of the model. I thought I would be able to retrieve the ids of the cells (or points) with the method pqSelectionManager::getIndices() or pqSelectionManager::getGlobalIds(), but none of them retrieve any Ids when I make the selection of a block. Which is the right way to get this information ? Regards, Rafael. ___ 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
[Paraview] Getting Blocks Selection
Hi, I want to get the global Ids of the nodes selected through selection inspector, using a Block Selection to choose a part of the model. I thought I would be able to retrieve the ids of the cells (or points) with the method pqSelectionManager::getIndices() or pqSelectionManager::getGlobalIds(), but none of them retrieve any Ids when I make the selection of a block. Which is the right way to get this information ? Regards, Rafael. ___ 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] Problems in loading plugin
Hi, As Berk corrected me, I've compiled my plugin under the same Qt version of the ParaView distro which is in the website. Now, it is built under the following environment: plugin: Operating System: Windows Vista Business - SP1Microsoft Visual Studio 2005 Professional Edition 8.0.50727.867no pythonQt 4.3.5 open source version ParaView of Kitware's site: paraview-3.4.0-win32-x86.exe: Built on Windows XP Professional Version 2002 (Service Pack 3) Microsoft Visual Studio 2005 Professional Edition 8.0.50727.762 python 2.5.2 Qt 4.3.5 open source version But is still doesn't work ! I got another machine that never saw ParaView before, installed it, and tryied to load the plugin. Then I get a message like The file blabla.dll is not a valid Qt plugin. I'm wondering if the problem is the slight difference between the visual studio versions. Or maybe the OS. What can be wrong ? Why I can't load my plugin with the ParaView binaries provided in the website ? Regards, Rafael March. ___ 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] Generating a distribution of ParaView with Plugin
Hi, I've developed a plugin for ParaView, and now I would like to distribute it to some researchers, so that they can use it. As the binaries of ParaView in the website aren't compiled with support to shared libs, I think I must pack my own version of it. What I would like to do, is to give them a zipped folder with a distribution of ParaView and the dll of the plugin (Windows environment). They should execute a .bat file (which would set environment variables like PATH and PV_PLUGIN_PATH) to get ParaView to run, and automatically put my filter in the filter menu. The question is: how to get this to work ? I've tried to copy the folder which Visual Studio creates when I build the project INSTALL (I thought this would be what I needed: a distribution of ParaView), but I'm getting problems to run ParaView by this folder in another computer. Any tips? Regards, Rafael March. ___ 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] Object Panel - Model Communication
Utkarsh, actually I would like to get vtkPointData from Server, the nodes global id's. I'm taking a look at the vtkPVDataSetAttributesInformation class, but I don't think it will provide this information, am I right ? As a meta data, I can't get really the data, just some information about it... Regards, Rafael. --- On Wed, 12/17/08, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: From: Utkarsh Ayachit utkarsh.ayac...@kitware.com Subject: Re: [Paraview] Object Panel - Model Communication To: rafaelmar...@yahoo.com Cc: paraview@paraview.org Date: Wednesday, December 17, 2008, 9:32 PM Rafael, It is possible to get the output of a filter in a custom panel. But it most certainly is not recommended. Fetching data from the output of any filter/source should be done only by views such as the render view/xy line plot view/ spreadsheet view etc. However if you insist on getting the data to the client side create a client-delivery representation. Look at the implementation of Fetch() function in Utilities/VTKPythonWrapping/paraview/servermanager.py for details. However I'd still recommend to rethink -- do you really need the full data or just some meta-data that can be obtained from the vtkPVDataInformation associated with the input? Utkarsh On Wed, Dec 17, 2008 at 10:58 AM, Rafael March rafaelmar...@yahoo.com wrote: Thanks a lot Utkarsh, I'm already testing and learning about the Information Properties, and I realized this is exactly what I need, concerning the Client/Server Communication. Let me try to explain what I asked about the visualization pipeline: Suppose I have an unstructured grid.Then, my filter associate an integer number, from 0 to 6, to each cell, according to an algorithm. My filter also implements a custom object panel. Then I clip my model, through the Clip Filter. Is it possible to get the output of the Clip (that is, the nodes that weren't cutted off )from my custom filter code (which stays before the Clip filter in the pipeline) ? Regards, Rafael March. --- On Tue, 12/16/08, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: From: Utkarsh Ayachit utkarsh.ayac...@kitware.com Subject: Re: [Paraview] Object Panel - Model Communication To: rafaelmar...@yahoo.com Cc: paraview@paraview.org Date: Tuesday, December 16, 2008, 2:17 PM To get back values from the server, you can use either information properties or information objects. Information properties are properites with information_only=1 set in the XML (eg. in Servers/ServerManager/Resources/rendering.xml the Camera proxy has CameraPositionInfo as an information property). Such properties need an InformationHelper which knows how to obtain the values from the server. For simple Get*() methods, you can use the SimpleDoubleInformationHelper/ or SimpleIntInformationHelper / etc. based on the type of the property. Complex information helpers can be written as well. Look at TimeStepsInformationHelper (vtkSMTimeStepsInformationHelper.h|cxx) as an example. Information objects are used to get data from server which cannot be simply put in a property for example information about the data object produced by a filter (vtkPVDataInformation). These are vtkPVInformation subclasses. You can create you own vtkPVInformation subclass that knows how to collect information and then serialize/deserialize it for transfer to the client from the server (if needed). To gather such information, one uses vtkProcessModule::GatherInformation(vtkIdType connectionID, vtkTypeUInt32 serverFlags, vtkPVInformation* info, vtkClientServerID id) where id is vtkSMProxy::GetID() returned for the proxy from which you want to collect the information. In your case, information property may be an easier solution -- if I understand your problem correctly. There is a pqServerManagerModel instance accessible as pqApplicationCore::instance()-getServerManagerModel() that can be used to access sources/filters their representations, views etc. Take a look at Qt/Core/pqServerManagerModel.h for the API. That should help you access the visualization pipeline. How to get, for instance, the ids of the nodes which are displayed after the application of a filter to the model ? Not sure I understand what you mean by that. Can you please elaborate? Utkarsh On Tue, Dec 16, 2008 at 6:38 AM, Rafael March rafaelmar...@yahoo.com wrote: Hey all, I'm programming a filter with a custom Object Panel, and I'm feeling a little bit lost about the ParaView architecture and code design. My great problem is the comunication between the Object Panel and the Model. I know I can't have a pointer to my vtkUnstructuredGrid displayed, 'cause they are not necessarily at the same machine or process. I also know that I'm able to send information to the model through properties, since I can get the vtkSMProxy in my panel. But what about the way back ? Is there a way to send information from the display view to the panel ? How
Re: [Paraview] Object Panel - Model Communication
Thanks a lot Utkarsh, I'm already testing and learning about the Information Properties, and I realized this is exactly what I need, concerning the Client/Server Communication. Let me try to explain what I asked about the visualization pipeline: Suppose I have an unstructured grid.Then, my filter associate an integer number, from 0 to 6, to each cell, according to an algorithm. My filter also implements a custom object panel. Then I clip my model, through the Clip Filter. Is it possible to get the output of the Clip (that is, the nodes that weren't cutted off )from my custom filter code (which stays before the Clip filter in the pipeline) ? Regards, Rafael March. --- On Tue, 12/16/08, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: From: Utkarsh Ayachit utkarsh.ayac...@kitware.com Subject: Re: [Paraview] Object Panel - Model Communication To: rafaelmar...@yahoo.com Cc: paraview@paraview.org Date: Tuesday, December 16, 2008, 2:17 PM To get back values from the server, you can use either information properties or information objects. Information properties are properites with information_only=1 set in the XML (eg. in Servers/ServerManager/Resources/rendering.xml the Camera proxy has CameraPositionInfo as an information property). Such properties need an InformationHelper which knows how to obtain the values from the server. For simple Get*() methods, you can use the SimpleDoubleInformationHelper/ or SimpleIntInformationHelper / etc. based on the type of the property. Complex information helpers can be written as well. Look at TimeStepsInformationHelper (vtkSMTimeStepsInformationHelper.h|cxx) as an example. Information objects are used to get data from server which cannot be simply put in a property for example information about the data object produced by a filter (vtkPVDataInformation). These are vtkPVInformation subclasses. You can create you own vtkPVInformation subclass that knows how to collect information and then serialize/deserialize it for transfer to the client from the server (if needed). To gather such information, one uses vtkProcessModule::GatherInformation(vtkIdType connectionID, vtkTypeUInt32 serverFlags, vtkPVInformation* info, vtkClientServerID id) where id is vtkSMProxy::GetID() returned for the proxy from which you want to collect the information. In your case, information property may be an easier solution -- if I understand your problem correctly. There is a pqServerManagerModel instance accessible as pqApplicationCore::instance()-getServerManagerModel() that can be used to access sources/filters their representations, views etc. Take a look at Qt/Core/pqServerManagerModel.h for the API. That should help you access the visualization pipeline. How to get, for instance, the ids of the nodes which are displayed after the application of a filter to the model ? Not sure I understand what you mean by that. Can you please elaborate? Utkarsh On Tue, Dec 16, 2008 at 6:38 AM, Rafael March rafaelmar...@yahoo.com wrote: Hey all, I'm programming a filter with a custom Object Panel, and I'm feeling a little bit lost about the ParaView architecture and code design. My great problem is the comunication between the Object Panel and the Model. I know I can't have a pointer to my vtkUnstructuredGrid displayed, 'cause they are not necessarily at the same machine or process. I also know that I'm able to send information to the model through properties, since I can get the vtkSMProxy in my panel. But what about the way back ? Is there a way to send information from the display view to the panel ? How can I display in a QTable, for instance, the nodes of my model which have some property equals to 1 ? Another problem is the Visualization Pipeline: is there a way to walk on it ? I mean, if I have a filter name, am I able to get the the filter no matter where it is in the Pipeline ? Sorry for the mess with the questions. I hope I made it clear and someone can help me ! :) Regards, Rafael March. ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Object Panel - Model Communication
Hey all, I'm programming a filter with a custom Object Panel, and I'm feeling a little bit lost about the ParaView architecture and code design. My great problem is the comunication between the Object Panel and the Model. I know I can't have a pointer to my vtkUnstructuredGrid displayed, 'cause they are not necessarily at the same machine or process. I also know that I'm able to send information to the model through properties, since I can get the vtkSMProxy in my panel. But what about the way back ? Is there a way to send information from the display view to the panel ? How can I display in a QTable, for instance, the nodes of my model which have some property equals to 1 ? Another problem is the Visualization Pipeline: is there a way to walk on it ? I mean, if I have a filter name, am I able to get the the filter no matter where it is in the Pipeline ? How to get, for instance, the ids of the nodes which are displayed after the application of a filter to the model ? Sorry for the mess with the questions. I hope I made it clear and someone can help me ! :) Regards, Rafael March. ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Highlighting Selected Area
Hey paraview comunity, I have a problem, and I think you can show me the path to solve it. I've programmed a plugin which has a custom Object Panel. In this panel, I can select in a QComboBox an integer number, from 0 to 6. Suppose now that I have an unstructured grid, whose cells contain a scalar data field. What I want to do is, when a specific integer is selected, the cells which have this number associated as scalar data have their edges highlighted. By highlighted I mean coloured in green, pink, red, or any different color. ParaView colors my model according to the number associated with each cell. I want to have this colors preserved. What I want to do is exactly what Selection Inspector does, when I choose to select by Threshold. Any suggestions ? Thanks y'all, Rafael March. ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Filter with Personalized Properties tab
Hi Sam and Paraview Community, actually I have an older version of the Paraview's Guide, but it's still a good reference. Huum...I still don't know if I should program a QT presonalized properties tab, or if I should adopt the simplest solution; to change it through the XML of my filter. I feel that QT code would give me more freedom to change the layout of the components, for instance, or to organize Widgets with borders, tabs and so on. Do you know if it's possible to do this kind of stuff through the XML ? And which method or class should I use to program the interaction of the ObjectPanel and The UnstructuredGrid displayed in the screen; if I choose the QT programming solution ? Thanks again ! Rafael March. --- On Fri, 9/19/08, Samuel Crow [EMAIL PROTECTED] wrote: From: Samuel Crow [EMAIL PROTECTED] Subject: Re: [Paraview] Filter with Personalized Properties tab To: paraview@paraview.org, [EMAIL PROTECTED] Date: Friday, September 19, 2008, 6:47 PM Hello Rafael March, If you have the ParaView Guide version 3 I've found chapter 18 on Server Manager XML to be a good reference to all of the different tags that are supported. I haven't even had to write a custom GUI panel since the default gadgets work well enough for most instances. What kinds of gadgets are you using in your panel? --Sam Crow --- On Fri, 9/19/08, Rafael March [EMAIL PROTECTED] wrote: From: Rafael March [EMAIL PROTECTED] Subject: Re: [Paraview] Filter with Personalized Properties tab To: paraview@paraview.org Date: Friday, September 19, 2008, 6:39 PM Ok, thanks a lot, Kenneth ! One problem at a time ! :) I've managed to add some QT Widgets in the properties tab by extending the pqAutoGeneratedObjectPanel. Now, how can I handle events generated by the GUI, in order to change properties of the model displayed in the screen ? I mean, how can I really connect my filter with the ObjectPanel ? Thanks again ! Rafael March. --- On Thu, 9/18/08, Moreland, Kenneth [EMAIL PROTECTED] wrote: From: Moreland, Kenneth [EMAIL PROTECTED] Subject: Re: [Paraview] Filter with Personalized Properties tab To: [EMAIL PROTECTED] [EMAIL PROTECTED], paraview@paraview.org paraview@paraview.org Date: Thursday, September 18, 2008, 2:48 PM You can customize the GUI somewhat by modifying the server manager XML that describes your filter. For example, you can create a combo box in the GUI by adding an EnumerationDomain to an IntVectorProperty or you could create a checkbox by adding a BooleanDomain. You can also create your own properties panel using Qt code. The wiki page on ParaView plugins has a simple example of customizing the auto-generated panel. You can provide even more customization (for example, by using your own panel created in Qt Designer) by subclassing either pqNamedObjectPanel or pqObjectPanel. -Ken On 9/18/08 8:28 AM, Rafael March [EMAIL PROTECTED] wrote: Hey all, I have my own filter running well in Paraview. I would like to extend it to enable adding scalar or vector properties, as well as changing existing data of nodes and cells. I would like to implement this feature through a customized GUI, like buttons, combo boxes and so on in the properties tab of the filter. How can I access and modify this tab ? Should I do it inside my filters code ? Any suggestions ? Thanks all, Rafael March. Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: [EMAIL PROTECTED] ** *** ** phone: (505) 844-8919 *** fax: (505) 845-0833 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Filter with Personalized Properties tab
Ok, thanks a lot, Kenneth ! One problem at a time ! :) I've managed to add some QT Widgets in the properties tab by extending the pqAutoGeneratedObjectPanel. Now, how can I handle events generated by the GUI, in order to change properties of the model displayed in the screen ? I mean, how can I really connect my filter with the ObjectPanel ? Thanks again ! Rafael March. --- On Thu, 9/18/08, Moreland, Kenneth [EMAIL PROTECTED] wrote: From: Moreland, Kenneth [EMAIL PROTECTED] Subject: Re: [Paraview] Filter with Personalized Properties tab To: [EMAIL PROTECTED] [EMAIL PROTECTED], paraview@paraview.org paraview@paraview.org Date: Thursday, September 18, 2008, 2:48 PM You can customize the GUI somewhat by modifying the server manager XML that describes your filter. For example, you can create a combo box in the GUI by adding an EnumerationDomain to an IntVectorProperty or you could create a checkbox by adding a BooleanDomain. You can also create your own properties panel using Qt code. The wiki page on ParaView plugins has a simple example of customizing the auto-generated panel. You can provide even more customization (for example, by using your own panel created in Qt Designer) by subclassing either pqNamedObjectPanel or pqObjectPanel. -Ken On 9/18/08 8:28 AM, Rafael March [EMAIL PROTECTED] wrote: Hey all, I have my own filter running well in Paraview. I would like to extend it to enable adding scalar or vector properties, as well as changing existing data of nodes and cells. I would like to implement this feature through a customized GUI, like buttons, combo boxes and so on in the properties tab of the filter. How can I access and modify this tab ? Should I do it inside my filters code ? Any suggestions ? Thanks all, Rafael March. Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: [EMAIL PROTECTED] ** *** ** phone: (505) 844-8919 *** fax: (505) 845-0833 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Filter with Personalized Properties tab
Hey all, I have my own filter running well in Paraview. I would like to extend it to enable adding scalar or vector properties, as well as changing existing data of nodes and cells. I would like to implement this feature through a customized GUI, like buttons, combo boxes and so on in the properties tab of the filter. How can I access and modify this tab ? Should I do it inside my filters code ? Any suggestions ? Thanks all, Rafael March. ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Getting original node's id's
Hey Paraview Community, I have a filter that receives an UnstructuredGrid as input, and associates an integer number (according to some rule, of course) to each Point of the mesh. So, I can use the Threshold filter to separate a piece of my model from the rest (for instance, I can filter my model in order to show only the nodes whose integer number is 6). The problem is, when I use this filter, Paraview atributtes new id's to the nodes. I would like to maintain the original numbers ! Does anybody know how to solve this problem ? I thought that I might store the point's memory address so that I can walk through the pipeline later and recover the id, but I don't think Paraview maintain these addresses either. Thanks in advance. Rafael March. ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Writer example
Hi, unfortunatelly, I couldn't compile it. Got 17 error LNK:unresolved external symbol like errors. Have any idea what's wrong ? Do you have another example ? Thanks ! Rafael March. --- On Mon, 9/8/08, Mike Jackson [EMAIL PROTECTED] wrote: From: Mike Jackson [EMAIL PROTECTED] Subject: Re: [Paraview] Writer example To: [EMAIL PROTECTED] Cc: paraview@paraview.org Date: Monday, September 8, 2008, 3:50 PM Give this a try. It does load with the latest ParaView CVS. Could not actually figure out how to use it but the plugin did compile and load. OS X 10.5.4, ParaView CVS, Xcode 3.1 tooling. CMake 2.6.1 _ | Mike Jackson - Principal Software Engineer | | BlueQuartz Software | | [EMAIL PROTECTED] | | www.bluequartz.net | --- On Sep 8, 2008, at 11:10 AM, Rafael March wrote: Dear friends, I'm trying to create my own writer, and I'm having some problems. I wonder if anyone could send me a source code with an writer example, so that I can use it as a template. I know that there is one called MyTiffWriter under Examples/Plugin/ Writer, in the latest cvs version of Paraview. I've already compiled it, and it works fine. But, it has no code implementation, just overwrites the already existing vtkTiffWriter. So, it would be more useful to me an example with an explicit writer implementation. Can anyone provide me this code ? Thanks in advance. Rafael March. ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview