[vtkusers] Begginer question about vtkSelection/vtkSelectionNode

Jeff Baumes jeff.baumes at kitware.com
Mon Jun 8 10:35:47 EDT 2009


vtkExtractSelection will only work on the first node in the selection. So if
you have multiple selection nodes, to extract a different frustum you will
need to replace the first node with
sel->RemoveAllNodes();
sel->AddNode(newNode);

Multiple selection nodes are used by the filter to specify a different
selection for each block on a multiblock dataset. vtkSelection does not
support the notion of "active" and "inactive" nodes.

Jeff

On Mon, Jun 8, 2009 at 9:10 AM, Wagner Sales <wsales at gmail.com> wrote:

> Hi,
>
> I'm doing a very common task: extracting multiple frustum selections
> from a vtkImageData.
> Then:
> 1 - I create a vtkSelection
> 2 - I create multiple nodes vtkSelectionNode, each one with a desired
> frustum information
> 3 - Then I need to use vtkExtractSelection to extract the data.
> The question are: since I set the vtkSelection to vtkExtractSelection
> ( not the vtkSelectionNode, that's are various ) and in vtkSelection I
> don't have a method like "set current node", which node will be
> extracted or how to extract a node's selection?
>
> Regards,
>
> Wagner Sales
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090608/50b51b84/attachment.htm>


More information about the vtkusers mailing list