![]() |
OpenNI 1.5.2
|
If our node implementation requires any inputs (it would normally need), we can pass them to this class in its constructor or in an initialization method. Later on, we'll pass those inputs to instances of this class. This will be done from the node exporter (see Creating the Node).
Note that if the inputs required are other nodes (for example, if our hands generator requires an image generator), then those nodes should be recevied as API objects, and not as module objects (i.e. we should use xn::ImageGenerator and not xn::ModuleImageGenerator).
In our example:
class MyHandGenerator: public virtual xn::ModuleHandsGenerator { public: MyHandsGenerator(xn::ImageGenerator imageGen); ... };