[vtkusers] vtkSelection
Bryn Lloyd
blloyd at vision.ee.ethz.ch
Thu Nov 13 09:49:23 EST 2008
Hi,
I am trying to use the selection mechanism. Somethings are a bit unclear
to me:
I would like to do something like is implemented in Paraview. In Point
selection mode I would like to select all points in a rectangular area.
In cell selection I would like to select all cells.
1. I have figured out that I need to use the vtkAreaPicker and the
vtkInteractorStyleRubberBandPick classes.
2. It seems I then need to extract cells AND points with the
vtkExtractSelectedFrustum object (vtkAreaPicker::GetFrustum()).
3. Finally, I would need to either pass the points or the cells,
depending on the mode. It seems vtkSelection can help at this stage. I
still need to figure out how.
Is this approach correct? Is the main importance of vtkSelection to
select cells or points in a unified generic way? Or is there another use
for it? The description is quite difficult to understand.
Does anybody want to share an example doing something similar, or point
me to the relevant code in paraview?
Thanks a lot
Bryn
More information about the vtkusers
mailing list