<div dir="ltr">Hi Dave,<div><br></div><div>I tried the example with 6.1 and master on OSX 10.8, and both seem to work for me. Haven't tried 6.0 though.</div><div><br></div><div>HTH,</div><div>Yumin</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 8:40 AM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In this example: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ImageClip" target="_blank">http://www.vtk.org/Wiki/VTK/<u></u>Examples/Cxx/Interaction/<u></u>ImageClip</a><br>
<br>
This line of code apparently works:<br>
<br>
static_cast<<u></u>vtkBorderRepresentation*><br>
(borderWidget-><u></u>GetRepresentation())-><u></u>GetBorderProperty()->SetColor(<u></u>0,1,0)<br>
;<br>
<br>
and makes the border widget green.<br>
<br>
If I add the exact same line of code to this example: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/BorderWidget" target="_blank">http://www.vtk.org/Wiki/VTK/<u></u>Examples/Cxx/Widgets/<u></u>BorderWidget</a><br>
<br>
it has no apparent effect, and the border widget stubbornly remains exactly white.<br>
<br>
Why???<br>
<br>
I stepped through the code in the debugger, and see that vtkProperty2D::Render gets called, and it is a no-op... expecting to have a vtkOpenGLProperty2D override, I presume. But there isn't one.<br>
<br>
So I understand why it *doesn't* work in the border widget example. So why does it work in the image clip example??? I don't get it...<br>
<br>
This is all with VTK somewhere between 6.0 and 6.1 (I can be more exact if necessary, or try 6.1 if somebody claims it's fixed in there), using ninja and the VS 2012 compiler on Windows.<br>
<br>
<br>
Thanks,<br>
David C.<br>
<br>
______________________________<u></u>_________________<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/<u></u>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_<u></u>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/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br></div>