This is the first time I've looked at the implementation of this class, so I may be missing something.<br><br>Generally methods that retrieve "geometric" or representational information (heading, tilt, distance) belong in the representation. Event stuff belongs in the widget. However, the boundary between the widget and representation can be confusing, hence the boundary is blurry. At a minimum the code should be written so that a default representation is created if not present, and we can consider these "convenience" methods and leave them in the widget. A more drastic measure would be to remove the methods and make people go to the representation for the information.<br>
<br>W<br><br><div class="gmail_quote">2008/6/20 David Cole <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
A widget requires an attached widget representation to work properly for all of its methods...<br><br>Is this a bug? Or an intended "it's not gonna work unless there's a representation connected to it..."?<br>

<br>Any Widgets folks want to chime in on whether this should be expected to work?<br><br><br>Thx,<br><font color="#888888">David</font><div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Thu, Jun 19, 2008 at 4:39 PM, Prabhu Ramachandran <<a href="mailto:prabhu@aero.iitb.ac.in" target="_blank">prabhu@aero.iitb.ac.in</a>> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
There is a bug with vtkCompassWidget.  It is trivial to reproduce.  Here is a Python example:<br>
<br>
 import vtk<br>
 w = vtk.vtkCompassWidget()<br>
 print w.GetDistance()<br>
<br>
I get a bus error on my mac and others seem to get segmentation violations.<br>
<br>
Thanks.<br>
<br>
cheers,<br><font color="#888888">
-- <br>
Prabhu Ramachandran                 <a href="http://www.aero.iitb.ac.in/%7Eprabhu" target="_blank">http://www.aero.iitb.ac.in/~prabhu</a><br>
_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
</font></blockquote></div><br>
</div></div><br>_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>
<a href="http://www.kitware.com">http://www.kitware.com</a><br>518-371-3971 (phone and fax)