[vtk-developers] Variable output type
Karthik Krishnan
karthik.krishnan at kitware.com
Sat May 29 08:50:49 EDT 2010
On Sat, May 29, 2010 at 1:10 AM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:
> I want to make a filter in which I can specify the output type.
>
You would provide the method :
FillOutputPortInformation( int port, vtkInformation *info )
{
if (.... && port == 0)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(),
"vtkMutableUndirectedGraph");
}
if (....&& port == 0)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkMutableDirectedGraph");
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100529/d79fb8ae/attachment.html>
More information about the vtk-developers
mailing list