Program: bbtk
Module: $RCSfile: bbtkAny.h,v $
Language: C++
- Date: $Date: 2009/03/30 14:42:16 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.8 $
=========================================================================*/
/* ---------------------------------------------------------------------
* ------------------------------------------------------------------------ */
-/* ---------------------------------------------------------------------
-
-* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
-* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
-*
-* This software is governed by the CeCILL-B license under French law and
-* abiding by the rules of distribution of free software. You can use,
-* modify and/ or redistribute the software under the terms of the CeCILL-B
-* license as circulated by CEA, CNRS and INRIA at the following URL
-* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-* or in the file LICENSE.txt.
-*
-* As a counterpart to the access to the source code and rights to copy,
-* modify and redistribute granted by the license, users are provided only
-* with a limited warranty and the software's author, the holder of the
-* economic rights, and the successive licensors have only limited
-* liability.
-*
-* The fact that you are presently reading this means that you have had
-* knowledge of the CeCILL-B license and that you accept its terms.
-* ------------------------------------------------------------------------ */
-
/**
*\file
*\brief Defines the class any which can store any type of data (adapted from boost::any).
Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBox.h,v $
Language: C++
- Date: $Date: 2009/05/14 14:43:33 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.11 $
=========================================================================*/
/* ---------------------------------------------------------------------
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
-
-/* ---------------------------------------------------------------------
-
-* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
-* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
-*
-* This software is governed by the CeCILL-B license under French law and
-* abiding by the rules of distribution of free software. You can use,
-* modify and/ or redistribute the software under the terms of the CeCILL-B
-* license as circulated by CEA, CNRS and INRIA at the following URL
-* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-* or in the file LICENSE.txt.
-*
-* As a counterpart to the access to the source code and rights to copy,
-* modify and redistribute granted by the license, users are provided only
-* with a limited warranty and the software's author, the holder of the
-* economic rights, and the successive licensors have only limited
-* liability.
-*
-* The fact that you are presently reading this means that you have had
-* knowledge of the CeCILL-B license and that you accept its terms.
-* ------------------------------------------------------------------------ */
-
-
-
/**
* \file
* \brief class bbtk::AtomicBlackBox : ancestor of all user defined (concrete) black boxes which are atomic (vs. ComplexBlackBox objects which are made up of other (atomic or complex) boxes).
Program: bbtk
Module: $RCSfile: bbtkBlackBoxInputOutputDescriptor.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:12 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.6 $
=========================================================================*/
/* ---------------------------------------------------------------------
*
* As a counterpart to the access to the source code and rights to copy,
* modify and redistribute granted by the license, users are provided only
-* with a limited warranty and the software's author, the holder of the
-* economic rights, and the successive licensors have only limited
+* with a limited warranty and the software's author, the holder of the
+* economic rights, and the successive licensors have only limited
* liability.
*
* The fact that you are presently reading this means that you have had
Program: bbtk
Module: $RCSfile: bbtkKWBlackBox.cxx,v $
Language: C++
- Date: $Date: 2009/04/08 07:56:11 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.10 $
=========================================================================*/
/* ---------------------------------------------------------------------
#ifdef USE_KWWIDGETS
-
-
-
-
#include "bbtkKWBlackBox.h"
#include "bbtkBlackBoxOutputConnector.h"
#include "vtkKWBlackBoxDialog.h"
-
namespace bbtk
{
-
//=========================================================================
// KWBlackBox
//=========================================================================
bbGetOutputWidget()->GetWidgetName(),
bbGetInputWinWidth(),
bbGetInputWinHeight());
-
-
}
//==================================================================
}//namespace bbtk
-
#endif
Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2009/10/16 08:52:12 $
- Version: $Revision: 1.32 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.33 $
=========================================================================*/
/* ---------------------------------------------------------------------
{
bbtkDebugMessage("package",5,
" Descriptor has already been released"
- <<bbtkendl);
+ <<bbtkendl);
return;
}
// bbtkDebugMessage("package",3,
if (pack.expired())
{
bbtkDebugMessage("package",2,
- " ... and caused its package death"
+ " ... and caused its package death"
<<bbtkendl);
return;
} // pack.expired
<<"') : package expired during release : bailing out"<<bbtkendl);
break;
}
-
+
#if defined(MACOSX)
BlackBoxDescriptor::Pointer desc = pack.lock()->mDescriptorMap[*descname];
if ( (dyn==0) || (boost::dynamic_pointer_cast<ComplexBlackBoxDescriptor>(desc)) )
UnLoadDynamicLibrary(pack);
// Unload orphan dl packages
Package::UnLoadReleasedDynamicallyLoadedPackages();
-
-
-
}
#ifdef BBTK_COMPILE_DEBUG_MESSAGES
+/*=========================================================================
+ Program: bbtk
+ Module: $RCSfile: bbtkPimpl.h,v $
+ Language: C++
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.2 $
+=========================================================================*/
+
+/* ---------------------------------------------------------------------
+
+* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
+* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
+*
+* This software is governed by the CeCILL-B license under French law and
+* abiding by the rules of distribution of free software. You can use,
+* modify and/ or redistribute the software under the terms of the CeCILL-B
+* license as circulated by CEA, CNRS and INRIA at the following URL
+* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+* or in the file LICENSE.txt.
+*
+* As a counterpart to the access to the source code and rights to copy,
+* modify and redistribute granted by the license, users are provided only
+* with a limited warranty and the software's author, the holder of the
+* economic rights, and the successive licensors have only limited
+* liability.
+*
+* The fact that you are presently reading this means that you have had
+* knowledge of the CeCILL-B license and that you accept its terms.
+* ------------------------------------------------------------------------ */
+
#ifndef __bbtkPimpl_h_INCLUDED__
#define __bbtkPimpl_h_INCLUDED__
Program: bbtk
Module: $RCSfile: bbtkQt.h,v $
Language: C++
- Date: $Date: 2009/04/08 07:56:11 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.2 $
=========================================================================*/
/* ---------------------------------------------------------------------
-
* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
*
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
-
-/* ---------------------------------------------------------------------
-
-* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
-* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
-*
-* This software is governed by the CeCILL-B license under French law and
-* abiding by the rules of distribution of free software. You can use,
-* modify and/ or redistribute the software under the terms of the CeCILL-B
-* license as circulated by CEA, CNRS and INRIA at the following URL
-* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-* or in the file LICENSE.txt.
-*
-* As a counterpart to the access to the source code and rights to copy,
-* modify and redistribute granted by the license, users are provided only
-* with a limited warranty and the software's author, the holder of the
-* economic rights, and the successive licensors have only limited
-* liability.
-*
-* The fact that you are presently reading this means that you have had
-* knowledge of the CeCILL-B license and that you accept its terms.
-* ------------------------------------------------------------------------ */
-
-
#ifndef __bbtkQt_h_INCLUDED__
#define __bbtkQt_h_INCLUDED__
+/*=========================================================================
+ Program: bbtk
+ Module: $RCSfile: bbtkQtBlackBoxDialog.cxx,v $
+ Language: C++
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.4 $
+=========================================================================*/
+
+/* ---------------------------------------------------------------------
+
+* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
+* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
+*
+* This software is governed by the CeCILL-B license under French law and
+* abiding by the rules of distribution of free software. You can use,
+* modify and/ or redistribute the software under the terms of the CeCILL-B
+* license as circulated by CEA, CNRS and INRIA at the following URL
+* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+* or in the file LICENSE.txt.
+*
+* As a counterpart to the access to the source code and rights to copy,
+* modify and redistribute granted by the license, users are provided only
+* with a limited warranty and the software's author, the holder of the
+* economic rights, and the successive licensors have only limited
+* liability.
+*
+* The fact that you are presently reading this means that you have had
+* knowledge of the CeCILL-B license and that you accept its terms.
+* ------------------------------------------------------------------------ */
+
#ifdef USE_QT
#include "bbtkQtBlackBoxDialog.h"
+/*=========================================================================
+ Program: bbtk
+ Module: $RCSfile: bbtkQtBlackBoxDialog.h,v $
+ Language: C++
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.4 $
+=========================================================================*/
+
+/* ---------------------------------------------------------------------
+
+* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
+* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
+*
+* This software is governed by the CeCILL-B license under French law and
+* abiding by the rules of distribution of free software. You can use,
+* modify and/ or redistribute the software under the terms of the CeCILL-B
+* license as circulated by CEA, CNRS and INRIA at the following URL
+* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+* or in the file LICENSE.txt.
+*
+* As a counterpart to the access to the source code and rights to copy,
+* modify and redistribute granted by the license, users are provided only
+* with a limited warranty and the software's author, the holder of the
+* economic rights, and the successive licensors have only limited
+* liability.
+*
+* The fact that you are presently reading this means that you have had
+* knowledge of the CeCILL-B license and that you accept its terms.
+* ------------------------------------------------------------------------ */
+
#ifndef __bbtkQtBlackBoxDialog_h_INCLUDED__
#define __bbtkQtBlackBoxDialog_h_INCLUDED__
Program: bbtk
Module: $RCSfile: bbtkWidgetBlackBox.h,v $
Language: C++
- Date: $Date: 2009/06/10 11:36:51 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.7 $
========================================================================*/
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
+
/**
* \brief Short description in one line
*
Program: bbtk
Module: $RCSfile: bbtkWidgetBlackBox.txx,v $
Language: C++
- Date: $Date: 2009/05/28 08:12:06 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.6 $
=========================================================================*/
/* ---------------------------------------------------------------------
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
+
/**
* \file
* \brief
Program: bbtk
Module: $RCSfile: bbtkWx.cxx,v $
Language: C++
- Date: $Date: 2009/05/28 08:12:06 $
- Version: $Revision: 1.15 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.16 $
=========================================================================*/
/* ---------------------------------------------------------------------
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
+
#include "bbtkWx.h"
#include "bbtkMessageManager.h"
Program: bbtk
Module: $RCSfile: bbtkWx.h,v $
Language: C++
- Date: $Date: 2009/05/28 08:12:06 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.12 $
=========================================================================*/
/* ---------------------------------------------------------------------
*
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-B license and that you accept its terms.
-* ------------------------------------------------------------------------ */
-
-
-/* ---------------------------------------------------------------------
-
-* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
-* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
-*
-* This software is governed by the CeCILL-B license under French law and
-* abiding by the rules of distribution of free software. You can use,
-* modify and/ or redistribute the software under the terms of the CeCILL-B
-* license as circulated by CEA, CNRS and INRIA at the following URL
-* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-* or in the file LICENSE.txt.
-*
-* As a counterpart to the access to the source code and rights to copy,
-* modify and redistribute granted by the license, users are provided only
-* with a limited warranty and the software's author, the holder of the
-* economic rights, and the successive licensors have only limited
-* liability.
-*
-* The fact that you are presently reading this means that you have had
-* knowledge of the CeCILL-B license and that you accept its terms.
-* ------------------------------------------------------------------------ */
+* ------------------------------------------------------------------------ */
#ifndef __bbtkWx_h_INCLUDED__
}; // struct Wx
//==================================================================
-
-
#ifdef USE_WXWIDGETS
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2009/05/28 14:22:11 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.43 $
=========================================================================*/
/* ---------------------------------------------------------------------
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
-
#ifdef _USE_WXWIDGETS_
-
-
/**
* \file
* \brief
//#include "bbtkData.h"
//#include "bbtkFactory.h"
-
-
-
namespace bbtk
{
-
-
-
-
-
//=========================================================================
// WxFrame
//=========================================================================
}
//==================================================================
-
-
-
-
//=========================================================================
// WxDialog
//=========================================================================
BEGIN_EVENT_TABLE(WxDialog, wxDialog)
EVT_CLOSE(WxDialog::OnCloseWindow)
END_EVENT_TABLE();
- //==================================================================
+ //=========================================================================
//=========================================================================
WxDialog::WxDialog(WxBlackBox::Pointer b,
SetSizer(sizer);
Layout();
}
- //=========================================================================
+ //==================================================================
//==================================================================
WxDialog::~WxDialog()
{
//==================================================================
-
-
-
-
-
//=========================================================================
// WxBlackBox
//=========================================================================
bbGetInputWinHeight() ) );
w->Show();
}
+
//==================================================================
//==================================================================
bbGetWindow()->Show();
bbSetShown(true);
}
- }
+ }
}
//==================================================================
}
//==================================================================
-
-
}//namespace bbtk
-
#endif
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.h,v $
Language: C++
- Date: $Date: 2009/06/10 11:36:53 $
- Version: $Revision: 1.31 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.32 $
========================================================================*/
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
+
/**
* \brief Short description in one line
*
Program: bbtk
Module: $RCSfile: bbtkWxGUIScriptingInterface.cxx,v $
Language: C++
- Date: $Date: 2009/12/08 14:10:36 $
- Version: $Revision: 1.40 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.41 $
=========================================================================*/
/* ---------------------------------------------------------------------
void WxGUIScriptingInterface::OnMenuAbout(wxCommandEvent& WXUNUSED(event))
{
m_mgr.Update();
- Refresh();
- wxMessageBox(_T(" bbStudio\nThe Black Box Toolkit Development Studio\n(c) CREATIS-LRMN 2008"),
+ Refresh();
+ wxMessageBox(_T(" bbStudio\nThe Black Box Toolkit Development Studio\n(c) CREATIS-LRMN 2008\n\n http://www.creatis.insa-lyon.fr/creatools"),
_T("About ..."), wxOK | wxICON_INFORMATION,
this);
}
Program: bbtk
Module: $RCSfile: bbtkWxStreamRedirector.h,v $
Language: C++
- Date: $Date: 2008/12/11 15:30:04 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.4 $
=========================================================================*/
/* ---------------------------------------------------------------------
/// Redirects std::cout to a wxTextCtrl and optionally to printf also
class WxStreamRedirector : public std::streambuf
{
-
+
public:
-
-
+
WxStreamRedirector(std::ostream& redirect,
wxTextCtrl *text,
const wxColour& colour = *wxBLACK,
delete[] pbase();
m_ostr.rdbuf(m_sbufOld);
}
-
+
virtual void writeString(const std::string &str)
{
const wxTextAttr& style = mText->GetDefaultStyle();
printf("%s",str.c_str());
}
}
-
-
+
private:
wxTextCtrl* mText;
//
std::streambuf *m_sbufOld;
//
wxColour mColour;
-
+
private:
int overflow(int c)
{
return 0;
}
-
+
int sync()
{
if (pbase() != pptr())
return 0;
}
};
- //================================================================
-
+ //================================================================
} // namespace bbtk
-
#endif // __bbtkWxStreamRedirector_h__
#endif //USE_WXWIDGETS
Program: bbtk
Module: $RCSfile: bbtkXML.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:15 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2010/01/14 13:17:27 $
+ Version: $Revision: 1.5 $
=========================================================================*/
/* ---------------------------------------------------------------------
* knowledge of the CeCILL-B license and that you accept its terms.
* ------------------------------------------------------------------------ */
-
#ifndef __bbtkXML_h_INCLUDED__
#define __bbtkXML_h_INCLUDED__
namespace bbtk
{
-
void CleanString_0D(std::string& var)
{
int i,size=var.length();
}
//====================================================================
-
std::string GetErrorMessage(XMLResults* res, const std::string& filename)
{
std::ostringstream str;
str << " file "<<filename;
return str.str();
}
-
};
#endif