Re: [Paraview] points and cells labels
Hi, Is this possible with C++ filter/reader or only in python/custom-app ? 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] points and cells labels
I don't see any way of doing it through a filter. On Tue, Dec 23, 2008 at 10:08 AM, Nehme Bilal nbi...@mirarco.org wrote: Hi, Is this possible with C++ filter/reader or only in python/custom-app ? 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] 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
[Paraview] points and cells labels
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