[vtkusers] Moving a glyph

rakesh patil prakeshofficial at gmail.com
Mon Sep 20 05:10:49 EDT 2010


Hi,

i just added one statement here

this->Data->GetPoints()->SetPoint(this->SelectedPoint,
this->MoveActor->GetPosition());

*this->Data->Modified();*

this->GlyphFilter->Update();


and it works..

On Mon, Sep 20, 2010 at 8:19 AM, David Doria <daviddoria at gmail.com> wrote:

> I am attempting to modify the underlying data of an actor by glyphing
> a PolyData's points and then interacting with a specific glyph.
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/Interaction/MoveAGlyph
>
> I trick the interactor into thinking a new object (MoveActor) is what
> it should be interacting with. I "spawns" a ghost glyph. When the
> interaction is complete (OnMiddleButtonUp) I try to update the
> underlying point in the data set. This update does work (the actual
> data point is changed), but the positions of the glyphs are not
> updated! Shouldn't the pipeline take care of this (since the polydata
> is connected to the glyphFilter which is connected to the mapper which
> is connected to the renderer)?
>
> Any comments on what I've done here?
>
> Thanks,
>
> David
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100920/16a68c61/attachment.htm>


More information about the vtkusers mailing list