Thank you so much Utkarsh, this is the function I was looking for. Andrzej
-----Original Message----- From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] Sent: 22 June 2016 21:39 To: Andrzej Peczak Cc: paraview@paraview.org Subject: Re: [Paraview] Paraview 5.0.1 - Registering new view You just need to tell ParaView which pqView subclass to create for your view proxy e.g. if pqContextView class would work for your case, then you'd add something like the following in your CMakeList.txt add_pqproxy(OUTIFACES OUTSRCS TYPE pqContextView XML_GROUP views XML_NAME ARAXYChartView) Utkarsh On Wed, Jun 22, 2016 at 1:25 PM, Andrzej Peczak <apec...@ara.co.uk> wrote: > 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/p > qApplyBehavior.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 ********************************************************************** 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