[vtkusers] how to query vtkInformation

Florian Drescher fdrescher at gmail.com
Fri Dec 9 14:59:21 EST 2005


> printInfo for vtkConeSource
>   input ports:
>     no input ports
>   output ports:
>     port 0 :
>       Debug: Off
>       Modified Time: 317
>       Reference Count: 1
>       Registered Events: (none)
>       DATA_TYPE_NAME: vtkPolyData
>       PORT_REQUIREMENTS_FILLED: 1
>
> Now i'm intersted in finding out how to get the DATA_TYPE_NAME filed
> directly by an apprpriate method call to vtkInformation.

Try the functions
virtual const char *GetClassName()
virtual int IsA (const char *type)
int IsTypeOf (const char *type)



More information about the vtkusers mailing list