ConditionalWidget conditionally instances a kernel of a defined type. In addition, ConditionalWidget will connect graph’s input and output ports to kernel’s ports. Ports must be of window type. When disabled, no kernel will be created and input wil be directly connected to output.
These are the templates to configure the ConditionalWidget graph class.
Parameters:
addWidget | conditionally add a widget kernel. When set to 1, kernel of: |
windowSize | describes the size of the window the widgetClass is to operate on. |
widgetClass | defines the class to be created. |
template < unsigned int addWidget, unsigned int windowSize, class widgetClass > class ConditionalWidget