<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: 518-881-4909</div>
<br><br><div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<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 class="h5"><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>_______________________________________________<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>