[Paraview] New view

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Sep 10 10:34:10 EDT 2009


I'd recommend inserting the transform filter before the mapper while
creating the pipeline in the representation, rather than changing the
mapper. Alternatively, you'll have to override GetBounds() as well to
report correct bounds.

Utkarsh

On Thu, Sep 10, 2009 at 10:30 AM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
> I've started by trying to create a new representation.  I thought I would be
> able to inherit from vtkPainterPolyDataMapper and just implement my own
> SetInput method but it never gets called.  My new representation is being
> initialised and if I implement RenderPiece it gets used.  The problem with
> doing the transform in RenderPiece is that it changes the bounds have
> changed and so the view is not right.  Am I doing the right thing here or
> should I just inherit from vtkMapper and implement everything?
>
> Thanks,
> Paul
>
>
> 2009/9/8 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>>
>> You will have to create a new representation as well that places the
>> transform filter in the representation pipeline. Alternatively, you
>> can create a new representation strategy. The representations always
>> ask the view for a strategy. A strategy is a pipeline used to deliver
>> the data to the rendering nodes. However you can very easily create
>> new sub-strategies for the ones returned by the standard render-view
>> hierarchy and simply insert the transform filter at the start of the
>> strategy pipeline.
>>
>> Ofcourse, though I use words like "simple", it's not that trivial :).
>> Creating new render-view based views/representations that work in all
>> configurations (client-server etc.) can be a daunting task. Look at
>> how 2Drenderview or comparative renderviews are created. They may
>> serve as a good reference.
>>
>> Utkarsh
>>
>> On Tue, Sep 8, 2009 at 11:24 AM, Paul Edwards<paul.m.edwards at gmail.com>
>> wrote:
>> > Hi,
>> >
>> > I'm trying to create a new view in ParaView and I would like to
>> > transform
>> > the data before it is drawn (e.g. from cartesian to cylindrical
>> > co-ordinates) and also apply a filter to handle cells that cross the 2PI
>> > and
>> > 0 boundary.  My first attempt has been to subclass pqRenderView but I
>> > don't
>> > know where I can put the transform and filter code that will be executed
>> > for
>> > everything that is displayed.
>> >
>> > Any help 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