Thanks again :)<br><br><div class="gmail_quote">On 15 July 2010 15:48, 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;">
Not currently. However you can try to keep the copy-pasted code<br>
minimal by using a separate definition for your representation as done<br>
in the example on wiki.<br>
<br>
<a href="http://www.paraview.org/Wiki/Plugin_HowTo#Adding_new_Representations_for_3D_View_using_Plugins__.2A_new_in_version_3.7" target="_blank">http://www.paraview.org/Wiki/Plugin_HowTo#Adding_new_Representations_for_3D_View_using_Plugins__.2A_new_in_version_3.7</a><br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Thu, Jul 15, 2010 at 10:46 AM, Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>> wrote:<br>
> I've just copied the Extension tag for each and it seems to work - is there<br>
> a better way than to Copy & Paste for each?<br>
> Thanks,<br>
> Paul<br>
><br>
> On 15 July 2010 15:33, Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> So you must have an <Extension > element for "GeometryRepresentation"<br>
>> in your plugin. You need to add <Extension > elements for<br>
>> "UniformGridRepresentation" and "UnstructuredGridRepresentation" as<br>
>> well.<br>
>><br>
>> Utkarsh<br>
>><br>
>> On Thu, Jul 15, 2010 at 10:32 AM, Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>><br>
>> wrote:<br>
>> > The difference is due to<br>
>> > vtkSMRenderViewProxy::CreateDefaultRepresentation<br>
>> > returning either an UnstructuredGridRepresentation for unstructured<br>
>> > data,<br>
>> > UniformGridRepresentation for image data and GeometryRepresentation for<br>
>> > other datasets. The representations from the plugins only appear with<br>
>> > the<br>
>> > GeometryRepresentation. Do you know how to fix this?<br>
>> > Thanks,<br>
>> > Paul<br>
>> ><br>
>> > On 15 July 2010 13:58, Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>> wrote:<br>
>> >><br>
>> >> By "added specifically for a type" I was referring to how ParaView adds<br>
>> >> a<br>
>> >> volume representation for unstructured dataset (and volume and slice<br>
>> >> for an<br>
>> >> image dataset). I would like my representation to be available for all<br>
>> >> datasets.<br>
>> >> Regards,<br>
>> >> Paul<br>
>> >><br>
>> >> On 15 July 2010 13:54, Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> What do you mean by "added specifically for a type". How are you<br>
>> >>> doing<br>
>> >>> that?<br>
>> >>><br>
>> >>> Utkarsh<br>
>> >>><br>
>> >>> On Thu, Jul 15, 2010 at 6:31 AM, Paul Edwards<br>
>> >>> <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>><br>
>> >>> wrote:<br>
>> >>> > Hi,<br>
>> >>> > I've added a representation to display feature edges but I can't get<br>
>> >>> > it<br>
>> >>> > to<br>
>> >>> > work for all datasets (it is missing for image and unstructured<br>
>> >>> > data).<br>
>> >>> > It<br>
>> >>> > seems that when another representation is added specifically for a<br>
>> >>> > type<br>
>> >>> > of<br>
>> >>> > data set (e.g. volume for unstructured, or slice and volume for<br>
>> >>> > image<br>
>> >>> > data)<br>
>> >>> > it loses all the extra representations from plugins - unless I'm<br>
>> >>> > doing<br>
>> >>> > something wrong.... The same happens for the example representation<br>
>> >>> > plugin<br>
>> >>> > that comes with ParaView. Any advice would be appreciated.<br>
>> >>> > Thanks,<br>
>> >>> > paul<br>
>> >>> > _______________________________________________<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>
>> >><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br>