VTK
9.4.20241123
|
Converts a vtkVariant to some other type. More...
#include <vtkVariantCast.h>
Converts a vtkVariant to some other type.
Wherever possible, implicit conversions are performed, so this method can be used to convert from nearly any type to a string, or from a string to nearly any type. Note that some conversions may fail at runtime, such as a conversion from the string "abc" to a numeric type.
The optional 'valid' flag can be used by callers to verify whether conversion succeeded.