<div dir="ltr">Great!<div>Thank you David for your help.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-18 15:47 GMT+01:00 David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If the test doesn't do an image comparison, tell cmake about it like so:<div><br><div><span style="background-color:transparent;font-family:Cambria;font-size:16px;white-space:pre-wrap;line-height:1">vtk_add_test_cxx(name.cxx [NO_DATA] [NO_VALID] [NO_OUTPUT]) </span></div>


<div><span style="background-color:transparent;font-family:Cambria;font-size:16px;line-height:1;text-indent:36pt;white-space:pre-wrap">NO_DATA indicates that this test doesn't require any input data files</span></div>


<div><span style="background-color:transparent;font-family:Cambria;font-size:16px;line-height:1;text-indent:36pt;white-space:pre-wrap">--> NO_VALID indicates that this test doesn't compare results against baseline images</span></div>


<div><div><span><span style="vertical-align:baseline;font-size:16px;white-space:pre-wrap;background-color:transparent;font-family:Cambria">NO_OUTPUT indicates that the test doesn't produce any output files</span></span><br>



</div><div class="gmail_extra"><br></div><div class="gmail_extra">(for more details see the vtk software process document)</div><div class="gmail_extra"><br></div><div class="gmail_extra">hth</div><div class="gmail_extra">
<div class="">

<br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div>



<br><br></div><div><div class="h5"><div class="gmail_quote">On Tue, Mar 18, 2014 at 10:35 AM, Xabi Riobe <span dir="ltr"><<a href="mailto:xabivtk@gmail.com" target="_blank">xabivtk@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>Thanks David!</div><div><br></div>Currently my test is only about rendering speed acceleration, and not for the resulting image.<div>So I do not need vtkRegressionTestImage. But after reading your link, I assume I <b><u>have to</u></b> generate one?</div>




<div><br></div><div>I will try to add it, but by curiosity is there another command than vtk_add_test_cxx to put in CMakeLists.txt to get rid of the regression test, or every OpenGL test must come with an image?</div></div>




<div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-18 14:11 GMT+01:00 David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span>:<div>



<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This warning comes from the new way (starting in 6.1) in which regression tests get their data.<div><br>




</div><div>Move the regression test baseline image into:</div><div><span style="font-family:arial,sans-serif;font-size:13px">C:/Dev/vtk-gerrit/VTK/</span><span style="font-family:arial,sans-serif;font-size:13px">Rendering/OpenGL/Testing/Data/</span><span style="font-family:arial,sans-serif;font-size:13px">Baseline/</span><span style="font-family:arial,sans-serif;font-size:13px">TestVBOandVertexArray.png</span><br>







</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Run cmake, that will replace the above file with:</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">C:/Dev/vtk-gerrit/VTK/</span><span style="font-family:arial,sans-serif;font-size:13px">Rendering/OpenGL/Testing/Data/</span><span style="font-family:arial,sans-serif;font-size:13px">Baseline/</span><span style="font-family:arial,sans-serif;font-size:13px">TestVBOandVertexArray.png.md5</span><span style="font-family:arial,sans-serif;font-size:13px"><br>







</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">And move the original into the bowels of git for safe keeping.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>






<div><span style="font-family:arial,sans-serif;font-size:13px">Now when you push to gerrit the regression test image and the corresponding source code get committed together.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">See </span><a href="http://www.vtk.org/Wiki/VTK/Git/Develop/Data" target="_blank">http://www.vtk.org/Wiki/VTK/Git/Develop/Data</a></div>







<div>for more details.</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>






Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div>
<br><br><div class="gmail_quote"><div><div>On Thu, Mar 13, 2014 at 10:45 AM, Xabi Riobe <span dir="ltr"><<a href="mailto:xabivtk@gmail.com" target="_blank">xabivtk@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>

<div dir="ltr">As a side question,<div>I got this message during the Configure step in CMake 2.8.12.2 when adding my test in Rendering\OpenGL\Testing\Cxx:</div><div><div><p style="margin:0px"><br></p><p style="margin:0px">







