The Black Box Toolkit
(c) CREATIS-LRMN 2008
+
+
+
+Note Xcode MacOS:
+- ccmake -G"Xcode" <source>
+
+- LATEX_COMPILER:/opt/local/bin/latex
+
+- QT_QMAKER_EXECUTABLE:/opt/local/libexec/qt4-mac/bin/qmake
+
+- Erase all "-Wno-long-double" from the file
+ BBTK.xcodeproj/project.pbxproj
+ > sed "s/-Wno-long-double/ /g" BBTK.xcodeproj/project.pbxproj > BBTK.xcodeproj/tmp.txt
+ > cp BBTK.xcodeproj/tmp.txt BBTK.xcodeproj/project.pbxproj
+
+- Change compiler version
+ 1.open <XXX.xcodeproj>
+ 2.Project
+ -> Edit project settings
+ -> Build
+ 3.Copiler Version -> C/C++ CompilerVersion
+ GCC 4.2
\ No newline at end of file
Program: bbtk
Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
- Date: $Date: 2010/09/05 09:20:49 $
- Version: $Revision: 1.49 $
+ Date: $Date: 2010/09/12 14:52:25 $
+ Version: $Revision: 1.50 $
=========================================================================*/
/* ---------------------------------------------------------------------
//===================================================================
+// ups3 EED borrame
+ std::string Factory::GetPackageNameOfaBlackBox(std::string boxType)
+ {
+ std::string result="<void bbtk package name>";
+ PackageMapType::const_iterator i;
+ for (i = mPackageMap.begin(); i!=mPackageMap.end(); ++i )
+ {
+ if ( i->second->ifBoxExist( boxType ) == true)
+ {
+ result = i->first;
+ }
+ }
+ return result;
+ }
+
+
//===================================================================
/// Creates an instance of a black box of type <type> with name <name>
BlackBox::Pointer Factory::NewBlackBox(const std::string& type,
Program: bbtk
Module: $RCSfile: bbtkFactory.h,v $
Language: C++
- Date: $Date: 2009/06/08 14:50:03 $
- Version: $Revision: 1.17 $
+ Date: $Date: 2010/09/12 14:52:25 $
+ Version: $Revision: 1.18 $
=========================================================================*/
/* ---------------------------------------------------------------------
/// Gets the executer who created the factory (if any) - const
// const Executer::Pointer GetExecuter() const { return mExecuter.lock(); }
+ std::string GetPackageNameOfaBlackBox(std::string boxType);
+
private:
Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2010/02/08 15:15:24 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2010/09/12 14:52:25 $
+ Version: $Revision: 1.35 $
=========================================================================*/
/* ---------------------------------------------------------------------
}
//==========================================================================
+//ups4 EED borrame
+ bool Package::ifBoxExist( std::string type)
+ {
+ bool ok=false;
+ DescriptorMapType::const_iterator i = mDescriptorMap.find(type);
+ if (i != mDescriptorMap.end())
+ {
+ ok=true;
+ }
+ return ok;
+ }
+
//==========================================================================
/// Creates an instance of a black box of type <type> with name <name>
BlackBox::Pointer Package::NewBlackBox(const std::string& type,
Program: bbtk
Module: $RCSfile: bbtkPackage.h,v $
Language: C++
- Date: $Date: 2009/06/08 14:50:04 $
- Version: $Revision: 1.15 $
+ Date: $Date: 2010/09/12 14:52:25 $
+ Version: $Revision: 1.16 $
=========================================================================*/
/* ---------------------------------------------------------------------
const FactorySet& GetFactorySet() const { return mFactorySet; }
void Check() const;
+ bool ifBoxExist( std::string boxType );
+
private:
/// Default ctor is private : use the static New method
// Package() {}
Program: bbtk
Module: $RCSfile: bbtkWxGUIPackageBrowser2.cxx,v $
Language: C++
- Date: $Date: 2010/05/03 12:39:44 $
- Version: $Revision: 1.21 $
+ Date: $Date: 2010/09/12 14:52:25 $
+ Version: $Revision: 1.22 $
=========================================================================*/
/* ---------------------------------------------------------------------
}
//================================================================
+ Factory::Pointer WxGUIPackageBrowser2::GetFactory()
+ {
+ return mFactory;
+ }
+
+ //================================================================
+
+
//================================================================
void WxGUIPackageBrowser2::OnFilter(wxCommandEvent&)
{
Program: bbtk
Module: $RCSfile: bbtkWxGUIPackageBrowser2.h,v $
Language: C++
- Date: $Date: 2010/03/25 15:24:50 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2010/09/12 14:52:25 $
+ Version: $Revision: 1.8 $
=========================================================================*/
/* ---------------------------------------------------------------------
//RaC
BlackBoxDescriptor* GetActualSelected();
-
+ Factory::Pointer GetFactory();
+
private:
- wxAuiManager m_mgr;
- WxGUIPackageBrowser2User* mUser;
- Interpreter::Pointer mInterpreter;
- Factory::Pointer mFactory;
- WxGUIBlackBoxList* mBoxList;
- WxGUIBlackBoxInfo* mBoxInfo;
-
- wxTextCtrl* mPackageFilter;
- wxTextCtrl* mNameFilter;
- wxTextCtrl* mDescriptionFilter;
- wxTextCtrl* mCategoryFilter;
- wxTextCtrl* mInputTypeFilter;
- wxTextCtrl* mOutputTypeFilter;
- wxTextCtrl* mInputNatureFilter;
- wxTextCtrl* mOutputNatureFilter;
-
- wxCheckBox* mShowWidgetsFilter;
- wxCheckBox* mShowAdaptorsFilter;
- wxCheckBox* mShowGUIsFilter;
+ wxAuiManager m_mgr;
+ WxGUIPackageBrowser2User* mUser;
+ Interpreter::Pointer mInterpreter;
+ Factory::Pointer mFactory;
+ WxGUIBlackBoxList* mBoxList;
+ WxGUIBlackBoxInfo* mBoxInfo;
+
+ wxTextCtrl *mPackageFilter;
+ wxTextCtrl *mNameFilter;
+ wxTextCtrl *mDescriptionFilter;
+ wxTextCtrl *mCategoryFilter;
+ wxTextCtrl *mInputTypeFilter;
+ wxTextCtrl *mOutputTypeFilter;
+ wxTextCtrl *mInputNatureFilter;
+ wxTextCtrl *mOutputNatureFilter;
+
+ wxCheckBox *mShowWidgetsFilter;
+ wxCheckBox *mShowAdaptorsFilter;
+ wxCheckBox *mShowGUIsFilter;
//RaC
BlackBoxDescriptor *_actualSelected;
--- /dev/null
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+<blackbox name="ImageContinuousDilate3D" type="VTK_ImageAlgorithm">
+
+<author>eduardo.davila at creatis.insa-lyon.fr</author>
+<description><PRE>replaces a pixel with the minimum over an ellipsoidal neighborhood. If KernelSize of an axis is 1, no processing is done on that axis.</PRE></description>
+<category>image;filter</category>
+
+<include>vtkImageContinuousErode3D.h</include>
+<include>vtkImageData.h</include>
+
+<vtkobject>vtkImageContinuousErode3D</vtkobject>
+
+<input name="In" type="vtkImageData*" special="vtk input" description="Input image"/>
+<output name="Out" type="vtkImageData*" special="vtk output" description="Output image"/>
+<input name="KernelSizeX" type="int" description="Size of the kernel in direction X"/>
+<input name="KernelSizeY" type="int" description="Size of the kernel in direction Y"/>
+<input name="KernelSizeZ" type="int" description="Size of the kernel in direction Z"/>
+
+<process>
+<PRE>
+bbGetVtkObject()->SetKernelSize(bbGetInputKernelSizeX(),
+ bbGetInputKernelSizeY(),
+ bbGetInputKernelSizeZ());
+bbGetVtkObject()->Update();
+</PRE>
+</process>
+
+
+</blackbox>
+
+
--- /dev/null
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+<blackbox name="ImageContinuousErode3D" type="VTK_ImageAlgorithm">
+
+<author>eduardo.davila at creatis.insa-lyon.fr</author>
+<description><PRE>replaces a pixel with the maximum over an ellipsoidal neighborhood. If KernelSize of an axis is 1, no processing is done on that axis..</PRE></description>
+<category>image;filter</category>
+
+<include>vtkImageContinuousErode3D.h</include>
+<include>vtkImageData.h</include>
+
+<vtkobject>vtkImageContinuousErode3D</vtkobject>
+
+<input name="In" type="vtkImageData*" special="vtk input" description="Input image"/>
+<output name="Out" type="vtkImageData*" special="vtk output" description="Output image"/>
+<input name="KernelSizeX" type="int" description="Size of the kernel in direction X"/>
+<input name="KernelSizeY" type="int" description="Size of the kernel in direction Y"/>
+<input name="KernelSizeZ" type="int" description="Size of the kernel in direction Z"/>
+
+<process>
+<PRE>
+bbGetVtkObject()->SetKernelSize(bbGetInputKernelSizeX(),
+ bbGetInputKernelSizeY(),
+ bbGetInputKernelSizeZ());
+bbGetVtkObject()->Update();
+</PRE>
+</process>
+
+
+</blackbox>
+
+