[Paraview] HOWto create / extend sources?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Sep 30 10:53:30 EDT 2014


Glad to help :).

Utkarsh

On Mon, Sep 29, 2014 at 10:23 PM, B.W.H. van Beest <bwvb at xs4all.nl> wrote:
> Utkarsh,
>
>
> Thanks for the pointers. I'll follow-up according your suggestions.
>
> I'm only recently doing stuff with ParaView (i.e. plugin-development).
> Please accept my compliments for the way you answer questions in this
> forum. The few answers you gave me + link to appropriate documentation
> have been very iseful!
>
> Regards,
> Bertwim
>
>
> On 09/29/2014 02:46 PM, Utkarsh Ayachit wrote:
>>> a) How to create a new source ("MyNewSource")
>> You define the 'proxy' under the "sources" group, rather than filters.
>> It will automatically show up in the Menu. Look at sources.xml under
>> [1] to see other source proxy definitions.
>>
>>> b) How can I extend an existing source (box, sphere, etc.) with new
>>> properties and methods ("MyBox, "MySphere").
>> Similar to the filters, you basically need to write a new VTK
>> algorithm with these new methods. You can subclass the existing VTK
>> source. Looking at sources.xml, you can find out which proxy using
>> which VTK algorithm, e.g. "SphereSource" (labelled as "Sphere") uses
>> "vtkSphereSource". After adding the methods on the VTK algorithm, next
>> part is exposing those methods as properties using the XML.
>>
>> [1] https://github.com/Kitware/ParaView/tree/master/ParaViewCore/ServerManager/SMApplication/Resources
>>
>>> Any help or suggestions are greatly appreciated.
>>>
>>> Kind Regards,
>>> Bertwim
>>> _______________________________________________
>>> 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://public.kitware.com/mailman/listinfo/paraview
>


More information about the ParaView mailing list