]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GBlackBoxModel.cxx
The actual version updates the status bar with the highlighted object ... Also it...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GBlackBoxModel.cxx
index 2a2081f463a1bec9826708452acaf87bfa475fc0..e58e73aebfef1f301a2fd0023bdfec9728feba0d 100644 (file)
@@ -89,6 +89,54 @@ 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();
+               }
+               
+               //Refresh outputs position
+               for(i=0;i<_outputs.size();i++)
+               {
+                       _outputs[i]->updatePortPosition();
+               }
+
+       }
+       
+       //=========================================================================
+
+       
+       std::string GBlackBoxModel::getBBTKPackage()
+       {
+               return _bbtkPackage;
+       }
+
+       //=========================================================================
+
+       void GBlackBoxModel::setBBTKPackage(std::string obpackage)
+       {
+               _bbtkPackage = obpackage;
+       }
+
+       //=========================================================================
+       
+       std::string GBlackBoxModel::getStatusText()
+       {
+               std::string temp = "";
+               temp+=_bbtkType;
+               temp+=":";
+               temp+=_bbtkPackage;
+               return temp;
+       }
+
+       //=========================================================================
+
+
 }  // EO namespace bbtk
 
 // EOF