[Paraview] Replacement for colorByArray

Yumin Yuan yumin.yuan at kitware.com
Fri Sep 5 16:44:31 EDT 2014


Hi Michael,

Please see inline comments below,

On Fri, Sep 5, 2014 at 11:03 AM, Reuter, Michael A. <reuterma at ornl.gov>
wrote:

> Hi Yumin,
>
> Thanks for the pointer as now the array is set. My next problem is that
> the transfer function range is (0, 1) and not the range of my array. I
> tried using vtkSMPVRepresentationProxy::RescaleTransferFunctionToDataRange,
> but ParaView gives a Could not determine array range warning. I wedged a
> UpdateVTKObjects() between the two calls but that didn’t help. What’s the
> right way to do this?
>
>
Try adding UpdatePipeline() after UpdateVTKObjects() before calling
RescaleTransferFunctionToDataRange(). The UpdatePipeline() will force the
pipeline to update so that the array information is set up properly.


> As a larger issue, I’m seeing that my old (PV 3.98.1 based) application is
> not liking how PV 4.2 is handling things. Is there any documentation or
> good examples of how things should be done for 4.2? My focus is on how to
> programmatically do things like: source and filter creation, pipeline
> construction and manipulation, manage different views, color map/transfer
> function manipulation, camera resetting. Now is the perfect time for a bit
> of a rewrite, but I’d definitely like to align things to how 4.2 wants
> things done.
>
>
AFAIK, there is no such document available (yet). However, we do have a
primary list that could be useful to people trying to convert pv-3.98 based
applications to pv-4.2. We (Utkarsh and I) are still working on this list,
and will put it up on the wiki once it is formalized a bit more.

Yumin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140905/240d01d1/attachment.html>


More information about the ParaView mailing list