[Paraview-developers] monitor data changing

Yumin Yuan yumin.yuan at kitware.com
Wed Apr 11 10:03:00 EDT 2012


Hi Lin,

Paraview/VTK has somewhat complex mechanism to check whether the
pipeline is actually modified and need to rerun when UpdatePipeline is
invoked, because rerunning a pipeline could be very expensive.

If you do want to rerun the pipeline after certain time, you could try
(not sure if this will work)
myreaderproxy->MarkModified(0);
myreaderproxy->UpdatePipeline();

or, you could reset the "FileName" property
      vtkSMPropertyHelper(myreaderproxy, "FileName").Set(0);
      myreaderproxy->UpdateVTKObjects();
      vtkSMPropertyHelper(myreaderproxy, "FileName").Set("mycsvfilename");
      myreaderproxy->UpdateVTKObjects();
      myreaderproxy->UpdatePipeline();


Yumin

On Wed, Apr 11, 2012 at 3:34 AM, Lin CHENG <forestcheng at gmail.com> wrote:
> Hi,
>
> I want to monitor csv data changing with CSVReader loading data and
> XYChartView showing. I add a QTimer in pqPipelineSource, and call
> pqPipelineSource::updatePipeline() or
> vtkSMSourceProxy::UpdatePipeline, hoping update view if csv data file
> modified.
> Of course, it doesn't work.
> It's hard to understand commands of Client-Server stream.
>
> Hope some hints.
>
> Thanks & regards!
>
> --
> Lin CHENG
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers


More information about the Paraview-developers mailing list