<div dir="ltr">This would be a potentially very useful addition, as long as it was done in a way that followed the correct VTK patterns. You will probably create a custom vtkExecutive subclass (probably a subclass of vtkCompositeDataPipeline) to do this. We have an external module functionality that can be used to host this externally but optionally pull it into a VTK build. Bill Lorensen is the expert there and can provide some guidance I hope.<div><br></div><div>C++11 should not be an issue. VTK will require C++11 in the next version coming in the beginning of 2018. It is currently possible to enable C++11 enable support and everything compiles & works.</div><div><br></div><div>Best,</div><div>-berk</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 29, 2016 at 2:09 PM, Bc. Lukas HRUDA <span dir="ltr"><<a href="mailto:hrudalu@students.zcu.cz" target="_blank">hrudalu@students.zcu.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
We are aware that many VTK filtres are implemented so that when input values of two successive calls are the same, the filter performs the calculation only once (during the first call). However, what if the repetitive pattern is a more complex? For example, the pattern could be 1, 1, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, in which case you probably agree with me that it would be very benefitial to calculate the output for input 1 once and for input 2 once.<br>
Of course in general we don't know the pattern in advance and the set of possible inputs can be very large.<br>
<br>
I am a student at the University of West Bohemia, Faculty of Applied Science, Department of Computer Science, Czech Republic.<br>
As a part of my bachelor thesis I have designed and implemented a small library that can be used for caching results of time consuming calculations in such cases.<br>
The library was integrated and tested in a visualisation application for medical data which is based on VTK.<br>
The library aims to reduce number of repeated calculations that take noticeable time (what is considered noticeable may differ from case to case, in some cases it can be 1 second, in other cases it can be 30 milliseconds).<br>
The library's system works in a way that when the programmer runs any calculation through it, it remembers the input and output and if a calculation with the same input is run through it againt later, it does not start the calculation and returns the remembered result instead.<br>
The library does this whole process itself without programmers interaction, it just needs to be properly initialized.<br>
It is very generic, so it can be used for caching almost any type of data.<br>
<br>
Me and the supervisor of my bachelor thesis thought that this library could be useful for you and we decided that we would like to integrate it into the VTK.<br>
It can be used to significantly speed up visualisations where any time consuming calculation may occur more than once.<br>
<br>
Would you be interested to have our library integrated in VTK, perhaps as an optional modul, so that VTK programmers could use it to speed up their filters or whole applications? Please note that the library uses variadic templates so it needs C++11 to compile.<br>
If you have any questions about the library I will be glad to answer them.<br>
<br>
Best regards<br>
Lukas Hruda<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
</blockquote></div><br></div>