File: Modules.CreatingNode.Inputs.txt

package info (click to toggle)
openni 1.5.4.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 44,844 kB
  • sloc: cpp: 116,706; ansic: 58,777; sh: 10,287; cs: 7,698; java: 7,402; python: 1,541; makefile: 492; xml: 167
file content (24 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
@page modules_node_inputs Obtain Inputs

If the new node implementation requires any inputs - and it normally 
<i>would</i> need inputs - you can pass them to this class in its 
constructor or in an initialization method. Later on, you will pass 
these inputs to instances of this class. This will be done from the node 
exporter (see @ref modules_exporter_create). 

Note that if the inputs required are other nodes (for example, if your 
hand generator node requires an image generator), then those nodes must 
be received as API objects, and not as module objects (i.e., you must 
use @ref xn::ImageGenerator and not @ref xn::ModuleImageGenerator). 

In our example:
@code
class MyHandGenerator: public virtual xn::ModuleHandsGenerator
{
public:
	MyHandsGenerator(xn::ImageGenerator imageGen);
	...
};
@endcode
*/