Hello<div><br></div><div>I am developing an application based on the clone2 source in paraview 3.8.1.</div><div><br></div><div>I am using the following code to automatically show and accept loaded data:</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div>this->ui->proxyTabWidget->setShowOnAccept(true);</div><div>new pqAutoApplyReaction(this->ui->actionAutoApply);</div></blockquote><div><br></div><div>And I am using pqLoadDataReaction::loadData(stringList) to add the data.</div>
<div><br></div><div>I am wondering how one can know when the data/objects have actually been loaded? This so you can make changes to that data.</div><div><br></div><div>After loading new data I want to do the following (change the ColorMap on the new objects):</div>
<blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>pqDataRepresentation *currentDisplay = qobject_cast<pqPipelineRepresentation*>(pqActiveObjects::instance().activeRepresentation());</div>
</div><div><div>vtkSMProxy *lookupTable = currentDisplay->getLookupTable()->getProxy();</div></div></blockquote>But that code crashes (since the objects have not yet loaded?).<div><br></div><div>Any ideas? Thanks.</div>
<div><br></div><div>BR/ Christoffer<br><div><br></div></div>