<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Thanks for the reply, Utkarsh !</DIV>
<DIV> </DIV>
<DIV>Yeah, that's a possibility ! I'll try to do this way !<BR></DIV>
<DIV>But I think what I need is even simpler as changing the active selection: I need only to change only the colors ! I mean, if I had a method vtkCell::setColor(int,int,int), for instance, it would be exactly what I need ! :)</DIV>
<DIV> </DIV>
<DIV>Thanks y'all,</DIV>
<DIV>Rafael March.<BR><BR><BR>--- On <B>Mon, 11/24/08, Utkarsh Ayachit <I><utkarsh.ayachit@kitware.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: Utkarsh Ayachit <utkarsh.ayachit@kitware.com><BR>Subject: Re: [Paraview] Highlighting Selected Area<BR>To: rafaelmarch3@yahoo.com<BR>Cc: paraview@paraview.org<BR>Date: Monday, November 24, 2008, 2:24 PM<BR><BR><PRE>Hey Rafael,
Okay this is a bit advanced (and hacky at the same time -- in ParaView design
object inspector panels are never meant to affect the active selection), but you
can give it a try for your plugin.
In your custom object, when the user changes the 'index' you can set up
a ("sources", "ThresholdSelectionSource") proxy instance
(create a new one if needed) and set it as the selection input to the proxy the
panel is showing (vtkSMSourceProxy::SetSelectionInput). You can look at
pqSelectionInspectorPanel::select to see how the a new selection source may be
created.
Utkarsh
Rafael March wrote:
> 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
</PRE></BLOCKQUOTE></td></tr></table><br>