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?<br>
<br>Thanks,<br>Paul<br><br><br><div class="gmail_quote">2009/9/8 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You will have to create a new representation as well that places the<br>
transform filter in the representation pipeline. Alternatively, you<br>
can create a new representation strategy. The representations always<br>
ask the view for a strategy. A strategy is a pipeline used to deliver<br>
the data to the rendering nodes. However you can very easily create<br>
new sub-strategies for the ones returned by the standard render-view<br>
hierarchy and simply insert the transform filter at the start of the<br>
strategy pipeline.<br>
<br>
Ofcourse, though I use words like "simple", it's not that trivial :).<br>
Creating new render-view based views/representations that work in all<br>
configurations (client-server etc.) can be a daunting task. Look at<br>
how 2Drenderview or comparative renderviews are created. They may<br>
serve as a good reference.<br>
<br>
Utkarsh<br>
<div><div></div><div class="h5"><br>
On Tue, Sep 8, 2009 at 11:24 AM, Paul Edwards<<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm trying to create a new view in ParaView and I would like to transform<br>
> the data before it is drawn (e.g. from cartesian to cylindrical<br>
> co-ordinates) and also apply a filter to handle cells that cross the 2PI and<br>
> 0 boundary. My first attempt has been to subclass pqRenderView but I don't<br>
> know where I can put the transform and filter code that will be executed for<br>
> everything that is displayed.<br>
><br>
> Any help would be appreciated.<br>
> Thanks,<br>
> Paul<br>
><br>
><br>
</div></div>> _______________________________________________<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>
</blockquote></div><br>