<div dir="ltr">May be vtkRectangularButtonSource could do what you need.<br><pre class="de1"><span class="co2"><br>Jothy<br></span></pre><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 8:15 AM, Gishara Indeewarie <span dir="ltr">&lt;<a href="mailto:gish.777@gmail.com">gish.777@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div><br></div><div>Could someone give me an example for adding a menu item in vtk in c++?</div><div>
I want to allow the user to change the data in vtk render by pressing a button.</div><div>I thought of doing this by adding right click menu in vtk.</div>
<div>Thanks.</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>