Thanks for the idea. I think I found a solution to the issue and understand it now.
Just before the source is initially displayed, the method resetDisplay() of pqRenderViewBase is called. This in turn calls the method pqScalarsToColors::setWholeScalarRange(double min, double max) which then resets the scalar range and produces the results I observed. I cannot prevent ParaView from calling this method but there is an option to set a lock on the scalar range -- setScalarRangeLock(book lock). This lock affects the setWholeScalarRange but not the setScalarRange method. In my case the following works:
pqScalarsToColors* stc = repr->getLookUpTable();
stc->setScalarRange(min, max);
stc->setScalarRangeLock(true);
repr->getProxy()->UpdateVTKObjects();
repr->renderViewEventually();
Thanks again for your help Cory and all the best,
Anton
This message is commercial in confidence and may be privileged. It is intended for the
addressee(s) only. Access to this message by anyone else is unauthorized and strictly prohibited.
If you have received this message in error, please inform the sender immediately. Please note that
messages sent or received by the Tessella e-mail system may be monitored and stored in an
information retrieval system.
_______________________________________________ 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 Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
