]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
First prototype works. Basic boxes construction, evenct handling and colors represent...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index 186c745baf1c189e64f20d7e6c5b23915ad77945..2a2081f463a1bec9826708452acaf87bfa475fc0 100644 (file)
@@ -51,6 +51,16 @@ namespace bbtk
        }
        //=========================================================================
 
+       void GBlackBoxModel::setInicPoint(double& x, double& y, double& z)
+       {
+               GObjectModel::setInicPoint(x,y,z);
+
+               double xFin=x+BOX_WIDTH,yFin=y-BOX_HEIGHT;
+               setFinalPoint(xFin,yFin,z);
+       }
+
+       //=========================================================================
+
        void GBlackBoxModel::addInputPort(GPortModel *inputport)
        {
                _inputs.push_back(inputport);
@@ -65,6 +75,20 @@ namespace bbtk
 
        //=========================================================================
 
+       int GBlackBoxModel::getNumInputPorts()
+       {
+               return _inputs.size();
+       }
+
+       //=========================================================================
+
+       int GBlackBoxModel::getNumOutputPorts()
+       {
+               return _outputs.size();
+       }
+
+       //=========================================================================
+
 }  // EO namespace bbtk
 
 // EOF