X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FGPortModel.cxx;h=acef109612295c56b8a24831a0ffa5eba3c9a68c;hb=3babfd57a9b4b3cffba34415e928239592e7d4a1;hp=50b0fd6c39c8aa4abc1ef6bd4900adde01ddb594;hpb=878ac6ad472bc459f4e364c16890e5026c401944;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx index 50b0fd6..acef109 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx @@ -75,11 +75,11 @@ namespace bbtk double posX=xInic,posY=yInic,posZ=zInic; if(_portType==GOUTPUTPORT) { - posY = yInic+PORT_HEIGHT; + posY = yFin; } else if(_portType==GINPUTPORT) { - posY = yFin; + posY = yInic+PORT_HEIGHT; } //Attribute '_posInBox' starts with value 0 and it represents the position of the port in the box from left to right @@ -92,8 +92,6 @@ namespace bbtk setFinalPoint(posX,posY,posZ); - setChanged(); - notifyObservers(); } //========================================================================= @@ -103,6 +101,31 @@ namespace bbtk return _portType; } + //========================================================================= + + std::string GPortModel::getStatusText() + { + std::string temp = "Name:"; + + temp+=_bbtkName; + temp+=" Type:"; + temp+=_bbtkType; + temp+=" Box:"; + temp+=_parentBox->getBBTKType(); + if(_portType==GOUTPUTPORT) + { + temp+=" [Output Port]"; + } + else if(_portType==GINPUTPORT) + { + temp+=" [Input Port]"; + } + + return temp; + } + + //========================================================================= + } // EO namespace bbtk // EOF