[Paraview-developers] vtkSMSessionProxyManager::getProxies bug
Mathieu Westphal
mathieu.westphal at gmail.com
Thu Jul 24 03:36:34 EDT 2014
Hello
It seems to me there is a bug in
vtkSMSessionProxyManager::getProxies
I try to recover scalar_bar representation so , i create one in the gui, then :
vtkSMSessionProxyManager* pxm = vtkSMProxyManager::GetProxyManager()->GetActiveSessionProxyManager();
vtkSmartPointer<vtkCollection> legends = vtkSmartPointer<vtkCollection>::New();
pxm->GetProxies( LEGEND_REGISTERED_GROUP_NAME.toAscii().data(), legends );
printf("Nb: %i %i\n", legends->GetNumberOfItems(), pxm->GetNumberOfProxies( "scalar_bars" ) );
Give me :
Nb: 0 1
THe proxy is not recovered in the vtkCollection because of this line ( vtkSMSessionProxyManager.cxx ):
488 if(ids.find(it3->GetPointer()->Proxy->GetGlobalID()) != ids.end())
I'm using a work around, wich works well :
unsigned int nbLegend = pxm->GetNumberOfProxies( "scalar_bars" );
for(unsigned int i = 0; i < nbLegend; i++ )
{
QString tmp ( pxm->GetProxyName("scalar_bars", i ) );
vtkSMProxy* proxy = pxm->GetProxy( "scalar_bars", tmp.toAscii().data() );
printf("%s %i\n", tmp.toAscii().data(), proxy );
}
Mathieu
More information about the Paraview-developers
mailing list