<div dir="ltr">Hi Michael,<div><br></div><div>Checkout out "vtkSMPVRepresentationProxy::SetScalarColoring(...)".</div><div>I think that's what you are looking for.</div><div><br></div><div>Yumin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 9:24 AM, Reuter, Michael A. <span dir="ltr"><<a href="mailto:reuterma@ornl.gov" target="_blank">reuterma@ornl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have an application that I’m trying to conform back to git-master in preparation for the version 4.2 release. In the application, I used the pqPipelineRepresentation::colorByArray function to preset the colormap array before the data is rendered. I see that this function has been removed. I did a bit of digging and tried to use the following as a replacement (signal is our default array name):<br>
<br>
pqDataRepresentation *drep = objectBuilder->createDataRepresentation(…);<br>
vtkSMPropertyHelper(drep->getProxy(), “Representation”).Set(“Surface”);<br>
vtkSMPropertyHelper(drep->getProxy(), “ColorArrayName”).Set(“signal”);<br>
drep->getProxy()->UpdateVTKObjects();<br>
<br>
However, this doesn’t seem to set the correct array as the view shows Solid Color for the array when it renders. I’m either invoking things incorrectly or at the wrong time, but I don’t know what. What am I missing or is there a more appropriate alternative to this method?<br>
<br>
Thanks,<br>
M<br>
<br>
Dr. Michael Reuter<br>
Scientific Data Analysis Group<br>
Neutron Data Analysis and Visualization Division<br>
Oak Ridge National Laboratory<br>
<br>
Office: <a href="tel:1-865-241-7216" value="+18652417216">1-865-241-7216</a><br>
Fax: <a href="tel:1-865-574-6080" value="+18655746080">1-865-574-6080</a><br>
Email: <a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a><mailto:<a href="mailto:reuterma@ornl.gov">reuterma@ornl.gov</a>><br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>