Data file referenced by argument</p>
<p style="margin:0px">  DATA{C:/Dev/vtk-gerrit/VTK/Rendering/OpenGL/Testing/Data/Baseline/TestVBOandVertexArray.png,:}</p>
<p style="margin:0px">corresponds to source tree path</p>
<p style="margin:0px">  Rendering/OpenGL/Testing/Data/Baseline/TestVBOandVertexArray.png</p>
<p style="margin:0px">that does not exist as a file (with or without an extension)!</p><p style="margin:0px"><br></p><p style="margin:0px">What produces it?</p></div><div>I added this line in the CMakeLists.txt file:</div>







</div><div><br></div><div><div># For tests that actually use a vtkRenderWindow</div><div>vtk_add_test_cxx(</div></div><div>...</div><div>TestVBOandVertexArray.cxx          <=== line added<br></div><div>)</div><div><br>







</div><div>and the test is correctly inserted to vtkRenderingOpenGLCxxTests.exe</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-13 15:31 GMT+01:00 Xabi Riobe <span dir="ltr"><<a href="mailto:xabivtk@gmail.com" target="_blank">xabivtk@gmail.com</a>></span>:<div>






<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I have a set of painter classes using VBO (adapted from VTKEdge) and VertexArrays that i'm willing to share via gerrit, but there is an issue i would like to resolve before, in order to add the test class.</div>










<div><br></div><div>Currently i use them with vtk 5.10.1, and i have a rendering factory to instantiate them instead of vtkPolygonsPainter, vtkLinesPainter and vtkTStripsPainter.</div><div><br></div><div>but with vtk 6.1, the factory mechanism has changed and i can not manage to make it work properly. So i first try to localy test my classes with the new version by incorporating them directly in vtkRenderingOpenGLObjectFactory, adding these lines in Rendering\OpenGL\CMakeLists.txt :</div>








<div><br></div><div>list(APPEND vtk_module_overrides "vtkPolygonsPainter")</div><div>set(vtk_module_vtkPolygonsPainter_override "vtkOpenGLVertexArrayPolygonsPainter")</div><div><br></div><div>Runing my test in debug, i can see that the class is added in the factory, but when the vtkChooserPainter creates the vtkPolygonsPainter, my own class is not instantiated, nor it is if i directly call vtkPolygonsPainter::New() in the test.</div>








<div><br></div><div>Is there something else i am missing to use my class in a factory with vtk 6.1?</div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div>extract from my own factory code:</div><div><br>







</div>
<div><div>class vtkRenderingVertexArrayFactory</div><div>   : public vtkObjectFactory</div><div>{</div><div>public:</div><div>   static vtkRenderingVertexArrayFactory* New();</div><div>   vtkTypeMacro(vtkRenderingVertexArrayFactory, vtkObjectFactory);</div>








<div>   static void RegisterFactory();</div><div>protected:</div><div>   vtkRenderingVertexArrayFactory();</div><div>private:</div><div>   vtkRenderingVertexArrayFactory(const vtkRenderingVertexArrayFactory&); // Not implemented.</div>








<div>   void operator=(const vtkRenderingVertexArrayFactory&); // Not implemented.</div><div>};</div><div><br></div><div>vtkStandardNewMacro(vtkRenderingVertexArrayFactory);</div><div><br></div><div>VTK_FACTORY_INTERFACE_IMPLEMENT(vtkRenderingVertexArrayFactory);</div>








<div><br></div><div>VTK_CREATE_CREATE_FUNCTION(vtkOpenGLVertexArrayPolygonsPainter);</div><div><br></div><div>vtkRenderingVertexArrayFactory::vtkRenderingVertexArrayFactory()</div><div>{</div><div>   this->RegisterOverride("vtkPolygonsPainter",</div>








<div>                          "vtkOpenGLVertexArrayPolygonsPainter",</div><div>                          "Override for vtkRenderingOpenGL module",</div><div>                          1,</div><div>                          vtkObjectFactoryCreatevtkOpenGLVertexArrayPolygonsPainter);</div>








<div>}</div></div><div><br></div>

</div>
</blockquote></div></div></div><br></div>
<br></div></div>_______________________________________________<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div></div></div></div></div></div>
</blockquote></div><br></div>