]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/ExecuterBBSG.cxx
no message
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / ExecuterBBSG.cxx
index d485735950da7e543a5a8bb6371455fa992887d2..39df179cd7e1cef112fb3ff879b94b2fdd4f9885 100644 (file)
@@ -48,16 +48,23 @@ namespace bbtk
 
        
 
-       EExecuterBBSG::Pointer EExecuterBBSG::New()
+       EExecuterBBSG::Pointer EExecuterBBSG::New( wxVtkSceneManager* sceneManager,  Factory::Pointer factory )
        {
-                    return MakePointer( new EExecuterBBSG() );
+                    return MakePointer( new EExecuterBBSG( sceneManager, factory) );
        }
 
        
        //=========================================================================
 
-       EExecuterBBSG::EExecuterBBSG()
+       EExecuterBBSG::EExecuterBBSG( wxVtkSceneManager* sceneManager, Factory::Pointer factory )
        {               
+               _factory                = factory;
+               _sceneManager   = sceneManager;
+               
+               _xGeneral               = 10;
+               _yGeneral               = 10;
+               _zGeneral               = 900;   //  ?????
+               
        }
 
        //=========================================================================
@@ -67,7 +74,9 @@ namespace bbtk
        }
 
        //=========================================================================
-
+       
+       
+       
 //--EED
     /// Sets the inputs of the workspace : 
     void EExecuterBBSG::SetInputs(const std::map<std::string,std::string>& m)
@@ -147,10 +156,13 @@ namespace bbtk
        }
        
     /// Creates a new black box in current complex box
-    void EExecuterBBSG::Create ( const std::string& boxType, const std::string&
-                                                boxName)
+    void EExecuterBBSG::Create ( const std::string& boxType, const std::string& boxName)
        {
-               printf("EED EExecuterBBSG::Create\n");
+               std::string packagename = _factory->GetPackageNameOfaBlackBox(boxType);
+//             int idBox                               = _sceneManager->createGBlackBox( 0,0, packagename ,boxType);
+//             _sceneManager->configGBlackBox(idBox, _xGeneral,_yGeneral,_zGeneral,boxName, false , _xGeneral+100, _yGeneral-10 , _zGeneral );
+               _yGeneral = _yGeneral + 30;
+               printf("EED EExecuterBBSG::Create  packagename=%s    boxtype=%s   boxname=%s \n", packagename.c_str(), boxType.c_str(), boxName.c_str() );      
        }
        
     /// Destroys a black box