]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
Updated Version with the moving of the objects updated and the background doesn't...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index f2866f599afa50e52256b0458ae34be28f6ac38e..672a4bd622018a3ddf9df4a733fe3034b08ae1e4 100644 (file)
@@ -92,40 +92,41 @@ namespace bbtk
        void GBlackBoxModel::move(double xx,double yy,double zz)
        {
                setInicPoint(xx,yy,zz);
-               //std::cout<<"GBlackBoxModel::move xx:"<<xx<<" yy:"<<yy<<" zz:"<<zz<<std::endl;
 
                //Refresh inputs position
                int i;
                for(i=0;i<_inputs.size();i++)
                {
-                       _inputs[i]->updatePortPosition(i);
+                       _inputs[i]->updatePortPosition();
                }
                
                //Refresh outputs position
                for(i=0;i<_outputs.size();i++)
                {
-                       _outputs[i]->updatePortPosition(i);
+                       _outputs[i]->updatePortPosition();
                }
 
        }
        
        //=========================================================================
 
-       GPortModel* GBlackBoxModel::getStartInputPort()
+       
+       std::string GBlackBoxModel::getBBTKPackage()
        {
-               GPortModel* temp = NULL;
+               return _bbtkPackage;
+       }
 
-               for(int i=0; i<_inputs.size() && temp == NULL;i++)
-               {
-                       if(_inputs[i]->getState() == CREATING_CONTOUR)
-                       {
-                               temp = _inputs[i];
-                       }
-               }
+       //=========================================================================
 
-               return temp;
+       void GBlackBoxModel::setBBTKPackage(std::string obpackage)
+       {
+               _bbtkPackage = obpackage;
        }
 
+       //=========================================================================
+
+
+
 }  // EO namespace bbtk
 
 // EOF