<div dir="ltr"><div><div><div><div><div><div><div>Hello<br><br></div>Here is a minimal example for creating a new type of view within a plugin.<br></div>You actually cannot inherit directly from vtkPVView, you must inherit for a base view, which can be :<br></div> - vtkPVRenderView<br></div> - vtkPVContextView</div><div> - vtkPythonView</div><div> - vtkSpreadSheetView</div><div>(<a href="https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkPVView.html">https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkPVView.html</a>)</div><div><br></div>This choice is also visible in the associated xml files where you precise which kind of proxy you want to create.<br><br></div>In the attached example, I demonstrated how to add a clone of the Render View, called Render View 2.</div><div><br></div><div>Hope it helps,</div><div><br></div><div>Best,<br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Mon, Jan 22, 2018 at 7:08 PM, Kolja Petersen <span dir="ltr"><<a href="mailto:petersenkolja@gmail.com" target="_blank">petersenkolja@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you, Mathieu,<div>any update on this?</div><div>All my research seems to point to a few hardcoded views that are accessible. I simply can't find a solution to implement a new view and open it from a plugin.</div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Kolja</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 17, 2018 at 9:55 AM, Mathieu Westphal <span dir="ltr"><<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Kolja<br><br></div>I have a simple view plugin project ongoing that I should be able to scale down for your needs. <br></div><div>I will try to find the time to do it before the end fo the week.<br><br></div>Best, <br></div><div class="gmail_extra"><br clear="all"><div><div class="m_-7533380727799637296m_63782262572172547gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote"><div><div class="m_-7533380727799637296h5">On Tue, Jan 16, 2018 at 8:38 PM, Kolja Petersen <span dir="ltr"><<a href="mailto:petersenkolja@gmail.com" target="_blank">petersenkolja@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-7533380727799637296h5"><div dir="ltr">Is it possible to write a plugin that derives from vtkPVView instead of vtkPVRenderView?<div><br></div><div>I don't know how I can further shorten my question. The answer is quite important to decide whether we can continue our ParaView developments.</div><div>Thank you</div><div>Kolja</div></div><div id="m_-7533380727799637296m_63782262572172547m_2726909845290941008DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tbody><tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" style="width:46px;height:29px" width="46" height="29"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virenfrei. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:#4453ea" target="_blank">www.avast.com</a>            </td>
        </tr>
</tbody></table>
<a href="#m_-7533380727799637296_m_63782262572172547_m_2726909845290941008_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><div class="m_-7533380727799637296m_63782262572172547HOEnZb"><div class="m_-7533380727799637296m_63782262572172547h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 15, 2018 at 7:32 PM, Kolja Petersen <span dir="ltr"><<a href="mailto:petersenkolja@gmail.com" target="_blank">petersenkolja@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>I have stripped down Plugin/MantaView until all compilation problems disappear. What is left, is basically a plugin for a vtkOpenGLRenderer.<br></div>The code, consisting of only two minimal classes, is attached and can be built using:<br></div>unzip snippet-viewplugin.zip && mkdir build && cd build && cmake && make<br></div>(tested with ParaView 5.4.1)<br><br></div>This brings me back to my initial question. I'd like to show a custom view, made of a number of Qt widgets (buttons and text) to show important statistics.<br>In SnippetView.xml, the view is declared as:<br><SnippetViewProxy class="vtkPVSnippetView" ... base_proxygroup="views" base_proxyname="RenderView" ...<br><br></div>How can I replace 'base_proxyname="RenderView"' by some generic view, to be filled with widgets? "View" or "ViewBase" are not recognized as base proxies.</div>Thank you<span class="m_-7533380727799637296m_63782262572172547m_2726909845290941008HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-7533380727799637296m_63782262572172547m_2726909845290941008HOEnZb"><font color="#888888">Kolja<br><br></font></span></div><div class="m_-7533380727799637296m_63782262572172547m_2726909845290941008HOEnZb"><div class="m_-7533380727799637296m_63782262572172547m_2726909845290941008h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 14, 2018 at 5:05 PM, Kolja Petersen <span dir="ltr"><<a href="mailto:petersenkolja@gmail.com" target="_blank">petersenkolja@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear plugin developers,</div><div>I need to implement a custom view to present datasets in a detailed editable format.</div><div><br></div><div>This link says that the plugin tutorial is obsolete for the view part:</div><a href="https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_a_custom_view_.2A_obsolete_.2A" target="_blank">https://www.paraview.org/Wiki/<wbr>ParaView/Plugin_HowTo#Adding_a<wbr>_custom_view_.2A_obsolete_.2A</a><br><div><br></div><div>The Examples/Plugins/GUIView suggested in the link doesn't exist. The Plugins/MantaView is rather complex and doesn't compile due to other bugs as reported elsewhere, so that I can't get a clue how the MantaView plugin is supposed to work.</div><div><br></div><div>Could some kind developer upload a minimal working view plugin example, which needs to display only a simple QButton or any other widget? This will help to allow users build their custom views for ParaView 5.x.y.</div><div>Thank you</div><span class="m_-7533380727799637296m_63782262572172547m_2726909845290941008m_5498936572978895266HOEnZb"><font color="#888888"><div>Kolja</div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://paraview.org/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://paraview.org/mailman/l<wbr>istinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>