<div dir="ltr">Hi,<div><br></div><div>I am trying to implement a sink algorithm (writer) to output point clouds in my custom format. The points may have multiple data</div><div>arrays, and the writer should provide the user with an option to select which of these arrays are to be output.</div><div><br></div><div>Unfortunately, I am not able to find any wiki pages or articles that explain how to implement such a writer. Also, I do not find any</div><div>existing writers with this functionality. The most similar things I found are:</div><div><br></div><div>1) <a href="http://www.vtk.org/doc/nightly/html/classvtkAMRBaseParticlesReader.html" target="_blank">AMR base particles reader</a>. It provides a facility to select which data arrays are to be read from a file. Basically, when the user</div><div>sets the filename, the reader loads the meta-information about available arrays from the file, and then these are displayed in</div><div>ParaView properties panel. The user can tick the arrays he wants and press "Apply" to read. I can not figure out how to apply this</div><div>in my writer, because the only extension point for writers is the WriteData() function. It is called after the user has pressed the</div><div>"Save" button, which is too late. In fact, I want to "inject" some code between the moment the user chose the output filename (and</div><div>hence the writer to use), and the moment a dialog window with the properties of the writer is shown.</div><div><br></div><div>2) <a href="http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list_with_values_from_input_arrays" target="_blank">Wiki page on writing readers</a>. There is an example how make a drop-down list to select which input array to process. Perhaps</div><div>I could add this to the writer, however it does seem to support only a single array choice, whereas I need multiple.</div><div><br></div><div>I would be very grateful for suggestions on how to implement the functionality I need. Examples of existing readers would be</div><div>great. Or if there is definitely no "official" clean way to implement this, please also let me know.</div><div><br></div><div>Cheers,<br></div><div>Sergey</div></div>