I am trying to make a Source that produces a custom object. That is, if I create an object vtkTest and I want to make a vtkTestReader (or vtkTestSource) so I can do:<br><br>vtkTestSource* Source = vtkTestSource::New();<br>
Source->Update();<br>vtkTest* Test = Source->GetOutput();<br><br>To do this, my understanding is that you have to derive directly from vtkAlgorithm.<br><br>I have tried to do this here:<br><a href="http://www.vtk.org/Wiki/VTK_Examples_vtkAlgorithm_Source" target="_blank">http://www.vtk.org/Wiki/VTK_Examples_vtkAlgorithm_Source</a><br>
<br>but DATA_TYPE_NAME and DATA_OBJECT that I saw in vtkPolyDataAlgorithm and similar seem to be undefined. <br><br>Can anyone help straighten out this example? This seems like a reasonable thing for someone to want to do and it seems pretty complicated. Providing a shell like this I believe will be very helpful.<br>
<br clear="all">Thanks,<br><br>David<br>