[Paraview] Modify an existing filter

Lorne Arnold lorne87 at uw.edu
Wed May 15 14:53:25 EDT 2013


Thanks for the information. I'm starting to work on understanding the VTK
API and going through some examples of programmable filters.

I'll take a look at the tube filter and post an update when/if I get things
figured out.

Thanks again,

Lorne


On Wed, May 15, 2013 at 8:52 AM, David E DeMarle
<dave.demarle at kitware.com>wrote:

> You can do just about anything you can do with a c++ filter (make internal
> filters, directly access input and output data sets) inside a programmable
> filter so a plugin shouldn't be a requirement to do what you want to do. In
> either case you will need to be familiar with the VTK API, python usually
> just makes the development task a bit quicker.
>
> I would recommend you start by reimplementing what the tube filter does in
> its requestdata method in python and then modify to suit your purposes.
>
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
> On Tue, May 14, 2013 at 5:57 PM, Lorne Arnold <lorne87 at uw.edu> wrote:
>
>> I'm new to ParaView and I'm trying to use it to visualize 2D discrete
>> element data.
>>
>> I'm running into situations where I want more of the glyph properties to
>> be dependent on inputs (a line glyph whose length, *and* width are
>> scaled by different inputs, e.g.). So far I haven't been able to find
>> filters to accomplish this. 'Tube' is the closest thing I've found, but it
>> only renders in 3D and looks out of place with my 2D data.
>>
>> Is it possible to modify a filter with a programmable filter? Would I
>> need a plugin to do this kind of thing?
>>
>> Attached is an example of the kind of diagram I'm trying to make. I made
>> this one using matplotlib.
>>
>> Thanks for your help,
>>
>> Lorne
>>
>> _______________________________________________
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130515/3a03b8bb/attachment.htm>


More information about the ParaView mailing list