[Paraview] Sync time update for a vtkTable and vtkPolyData
Cory Quammen
cory.quammen at kitware.com
Mon Dec 7 22:07:35 EST 2015
That seems as good as any solution I might have proposed.
Cory
On Mon, Dec 7, 2015 at 9:05 PM, Matheus Viana <vianamp at gmail.com> wrote:
> Hi guys.
>
> I found a solution to this problem, but I don't think it is the easiest
> one. Anyway, it goes like this:
>
> Two views are created, the 1st is a 3D RenderView and the 2nd is a
> SpreadSheetView. The time-varying surfaces are shown in the first view and
> the time-varying tables are shown in the second view. Then, all I need to
> do in my Python script is to iterate over these two views and set the time
> step I want.
>
> Views = GetViews()
>
> for time in range(0,NMaxSteps):
>
> for view in range(0,numpy.size(Views)):
> SetActiveView(Views[view])
> GetActiveView().ViewTime = time
> Render()
>
> Thanks,
>
> *Matheus Viana*
> *Postdoctoral Research Employee*
> *Developmental and Cell Biology*
> *University of California Irvine*
>
>
>
> 2015-12-07 3:28 GMT-02:00 Matheus Viana <vianamp at gmail.com>:
>
>> Hi guys.
>>
>> I am facing an interesting problem. I loaded in Paraview a polyData
>> surface that changes in time. I have 10 time steps for this surface. At the
>> same time, I have for each time step, a text file containing xyz
>> coordinates. When I load these text files in Paraview, they are represented
>> as vtkTables.
>>
>> My problem is that the polydata surface and the vtkTable cannot be
>> displayed on the same view in Paraview as far as I know. Therefore, when I
>> use
>>
>> view = GetActiveView()
>> view.ViewTime = time_step_I_want
>> Render()
>>
>> to update the time to the time step I want, only one of the two are
>> actually updated, depending on which is is being shown in the view.
>>
>> Is there any way to force a given source (surface and table in this case)
>> to jump to a particular time step?
>>
>> Thanks,
>>
>> *Matheus Viana*
>> *Postdoctoral Research Employee*
>> *Developmental and Cell Biology*
>> *University of California Irvine*
>>
>>
>>
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151207/f5a720f6/attachment.html>
More information about the ParaView
mailing list