[Paraview] Paraview 5.0.1 - Registering new view

Andrzej Peczak apeczak at ara.co.uk
Wed Jun 22 13:25:16 EDT 2016


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

**********************************************************************


More information about the ParaView mailing list