Hi
I am trying to figure out how can I register a new view under a name different
than the default "YXYChartView" which replaces the default representation in
Paraview, but I am either getting the assertion failure "ASSERT:
"pqPreferredView" in file
/spare/Andrzej/packages/ParaView-5.0-source/Qt/ApplicationComponents/pqApplyBehavior.cxx,
line 277" when
do things like this
<ProxyGroup name="views">
<ContextViewProxy base_proxygroup="internal_views"
base_proxyname="ARAXYChartViewBase4Axes"
class="ARAPVXYChartViewClass"
name="ARAXYChartView" label=" My Line Chart View"
processes="client|renderserver|dataserver"
representation_name="ARAXYChartRepresentation"
post_creation="SetChartTypeToLine">
</ContextViewProxy>
</ProxyGroup>
or more specifically like this
<ProxyGroup name="views">
<ContextViewProxy base_proxygroup="internal_views"
base_proxyname="XYChartViewBase4Axes"
class="vtkPVXYChartViewClass"
name="ARAXYChartView" label=" My Line Chart View"
processes="client|renderserver|dataserver"
representation_name="XYChartRepresentation"
post_creation="SetChartTypeToLine">
</ContextViewProxy>
</ProxyGroup>
and then
<ProxyGroup name="filters">
<SourceProxy class="vtkPassThrough" label="ARA Plot Data"
name="ARAPlotAttributes">
<InputProperty command="SetInputConnection"
name="Input">
<ProxyGroupDomain name="groups">
<Group name="sources" />
<Group name="filters" />
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkDataObject" />
</DataTypeDomain>
<Documentation>The input.</Documentation>
</InputProperty>
<Hints>
<ShowInMenu category="ARA Extensions"
show_in_toolbar="0" />
<View type="ARAXYChartView" />
<Plotable />
</Hints>
</SourceProxy>
</ProxyGroup>
Is there a way to register a new view at all ?
Thank you,
Andrzej
**********************************************************************
Please consider the environment. Only print this email if absolutely necessary.
This email contains information that is private and confidential and is
intended only for the addressee.
If you are not the intended recipient please delete it and notify us
immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other
than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No
503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
**********************************************************************
_______________________________________________
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
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview