@wascott , is that actually covered by !4719 (merged) ?
vtkImplicitArray
s are not wrapped in python.
I'm going to add some support, so here is an issue to discuss on it before.
The vtkImplicitArray framework allows to create some vtkDataArray
relying on a Backend, which is given as template class for the implicit array. This backend is also templated on data type.
Usually, it looks like:
vtkImplicitArray<BackendType<DataType>>
Then we have some predefined backend, so we have some dedicated implicit array classes, eg
vtkConstantArray<DataType>
vtkDoubleArray
way: create non-templated subclassesCreate an intermediate, non templated class that can be (automatically) wrapped.
class vtkConstantDoubleArray : vtkConstantArray<double>
This leads to a bunch of new classes, vtkBackendTypeArray
, to fill the whole matrix of [Backend * type]
we would like to support.
vtkSOADataArray
way: modify wrapping codeThe wrapping code should be updated. Also some work needs to be done to mark implicit arrays as wrappable in cmakelists.
This way, concrete class is instantiated through some type dictionary, as described here: https://docs.vtk.org/en/latest/advanced/PythonWrappers.html#class-templates
c = vtkSOADataArrayTemplate['float64']
This looks less userfriendly than previous method.
I'm in favor of the first method, i.e. create subclasses, to be more consistent with classical vtkDataArrays. Inputs are welcome!
@dgobbi @ben.boeckel @christos.tsolakis @jaswant.panchumarti @mwestphal
Do: test
will need to add an include. I will let as is.
Nicolas Vuaille (68e6d226) at 28 Mar 08:57
Prototype implicit array python wrapping
Nicolas Vuaille (8abf05a8) at 28 Mar 08:55
Prototype implicit array python wrapping
Do: reformat
I think we cannot since this can be set via SetTextProperty
. Here we just create one by default.
Do: test
Nicolas Vuaille (d402221f) at 28 Mar 08:33
Merge topic 'gltf-texture-validation-issue'
... and 7 more commits
Nicolas Vuaille (ecceb1e7) at 28 Mar 08:33
fixup! Tests use new categories in filter menu
Do: reformat
yes but non standard in VTK. Will change
Nicolas Vuaille (a2bd19ab) at 28 Mar 05:47
VTK Nightly Date Stamp