[vtkusers] Source derived from vtkAlgorithm

Bill Lorensen bill.lorensen at gmail.com
Sat Nov 28 13:37:36 EST 2009


David,

 find . -name \*.h -exec grep vtkAlgorithm {} /dev/null \; | grep public

shows 40 classes that derive from vtkAlgorithm. Two of these are
source's. Maybe one of them will help.

Bill

On Sat, Nov 28, 2009 at 12:01 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> 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:
>
> vtkTestSource* Source = vtkTestSource::New();
> Source->Update();
> vtkTest* Test = Source->GetOutput();
>
> To do this, my understanding is that you have to derive directly from
> vtkAlgorithm.
>
> I have tried to do this here:
> http://www.vtk.org/Wiki/VTK_Examples_vtkAlgorithm_Source
>
> but DATA_TYPE_NAME and DATA_OBJECT that I saw in vtkPolyDataAlgorithm and
> similar seem to be undefined.
>
> 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.
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list