- int type = GPORT;
-
- //Create the MVC Objects
- GPortModel *model = (GPortModel*)GObjectsMVCFactory::getInstance()->createGObjectModel(type);
- vtkGObjectView *view = GObjectsMVCFactory::getInstance()->createGObjectView(type);
- GObjectController* controller = GObjectsMVCFactory::getInstance()->createGObjectController(type);
-
- model->registerInBox(blackBox,GOUTPUTPORT, pos);
- blackBox->addOutputPort(model);
-
- model->addObserver(view);
- model->addObserver(this);