[Paraview] points and cells labels
Nehme Bilal
nbilal at mirarco.org
Mon Dec 22 09:39:04 EST 2008
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.ayachit at 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
><nbilal at 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.ayachit at 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
>>><nbilal at 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 at paraview.org
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>
>>
>>
More information about the ParaView
mailing list