[vtkusers] Source derived from vtkAlgorithm

David Doria daviddoria+vtk at gmail.com
Mon Nov 30 16:34:30 EST 2009


On Mon, Nov 30, 2009 at 9:24 AM, Jeff Baumes <jeff.baumes at kitware.com> wrote:
>> I spent quite a while paring some of those down and combining them trying to
>> get the desired functionality. However, I'm still having some issues. The
>> pipeline code gets pretty complex in a big hurry.
>
> You may want to look at this special-purpose data object. Note that
> your new type must inherit from vtkDataObject or subclass.
>
> Rendering/vtkLabelHierarchy (new data object subclass)
> Rendering/vtkLabelHierarchyAlgorithm (new superclass for algorithms)
> Rendering/vtkPointSetToLabelHierarchy (algorithm that produces
> vtkLabelHierarchy)
>
> Jeff
>

Great - I got them working:
http://www.vtk.org/Wiki/VTK_Examples_vtkAlgorithm_Source
http://www.vtk.org/Wiki/VTK_Examples_vtkAlgorithm_Filter

What is the difference between RequestDataObject() and RequestData()?

Thanks,

David



More information about the vtkusers mailing list