VTK
9.1.0
|
Performs an explicit conversion from a vtkVariant to the type that it contains. More...
#include <vtkVariantExtract.h>
Performs an explicit conversion from a vtkVariant to the type that it contains.
Implicit conversions are not performed, so casting a vtkVariant containing one type (e.g. double) to a different type (e.g. string) will not convert between types.
Callers should use the 'valid' flag to verify whether the extraction succeeded.