Commit 2779b61a authored by Mathieu Westphal's avatar Mathieu Westphal

Add a GetProxy method to vtkSMProxyGroupDomain

This adds a GetProxy(unsigned int index) to vtkSMProxyGroupDomain
as it was missing.
parent 4c37eeaa
......@@ -160,6 +160,12 @@ const char* vtkSMProxyGroupDomain::GetProxyName(unsigned int idx)
return proxyName;
}
//---------------------------------------------------------------------------
vtkSMProxy* vtkSMProxyGroupDomain::GetProxy(unsigned int idx)
{
return this->GetProxy(this->GetProxyName(idx));
}
//---------------------------------------------------------------------------
const char* vtkSMProxyGroupDomain::GetProxyName(vtkSMProxy* proxy)
{
......
......@@ -87,6 +87,11 @@ public:
*/
const char* GetProxyName(unsigned int idx);
/**
* Given an index, returns a proxy.
*/
vtkSMProxy* GetProxy(unsigned int idx);
/**
* Returns the name (in the group) of a proxy.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment