[vtkusers] picked cell highlight
David Doria
daviddoria at gmail.com
Tue Sep 28 07:55:06 EDT 2010
On Mon, Sep 27, 2010 at 9:30 PM, czbebe <oka at bpe.es.osaka-u.ac.jp> wrote:
>
> Dear David,
>
> class MouseInteractorStyle
> ------
> vtkSmartPointer<vtkUnstructuredGrid> Data;
> //vtkSmartPointer<vtkPolyData> Data;
>
> main
> vtkSmartPointer<vtkUnstructuredGrid> ug =
> vtkSmartPointer<vtkUnstructuredGrid>::New();
> ------
> style1->Data = ug;
>
> is all right. I can do it.
> If next cell is selected, previous cell highlight disappeared.
> I want to left it highlighted and also pick next time, want
> to erase it.
> Is it possible?
>
> Best regards,
>
> Oka
>
>
Sure, use a vtkAppendFilter to append the output of the selection filter to
the existing highlighted cells rather than replace them:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/AppendFilter
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100928/3a014f6b/attachment.htm>
More information about the vtkusers
mailing list