[vtkusers] How to change data through Actor
Bill Chivas
noo134 at googlemail.com
Wed Apr 7 04:37:58 EDT 2010
Hi Rakesh Patil
did you try this out?
2010/4/6 Bill Chivas <noo134 at googlemail.com>
> Try this:
>
> pts->Modified();
> vtkRenderWindow->Render();
>
>
> Bill
>
>
> 2010/4/6 Rakesh Patil <rakeshthp at in.com>
>
>
>> Hi Darshan,
>>
>> That i have done.. But how do i set the updated data to the actor..??
>>
>> I mean, for example, I get the Unstructured grid from the actor as
>> follows:
>>
>> vtkUnstructuredGrid *grid = vtkUnstructuredGrid::SafeCast(
>> actor->GetMapper()->GetInput() );
>>
>> vtkPoints *pts = grid->GetPoints();
>>
>> // Assign new values to pts
>>
>> Next how do I connect this pts to actor "actor" so that the actor clears
>> the old display and renders new display..??
>>
>> I mean after i set pts to grid, how do i set this grid to actor..? I tried
>> doing this...
>>
>> actor->GetMapper()->GetInput()->ShallowCopy(grid);
>> actor->Modified();
>>
>> But i found no change.. It is showing same old display..
>>
>> Any suggestions..??
>>
>> Thanks
>>
>> Regards
>> Rakesh Patil
>>
>>
>>
>> _______________________________________________
>> 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/20100407/ee7c1680/attachment.htm>
More information about the vtkusers
mailing list