[Paraview] Highlighting Selected Area

Rafael March rafaelmarch3 at yahoo.com
Mon Nov 24 09:43:15 EST 2008


Thanks for the reply, Utkarsh !
 
Yeah, that's a possibility ! I'll try to do this way !

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 ! :)
 
Thanks y'all,
Rafael March.


--- On Mon, 11/24/08, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:

From: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Subject: Re: [Paraview] Highlighting Selected Area
To: rafaelmarch3 at yahoo.com
Cc: paraview at paraview.org
Date: Monday, November 24, 2008, 2:24 PM

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 at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081124/1a9ba0fa/attachment.htm>


More information about the ParaView mailing list