Cannot add a ContextViewProxy in a plugin
The following xml is non fonctionnal as a plugin :
<ServerManagerConfiguration>
<ProxyGroup name="views">
<ContextViewProxy base_proxygroup="internal_views"
base_proxyname="XYChartViewBase4Axes"
class="vtkPVXYChartView"
name="XYChartView2"
label="Line Chart View2"
processes="client|renderserver|dataserver"
representation_name="XYChartRepresentation"
post_creation="SetChartTypeToLine" >
<Documentation>This is the proxy for the XY line chart
view.</Documentation>
</ContextViewProxy>
</ProxyGroup>
</ServerManagerConfiguration>
Clicking on the button "Line Chart View2" in the empty has no effect.
because : pqStandardServerManagerModelInterface.cxx:113 test the xmlname of the view.
if (xmlname == "XYChartView" || xmlname == "QuartileChartView")
{
return new pqXYChartView(
group, name, vtkSMContextViewProxy::SafeDownCast(proxy), server, parent);
}
This is actually true for most view type, except for RenderView based views.