[vtkusers] Moving a vertex

rakesh patil prakeshofficial at gmail.com
Tue Sep 21 22:06:21 EDT 2010


Well,

I think this is wat is happening. Mouse Down is executed only first time.
Then mouse move is executed till the mouse is released. So I guess here in
mouse event you need to update the MovePolyData and render it.

Like get the mouse position x, y and set this point to MovePolyData.

then i think it should work. I am at home, so couldn't try. :-)

Thanks

Regards
Rakesh Patil

On Tue, Sep 21, 2010 at 10:27 PM, David Doria <daviddoria at gmail.com> wrote:

> On Tue, Sep 21, 2010 at 12:51 PM, rakesh patil
> <prakeshofficial at gmail.com> wrote:
> > Hi,
> >
> > I see that the Data in the interactor style, is coming from glyph filter.
> > And everytime, Data is being updated, but how will glyph filter come to
> know
> > that its data is modified?
> >
> > I guess there should be some means to update that glyph filter as done in
> > the previous example..
> >
> > Thanks
> >
> > Regards
> > Rakesh Patil
>
> The glyph filter should update automatically because I call Modified()
> on the Data that is the input to it, right? This part is actually the
> second step - the first step is why does the "ghost glyph" not appear
> and get dragged around?
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100922/4bdc3d5e/attachment.htm>


More information about the vtkusers mailing list