I can't see how this is possible through the SharedProperties as the color combo box that is displayed in the "Display Properties" is chosen from the result of pqPipelineRepresentation::getRepresentationType() <meta http-equiv="content-type" content="text/html; charset=utf-8"> (from the call in pqDisplayProxyEditor.cxx line 695). This will default to vtkSMPVRepresentationProxy::SURFACE for all user defined representations inheriting from SurfaceRepresentation type - really this should be checking the subtype ID that is specified in the XML file, although I'm not quite sure how this can be done....<div>
<br></div><div>Can you get it to work with the example plugin?<br><div><br>Thanks,</div><div>Paul<br><br><div class="gmail_quote">On 22 February 2010 15:05, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">One solution is to share common properties with the<br>
SurfaceRepresentation sub-proxy using the <ShareProperties> tag. You<br>
can add exceptions (you will have to add exceptions for Input,<br>
Representation properties at the least).<br>
<br>
Utkarsh<br>
<div><div></div><div class="h5"><br>
On Mon, Feb 22, 2010 at 7:48 AM, Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>> wrote:<br>
> Hi,<br>
> I have compiled the representation plugin in the CVS and I have the problem<br>
> that I cannot change the colour for the "Special Mapper" in the Object<br>
> Inspector's "Display" panel. This seems to be due to the display properties<br>
> being for the surface representation rather than the wireframe (it shows<br>
> "Set Solid Color..." rather than "Set Ambient Color..."). Does anyone know<br>
> who to fix this?<br>
> Thanks in advance,<br>
> Paul<br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br></div></div>