Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
bbtkDebugMessageInc("Kernel",9,"Executer::Executer()" <<std::endl);
Reset();
bbtkDebugDecTab("Kernel",9);
bbtkDebugMessageInc("Kernel",9,"Executer::Executer()" <<std::endl);
Reset();
bbtkDebugDecTab("Kernel",9);
bbtkDebugMessageInc("Kernel",9,"Executer::~Executer()" <<std::endl);
if (mRoot)
{
mPackage->UnRegisterBlackBox("workspace");
bbtkDebugMessageInc("Kernel",9,"Executer::~Executer()" <<std::endl);
if (mRoot)
{
mPackage->UnRegisterBlackBox("workspace");
{
GetGlobalFactory()->UnLoadPackage("user");
}
bbtkDebugDecTab("Kernel",9);
}
{
GetGlobalFactory()->UnLoadPackage("user");
}
bbtkDebugDecTab("Kernel",9);
}
// all user defined CBB otherwise any instance
// of a user CBB that is in the 'workspace' would try to
// access a user CBB descriptor which has been previously freed
// all user defined CBB otherwise any instance
// of a user CBB that is in the 'workspace' would try to
// access a user CBB descriptor which has been previously freed
mOpenPackage.push_back(mPackage);
bbtkDebugDecTab("Kernel",9);
}
mOpenPackage.push_back(mPackage);
bbtkDebugDecTab("Kernel",9);
}
- const std::string &pack,
- const std::string &scriptfilename)
+ const std::string &pack,
+ const std::string &scriptfilename)
- void Executer::Connect (const std::string &nodeFrom,
- const std::string &outputLabel,
+ void Executer::Connect (const std::string &nodeFrom,
+ const std::string &outputLabel,
const std::string &nodeTo,
const std::string &inputLabel)
{
const std::string &nodeTo,
const std::string &inputLabel)
{
// If the dialog mode is set to GraphicalDialog
// A dialog box is pop up
else if (mDialogMode == GraphicalDialog)
// If the dialog mode is set to GraphicalDialog
// A dialog box is pop up
else if (mDialogMode == GraphicalDialog)
Current()->DefineInput(name,box,input,help);
}
Current()->DefineInput(name,box,input,help);
}
NewAdaptor(typeid(std::string),
b->bbGetInputType(input),
"tmp");
NewAdaptor(typeid(std::string),
b->bbGetInputType(input),
"tmp");
std::string Executer::Get(const std::string &box,
const std::string &output)
{
std::string Executer::Get(const std::string &box,
const std::string &output)
{
bbtkMessageInc("Help",1,"The black box descriptor \""
<<Current()->GetTypeName()<<"\" contains : "<<std::endl);
Current()->PrintBlackBoxes();
bbtkMessageInc("Help",1,"The black box descriptor \""
<<Current()->GetTypeName()<<"\" contains : "<<std::endl);
Current()->PrintBlackBoxes();
- std::cout <<"EXC"<<std::endl;
- page = ShowGraphInstances(nameblackbox,detail,level,system_display);
+ std::cout <<"EXC"<<std::endl;
+ page = ShowGraphInstances(nameblackbox,detail,level,system_display);
/// Generate a png file with the actual pipeline (Graphviz-dot needed)
std::string Executer::ShowGraphInstances(const std::string &nameblackbox, int detail, int level,
/// Generate a png file with the actual pipeline (Graphviz-dot needed)
std::string Executer::ShowGraphInstances(const std::string &nameblackbox, int detail, int level,
std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_temp_dir();
char c = default_doc_dir.c_str()[strlen(default_doc_dir.c_str())-1];
std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_temp_dir();
char c = default_doc_dir.c_str()[strlen(default_doc_dir.c_str())-1];
//std::string directory("temp_dir");
std::string filename(directory + "/" + "bbtk_graph_pipeline");
std::string filename_html(filename+".html");
std::string command0("mkdir \""+directory + "\"");
//std::string directory("temp_dir");
std::string filename(directory + "/" + "bbtk_graph_pipeline");
std::string filename_html(filename+".html");
std::string command0("mkdir \""+directory + "\"");
}
blackbox->bbInsertHTMLGraph( s, detail, level, true, directory, false );
}
blackbox->bbInsertHTMLGraph( s, detail, level, true, directory, false );
{
bbtkMessageInc("Help",1,"No black box: \""
<<nameblackbox<<"\" " <<std::endl);
{
bbtkMessageInc("Help",1,"No black box: \""
<<nameblackbox<<"\" " <<std::endl);