// If input is connected
BlackBoxInputConnector* c = bbGetInputConnectorMap().find(in)->second ;
if ( c->IsConnected() )
- {
- // Get black box from
- BlackBox::Pointer from =
- c->GetConnection()->GetBlackBoxFrom();
- // Cast it into a WidgetBlackBox
- typename WidgetBlackBox<T>::Pointer wfrom
- = boost::dynamic_pointer_cast<WidgetBlackBox<T> >(from);
- // If the black box from construction is not done yet : do it
- // If not constructed do it
- wfrom->bbInitializeProcessing();
- // Call bbUserCreateWidget
- wfrom->bbUserCreateWidget(parent);
- // Get the widget created
- w = wfrom->bbGetOutputWidget();
- // Insert the box into the NestedWidgetBoxes list
- bbmNestedWidgetBoxes.push_back(from);
- }
+ {
+ // Get black box from
+ BlackBox::Pointer from = c->GetConnection()->GetBlackBoxFrom();
+ // Cast it into a WidgetBlackBox
+ typename WidgetBlackBox<T>::Pointer wfrom = boost::dynamic_pointer_cast<WidgetBlackBox<T> >(from);
+ // If the black box from construction is not done yet : do it
+ // If not constructed do it
+ wfrom->bbInitializeProcessing();
+ // Call bbUserCreateWidget
+ wfrom->bbUserCreateWidget(parent);
+ // Get the widget created
+ w = wfrom->bbGetOutputWidget();
+ // Insert the box into the NestedWidgetBoxes list
+ bbmNestedWidgetBoxes.push_back(from);
+ } // if IsConnected
return w;
}
//==================================================================