- 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; // ?????
+
}
//=========================================================================
}
//=========================================================================
-
+
+
+
//--EED
/// Sets the inputs of the workspace :
void EExecuterBBSG::SetInputs(const std::map<std::string,std::string>& m)
}
/// 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