Utility functions to mimic the template support functions for vtkVariant
paraview.variant.
vtkVariantCast
(v, t)[source]¶Cast the vtkVariant to the specified value type, where the type is in the following format: ‘int’, ‘unsigned int’, etc. for numeric types, and ‘string’ or ‘unicode string’ for strings. You can also use an integer VTK type constant for the type.
paraview.variant.
vtkVariantCreate
(v, t)[source]¶Create a vtkVariant of the specified type, where the type is in the following format: ‘int’, ‘unsigned int’, etc. for numeric types, and ‘string’ or ‘unicode string’ for strings. You can also use an integer VTK type constant for the type.
paraview.variant.
vtkVariantEqual
(s1, s2)[source]¶Return true if s1 == s2. This isn’t very useful in Python.
paraview.variant.
vtkVariantExtract
(v, t=None)[source]¶Extract the specified value type from the vtkVariant, where the type is in the following format: ‘int’, ‘unsigned int’, etc. for numeric types, and ‘string’ or ‘unicode string’ for strings. You can also use an integer VTK type constant for the type. Set the type to ‘None” to extract the value in its native type.
paraview.variant.
vtkVariantLessThan
(s1, s2)[source]¶Return true if s1 < s2. This isn’t very useful in Python.