]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
Basic functionnality adition showing the black box input ports
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index 4fc3e6840e725f4546f401060e64cb9419f4da6c..186c745baf1c189e64f20d7e6c5b23915ad77945 100644 (file)
@@ -51,13 +51,20 @@ namespace bbtk
        }
        //=========================================================================
 
-       void GBlackBoxModel::updateBlackBox(BlackBoxDescriptor::Pointer descriptor)//virtual
+       void GBlackBoxModel::addInputPort(GPortModel *inputport)
        {
-               _desc=descriptor;
-               std::cout<<"RaC Box author:"<<_desc->GetAuthor()<<std::endl;
+               _inputs.push_back(inputport);
        }
 
        //=========================================================================
+
+       void GBlackBoxModel::addOutputPort(GPortModel *outputport)
+       {
+               _outputs.push_back(outputport);
+       }
+
+       //=========================================================================
+
 }  // EO namespace bbtk
 
 // EOF