<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1457539889085_3828"><span id="yui_3_16_0_1_1457539889085_3831">I apologize for bringing this subject up again, but I've been struggling for a while (intermittently) to patch VTK sources by myself with no success.<br></span></div><div id="yui_3_16_0_1_1457539889085_4203" dir="ltr"><br><span id="yui_3_16_0_1_1457539889085_3831"></span></div><div id="yui_3_16_0_1_1457539889085_4423" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831">I have a home-made renderer that inherits from vtkWin32OpenGLRenderWindow and provides methods to draw and handle robotic elements and polygon meshes. Sometimes, such polygons are colored and the final user needs a legend in order to understand what's going on.</span></div><div id="yui_3_16_0_1_1457539889085_4428" dir="ltr"><br><span id="yui_3_16_0_1_1457539889085_3831"></span></div><div id="yui_3_16_0_1_1457539889085_4433" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831">The problem I have is that the legend does not show up. Even a copy-paste of your example does not work (as you can see in the file attached to the original message). After much debugging, I found out that the following line of vtkLegendBoxActor::RenderOpaqueGeometry returns [0,0] into tempi array.<br></span></div><div id="yui_3_16_0_1_1457539889085_5017" dir="ltr"><br><span id="yui_3_16_0_1_1457539889085_3831"></span></div><div id="yui_3_16_0_1_1457539889085_5018" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831">this->TextMapper[maxTextMapper]->GetSize(viewport,tempi); // declaration: int tempi[2]<br></span></div><div id="yui_3_16_0_1_1457539889085_4481" dir="ltr"><br><span id="yui_3_16_0_1_1457539889085_3831"></span></div><div id="yui_3_16_0_1_1457539889085_5355" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831">Even if I simulate valid values in tempi, it does not work : the size of the legend box as well as the positions of the lines of text (variables posX and posY) seem correct but no text is drawn. So, I'm wondering if the problem can come from vtkActor2D when it renders its text at the very end of the same method :</span></div><div id="yui_3_16_0_1_1457539889085_5803" dir="ltr"><br><span id="yui_3_16_0_1_1457539889085_3831"></span></div><div id="yui_3_16_0_1_1457539889085_5849" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831"> for (i=0; i<this->NumberOfEntries; i++)<br> {</span></div><div id="yui_3_16_0_1_1457539889085_5852" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831"> //...<br></span></div><div id="yui_3_16_0_1_1457539889085_5850" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831"> renderedSomething += this->TextActor[i]->RenderOpaqueGeometry(viewport); // <= this line<br> }<br> }<br><br></span></div><div id="yui_3_16_0_1_1457539889085_5769" dir="ltr">Thank you.<br><span id="yui_3_16_0_1_1457539889085_3831"></span></div><div id="yui_3_16_0_1_1457539889085_4575" dir="ltr"><span id="yui_3_16_0_1_1457539889085_3831"></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Le Vendredi 22 janvier 2016 15h57, Wilmondes Manzi <munniz@yahoo.com> a écrit :<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv3303096571"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv3303096571yui_3_16_0_1_1453474337867_2750">Hello,<br></div><div id="yiv3303096571yui_3_16_0_1_1453474337867_2583"><br></div><div id="yiv3303096571yui_3_16_0_1_1453474337867_2484">I'm wondering if anyone has experienced any issues with vtkLegendBoxActor ? After upgrading from VTK 5.10 to 6.3 and from 32 to 64 bits (under Win7 SP1 and GCC), the legend does not show up anymore. To test it, I used a simple copy-paste of the following example :</div><br class="yiv3303096571" id="yiv3303096571yui_3_16_0_1_1453474337867_2462"><div id="yiv3303096571yui_3_16_0_1_1453474337867_2690" dir="ltr"><a rel="nofollow" id="yiv3303096571yui_3_16_0_1_1453474337867_2729" target="_blank" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Legend">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Legend</a><br></div><br class="yiv3303096571" id="yiv3303096571yui_3_16_0_1_1453474337867_2466"><div id="yiv3303096571yui_3_16_0_1_1453474337867_2911">The result (the sphere is shown but the legend is empty) is attached to this message. Any clues ?<br></div><div id="yiv3303096571yui_3_16_0_1_1453474337867_2912"><br></div><div id="yiv3303096571yui_3_16_0_1_1453474337867_2913">Thank you.<br></div><br class="yiv3303096571" id="yiv3303096571yui_3_16_0_1_1453474337867_2470"><div id="yiv3303096571yui_3_16_0_1_1453474337867_2422"><br></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>