[Paraview] new representations

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Jul 15 10:48:43 EDT 2010


Not currently. However you can try to keep the copy-pasted code
minimal by using a separate definition for your representation as done
in  the example on wiki.

http://www.paraview.org/Wiki/Plugin_HowTo#Adding_new_Representations_for_3D_View_using_Plugins__.2A_new_in_version_3.7

Utkarsh

On Thu, Jul 15, 2010 at 10:46 AM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
> I've just copied the Extension tag for each and it seems to work - is there
> a better way than to Copy & Paste for each?
> Thanks,
> Paul
>
> On 15 July 2010 15:33, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>>
>> So you must have an <Extension > element for "GeometryRepresentation"
>> in your plugin. You need to add <Extension > elements for
>> "UniformGridRepresentation" and "UnstructuredGridRepresentation" as
>> well.
>>
>> Utkarsh
>>
>> On Thu, Jul 15, 2010 at 10:32 AM, Paul Edwards <paul.m.edwards at gmail.com>
>> wrote:
>> > The difference is due to
>> > vtkSMRenderViewProxy::CreateDefaultRepresentation
>> > returning either an UnstructuredGridRepresentation for unstructured
>> > data,
>> > UniformGridRepresentation for image data and GeometryRepresentation for
>> > other datasets.  The representations from the plugins only appear with
>> > the
>> > GeometryRepresentation.  Do you know how to fix this?
>> > Thanks,
>> > Paul
>> >
>> > On 15 July 2010 13:58, Paul Edwards <paul.m.edwards at gmail.com> wrote:
>> >>
>> >> By "added specifically for a type" I was referring to how ParaView adds
>> >> a
>> >> volume representation for unstructured dataset (and volume and slice
>> >> for an
>> >> image dataset).  I would like my representation to be available for all
>> >> datasets.
>> >> Regards,
>> >> Paul
>> >>
>> >> On 15 July 2010 13:54, Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>> >> wrote:
>> >>>
>> >>> What do you mean by "added specifically for a type". How are  you
>> >>> doing
>> >>> that?
>> >>>
>> >>> Utkarsh
>> >>>
>> >>> On Thu, Jul 15, 2010 at 6:31 AM, Paul Edwards
>> >>> <paul.m.edwards at gmail.com>
>> >>> wrote:
>> >>> > Hi,
>> >>> > I've added a representation to display feature edges but I can't get
>> >>> > it
>> >>> > to
>> >>> > work for all datasets (it is missing for image and unstructured
>> >>> > data).
>> >>> >  It
>> >>> > seems that when another representation is added specifically for a
>> >>> > type
>> >>> > of
>> >>> > data set (e.g. volume for unstructured, or slice and volume for
>> >>> > image
>> >>> > data)
>> >>> > it loses all the extra representations from plugins - unless I'm
>> >>> > doing
>> >>> > something wrong....  The same happens for the example representation
>> >>> > plugin
>> >>> > that comes with ParaView.  Any advice would be appreciated.
>> >>> > Thanks,
>> >>> > paul
>> >>> > _______________________________________________
>> >>> > 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
>> >>> >
>> >>> > Follow this link to subscribe/unsubscribe:
>> >>> > http://www.paraview.org/mailman/listinfo/paraview
>> >>> >
>> >>> >
>> >>
>> >
>> >
>
>


More information about the ParaView mailing list