First page Back Continue Last page Overview Graphics
KineTcl - Tricks
Instance Construction
- Avoid passing a C pointer (the OpenNI handle) through Tcl.
- Leaf classes (C layer) create OpenNI object, and store the resulting handle in a package-global, per-interp data structure.
- Superclasses retrieve and use the handle instead of creating OpenNI objects.
- Tcl layer (Base class) clears the communication storage.
- After mixing the capability classes in.