[vtkusers] Moving a glyph

Bill Lorensen bill.lorensen at gmail.com
Mon Sep 20 08:05:32 EDT 2010


Rakesh is correct. VTK does not automatically update modified times
for its "bulk data". It would be too costly. So, if you modify cells,
point data, points, etc. you must do a Modify when you deem it
appropriate, usually after a batch of changes.

Bill

On Mon, Sep 20, 2010 at 5:10 AM, rakesh patil <prakeshofficial at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list