Create a vtkVariant of the specified type, where the type is in the following format: 'int', 'unsigned int', etc. for numeric types, and 'string' for strings. You can also use an integer VTK type constant for the type.
(v, t)
| 65 | |
| 66 | |
| 67 | def vtkVariantCreate(v, t): |
| 68 | """ |
| 69 | Create a vtkVariant of the specified type, where the type is in the |
| 70 | following format: 'int', 'unsigned int', etc. for numeric types, |
| 71 | and 'string' for strings. You can also use an |
| 72 | integer VTK type constant for the type. |
| 73 | """ |
| 74 | if not issubclass(type(t), int): |
| 75 | t = _variant_type_map[t] |
| 76 | |
| 77 | return vtkCommonCore.vtkVariant(v, t) |
| 78 | |
| 79 | |
| 80 | def vtkVariantExtract(v, t=None): |
nothing calls this directly
no test coverage detected