Re: [Paraview] points and cells labels
One possible solution is to add the labels as a point data or cell data array of type vtkStringArray and then use the selection labeling mechanism to label with this string array. Utkarsh On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal nbi...@mirarco.org wrote: Hello, Is it possible to put labels on points or cells using a filter ? Inside my filter code, I want to do something like: myPoint-setLabel(50 metres); the label must look like the selection inspector label and not the vtkVectorText one. Is there a way to do that ? ___ 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] points and cells labels
Thanks Utkarsh for your response. that's what I already did. I used empty string on points where I don't want to display properties. But the user must use the selection inspector to see the labels. Is there a way to do the selection from the filter code. It will be perfect if I can select the points I want from inside the filter code, or simply select all points will help also. Thanks On Mon, 22 Dec 2008 09:16:43 -0500 Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: One possible solution is to add the labels as a point data or cell data array of type vtkStringArray and then use the selection labeling mechanism to label with this string array. Utkarsh On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal nbi...@mirarco.org wrote: Hello, Is it possible to put labels on points or cells using a filter ? Inside my filter code, I want to do something like: myPoint-setLabel(50 metres); the label must look like the selection inspector label and not the vtkVectorText one. Is there a way to do that ? ___ 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] points and cells labels
Nehme, Is this in a custom application/python or ParaView GUI. In python/custom-app you can yourself create (representations, DataLabelRepresentation) representation proxy and connect it to the output of your filter. Then it will label all points/cells. Utkarsh On Mon, Dec 22, 2008 at 9:24 AM, Nehme Bilal nbi...@mirarco.org wrote: Thanks Utkarsh for your response. that's what I already did. I used empty string on points where I don't want to display properties. But the user must use the selection inspector to see the labels. Is there a way to do the selection from the filter code. It will be perfect if I can select the points I want from inside the filter code, or simply select all points will help also. Thanks On Mon, 22 Dec 2008 09:16:43 -0500 Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: One possible solution is to add the labels as a point data or cell data array of type vtkStringArray and then use the selection labeling mechanism to label with this string array. Utkarsh On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal nbi...@mirarco.org wrote: Hello, Is it possible to put labels on points or cells using a filter ? Inside my filter code, I want to do something like: myPoint-setLabel(50 metres); the label must look like the selection inspector label and not the vtkVectorText one. Is there a way to do that ? ___ 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] points and cells labels
Sorry I forgot to mention that this is a C++ Paraview GUI filter... Nehme On Mon, 22 Dec 2008 09:32:51 -0500 Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Nehme, Is this in a custom application/python or ParaView GUI. In python/custom-app you can yourself create (representations, DataLabelRepresentation) representation proxy and connect it to the output of your filter. Then it will label all points/cells. Utkarsh On Mon, Dec 22, 2008 at 9:24 AM, Nehme Bilal nbi...@mirarco.org wrote: Thanks Utkarsh for your response. that's what I already did. I used empty string on points where I don't want to display properties. But the user must use the selection inspector to see the labels. Is there a way to do the selection from the filter code. It will be perfect if I can select the points I want from inside the filter code, or simply select all points will help also. Thanks On Mon, 22 Dec 2008 09:16:43 -0500 Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: One possible solution is to add the labels as a point data or cell data array of type vtkStringArray and then use the selection labeling mechanism to label with this string array. Utkarsh On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal nbi...@mirarco.org wrote: Hello, Is it possible to put labels on points or cells using a filter ? Inside my filter code, I want to do something like: myPoint-setLabel(50 metres); the label must look like the selection inspector label and not the vtkVectorText one. Is there a way to do that ? ___ 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] Object Panel - Model Communication
Rafael, You are correct. DataSetAttributesInformation cannot provide you with the actual data. I guess you will have fetch the whole data client. Utkarsh On Thu, Dec 18, 2008 at 11:04 AM, Rafael March rafaelmar...@yahoo.com wrote: 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
Re: [Paraview] Plugin Writing
That code is in the gui xml file that your plugin provides I believe. Something like: ParaViewFilters Filter name=myGreatFilter / /ParaViewFilters _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Dec 22, 2008, at 8:28 AM, Benjamin Schindler wrote: Hi I've got a plugin which compiles cleanly, but the menu entry for the plugin is not shown (The plugin is being loaded - I checked strace. So PV_PLUGIN_PATH is set correctly) Since I have no clue where the problem could be - is there some debugging switch that enables some kind of error messages? paraview is completely silent and doesn't tell a thing when the plugin wasn't able to load Thanks Benjamin ___ 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] High Quality Triangulation
Could you explain what you mean by bad triangulation? I looked at the results with the cylinder and the box sources, and the triangulation looks perfect to me: Each polygon is broken up evenly into smaller triangles. Were you expecting some other result? -Ken On 12/19/08 8:34 AM, Chaman Singh Verma csv...@gmail.com wrote: Hello, Although the problem is simple outside Paraview, but I was wondering if there is some way to create very high quality triangulation of some of the primitive surfaces defined in the Source such as cylinder, cubes etc directly in the Paraview. I tried using two filters (1) First triangulate (2) and then Subdivide. but the output contained bad quality triangulation. thanks. csv Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Random Colormap
There is no easy way to create a random color map in ParaView, but it is not hard to make a random scalar field. For example, you could use the Random Vectors filter. -Ken On 12/20/08 10:49 AM, Chaman Singh Verma csv...@gmail.com wrote: Hello, I have one specific requirement and hope ParaView can do a good job. I am interested in Visualizing Graph Partitioned Domain. Since number of Partitions could be very large, it is important that neighbouring domain to have high contrasting color. A smoothly varying colormap doesn't do good job for large domains. Is there any way to create random colormap in ParaView ? Thanks. csv Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Creating Plugins
Benjamin, I don't think any of the developers are aware of bug that causes the VTK wrapping parser to hang. Could you send us a piece of code that demonstrates the problem? -Ken On 12/19/08 6:33 AM, Benjamin Schindler bschind...@student.ethz.ch wrote: I just renamed the baseclass now (It is not inside a library so that's no issue) and the parser seems to accept this. Adding //btx //etx works but that's not really an ideal solution. IMHO, the grammar of the parser should be changed for such things to be possible. I'm using the svn version of paraview and the parser seems to hang but it doesn't report an error. I assume that's a bug which will be fixed pretty soon Thanks Benjamin Michael Jackson wrote: Not sure about the multiple inheritance issue but for methods that don't take vtk type primitives surround the method declaration with the following: //btx void SomeFunction(... ); //etx _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Dec 19, 2008, at 7:25 AM, Benjamin Schindler wrote: Hi I'm trying to create a paraview plugin out of a filter I'm currently writing for my own viewer. I'm hitting several roadblocks with the parser: *** SYNTAX ERROR found in parsing the header blablabla I currently found the following issues: class Something; // Not allowed because it does not start with the vtk Prefix class vtkMyFilter: public vtkSomeFilterClass, public MyBaseClass // Probably same as above, but I'm not sure { void SomeFunction(Eigen::Vector3f arg); // I assume I can't take arguments that are not primitive types or don't have the vtk prefix but I'm not sure } Is there anything I can do about these issues? Thanks Benjamin ___ 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 mailing list ParaView@paraview.org 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 ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
[Paraview] ClientDeliveryRepresentation
How does the ClientDeliveryRepresentation choose what data type to send? I have two pipelines: Reader-ImageReslice-ClientDeliveryRepresentation-ImagePlaneWidget and Reader-ClientDeliveryRepresentation-hacked ImagePlaneWidget that allows pipeline inputs The first works beautifully, while the ImageReslice inside my second pipeline complains that it is getting polydata instead of imagedata. Any suggestions, besides producing an image plane widget that uses a server side reslice? -- Sometimes it's hard to tell the dancer from the dance - Corwin in CoC ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ClientDeliveryRepresentation
Look at vtkSMClientDeliveryStrategyProxy::UpdatePipelineInternal() that's where the data type is set on the data-transfer filter. BTW, ClientDeliverRepresentation cannot deliver 3D image data. It can only deliver 2D slices. Utkarsh On Mon, Dec 22, 2008 at 12:17 PM, jonathan grimm flym...@gmail.com wrote: How does the ClientDeliveryRepresentation choose what data type to send? I have two pipelines: Reader-ImageReslice-ClientDeliveryRepresentation-ImagePlaneWidget and Reader-ClientDeliveryRepresentation-hacked ImagePlaneWidget that allows pipeline inputs The first works beautifully, while the ImageReslice inside my second pipeline complains that it is getting polydata instead of imagedata. Any suggestions, besides producing an image plane widget that uses a server side reslice? -- Sometimes it's hard to tell the dancer from the dance - Corwin in CoC ___ 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