[vtkusers] Source derived from vtkAlgorithm

Berk Geveci berk.geveci at kitware.com
Mon Nov 30 16:44:09 EST 2009


RequestDataObject is where the algorithm creates the (empty) output
data object. RequestData is where it fills it.

-berk

On Mon, Nov 30, 2009 at 4:34 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> 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
> _______________________________________________
> 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