]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
Important change in the project to visualize the contour when the output was selected...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index 2a2081f463a1bec9826708452acaf87bfa475fc0..876dbb072c94123b165b2acf1ead577aab1a4d36 100644 (file)
@@ -89,6 +89,42 @@ namespace bbtk
 
        //=========================================================================
 
+       void GBlackBoxModel::move(double xx,double yy,double zz)
+       {
+               setInicPoint(xx,yy,zz);
+
+               //Refresh inputs position
+               int i;
+               for(i=0;i<_inputs.size();i++)
+               {
+                       _inputs[i]->updatePortPosition(i);
+               }
+               
+               //Refresh outputs position
+               for(i=0;i<_outputs.size();i++)
+               {
+                       _outputs[i]->updatePortPosition(i);
+               }
+
+       }
+       
+       //=========================================================================
+
+       GPortModel* GBlackBoxModel::getStartOutputPort()
+       {
+               GPortModel* temp = NULL;
+
+               for(int i=0; i<_inputs.size() && temp == NULL;i++)
+               {
+                       if(_outputs[i]->getState() == CREATING_CONTOUR)
+                       {
+                               temp = _outputs[i];
+                       }
+               }
+
+               return temp;
+       }
+
 }  // EO namespace bbtk
 
 // EOF