}
// UserConstructor body
- if (BB.nChildNode("constructor"))
+ if (BB.nChildNode("userconstructor"))
{
- bbtk::GetTextOrClear(BB.getChildNode("constructor"),mUserConstructor);
+ bbtk::GetTextOrClear(BB.getChildNode("userconstructor"),mUserConstructor);
}
// UserCopyConstructor body
- if (BB.nChildNode("copyconstructor"))
+ if (BB.nChildNode("usercopyconstructor"))
{
- bbtk::GetTextOrClear(BB.getChildNode("copyconstructor"),mUserCopyConstructor);
+ bbtk::GetTextOrClear(BB.getChildNode("usercopyconstructor"),mUserCopyConstructor);
}
// UserDestructor body
- if (BB.nChildNode("destructor"))
+ if (BB.nChildNode("userdestructor"))
{
- bbtk::GetTextOrClear(BB.getChildNode("destructor"),mUserDestructor);
+ bbtk::GetTextOrClear(BB.getChildNode("userdestructor"),mUserDestructor);
}
// Template parameters
// Process
if ((mType == STD)||(mProcess.size()))
{
- mFile << " BBTK_PROCESS(DoProcess);\n" ;
- mFile << " void DoProcess();\n";
+ mFile << " BBTK_PROCESS(Process);\n" ;
+ mFile << " void Process();\n";
}
else if (mType == itkImageToImageFilter)
{
// CreateWidget
if (mIsWidget)
{
- mFile << " BBTK_CREATE_WIDGET(DoCreateWidget);\n" ;
- mFile << " void DoCreateWidget();\n";
+ mFile << " BBTK_CREATE_WIDGET(CreateWidget);\n" ;
+ mFile << " void CreateWidget();\n";
}
// Process
if ((mType == STD)||(mProcess.size()))
{
- mFile << "void "<<mName<<"::DoProcess()\n{\n";
+ mFile << "void "<<mName<<"::Process()\n{\n";
mFile << mProcess << "\n";
mFile << "}\n";
}
// CreateWidget
if (mIsWidget)
{
- mFile << "void "<<mName<<"::DoCreateWidget()\n{\n";
+ mFile << "void "<<mName<<"::CreateWidget()\n{\n";
mFile << mCreateWidget << "\n";
mFile << "}\n";
}
SUBDIRS(src)
SUBDIRS(doc)
SUBDIRS(bbs)
-#---------------------------------------------------------------------------
+ SUBDIRS(data)
+ #---------------------------------------------------------------------------
#---------------------------------------------------------------------------
ELSE(BUILD_BBTK_PACKAGE_${BBTK_PACKAGE_NAME})
--- /dev/null
+
+FILE(GLOB ALL "*.*")
+
+
+INSTALL(
+ FILES ${ALL}
+ DESTINATION ${BBTK_DATA_INSTALL_PATH}/${BBTK_PACKAGE_NAME}
+ )
+
Program: bbtk
Module: $RCSfile: bbtkConfigurationFile.cxx,v $
Language: C++
- Date: $Date: 2008/02/14 10:47:51 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/02/15 08:46:17 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
// always add "." (current working directory) at the begining
mPackage_paths.push_back(".");
#ifndef WIN32
- // add system bin path (for build tree)
- // mPackage_paths.push_back(mBin_path);
+ // add system bin path (for build tree / standalone folder install)
+ mPackage_paths.push_back(mBin_path);
// add system lib path (for install tree)
mPackage_paths.push_back(mInstall_path + mFile_separator + "lib");
#else
bbtkMessage("Help",level, "=============" << std::endl);
bbtkMessage("Help",level, "Configuration" << std::endl);
bbtkMessage("Help",level, "=============" << std::endl);
- bbtkMessage("Help",level, "bbtk_config.xml : [" << config_xml_full_path << "]" << std::endl);
- bbtkMessage("Help",level, "Documentation Url : [" << url << "]" << std::endl);
- bbtkMessage("Help",level, "Data Path : [" << data_path << "]" << std::endl);
- bbtkMessage("Help",level, "Default Temp-Dir : [" << default_temp_dir << "]" << std::endl);
- bbtkMessage("Help",level, "File Separator : [" << file_separator << "]" << std::endl);
+ bbtkMessage("Help",level, "bbtk_config.xml : [" << config_xml_full_path << "]" << std::endl);
+ bbtkMessage("Help",level, "Documentation Path : [" << url << "]" << std::endl);
+ bbtkMessage("Help",level, "Data Path : [" << data_path << "]" << std::endl);
+ bbtkMessage("Help",level, "Temp Directory : [" << default_temp_dir << "]" << std::endl);
+ bbtkMessage("Help",level, "File Separator : [" << file_separator << "]" << std::endl);
std::vector<std::string>::const_iterator i;
-adaptor
-application
-atomic box
-complex box
-demo
-filter
-image
-interaction
-math
-mesh
-misc
-read/write
-test
-viewer
-widget
+=== Here are the current categories ===
+Those with a ? are submitted for approval ...
-If no category found : adds ' NONE'
+adaptor : Adaptor box
+application : Final application
+atomic box : System category.
+ Automatically assigned to Atomic Black Boxes (c++ defined)
+complex box : System category.
+ Automatically assigned to Complex Black Boxes (script defined)
+? command line : Script which defines a command line application.
+demo : Demonstration
+? devel : Developer tool (bbCreatePackage.bbs, ...)
+example : Example script showing a box use-case
+filter :
+image : Image processing related box
+interaction :
+math :
+mesh : Mesh processing related box
+misc : A box that cannot be put in other category !
+read/write : Box that read or write data from or to disk
+test : REMOVED : UPDATE BOXES !
+? tool : ?
+viewer : Box which displays some data
+widget : Piece of graphical interface
--- /dev/null
+#===========================================================================
+# Include package data configuration cmake script from bbtk dir
+INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_data.cmake)
+#===========================================================================
--- /dev/null
+#===========================================================================
+# Include package data configuration cmake script from bbtk dir
+INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_data.cmake)
+#===========================================================================
# - bbtk dirs
# - automatically handled libraries or packages : wx, vtk... (see above)
# - the dirs automatically set by other libraries found by FIND_PACKAGE
+ ../std/src
)
#===========================================================================
--- /dev/null
+#===========================================================================
+# Include package data configuration cmake script from bbtk dir
+INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_data.cmake)
+#===========================================================================
--- /dev/null
+/*=========================================================================
+
+ Program: bbtk
+ Module: $RCSfile: bbvtkImageDataToString.cxx,v $
+ Language: C++
+ Date: $Date: 2008/02/15 08:46:19 $
+ Version: $Revision: 1.1 $
+
+ 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.
+
+=========================================================================*/
+/**
+ * \file
+ * \brief
+ */
+
+
+#ifdef _USE_VTK_
+
+#include "bbstdToString.h"
+#include "vtkImageData.h"
+#include "bbvtkPackage.h"
+
+typedef vtkImageData* vtkImageDataPtr;
+typedef const vtkImageData* vtkImageDataConstPtr;
+
+namespace bbtk
+{
+ // BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(vtkImageDataPtr,"vtkImageDataPtr");
+ // BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(vtkImageDataConstPtr,"vtkImageDataConstPtr");
+}
+
+namespace bbstd
+{
+ //====================================================================
+ BBTK_USER_BLACK_BOX_TEMPLATE_IMPLEMENTATION(ToString,
+ bbtk::AtomicBlackBox);
+ //====================================================================
+
+
+ //====================================================================
+ template <> void ToString<vtkImageData*> ::DoIt()
+ {
+ vtkImageData* im = bbGetInputIn();
+ int dim[3];
+ im->GetDimensions(dim);
+
+ std::ostringstream str;
+ str << "vtkImageData ["
+ << dim[0] << ","
+ << dim[1] << ","
+ << dim[2] << "]";
+
+ bbSetOutputOut( str.str() ); //bbGetInputIn()->GetInfoString() );
+ }
+ //====================================================================
+}
+
+
+using namespace bbstd;
+namespace bbvtk
+{
+ //====================================================================
+ // Add the specialized adaptors to the package
+ BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(vtk,ToString,vtkImageDataPtr);
+}
+
+
+#endif // _USE_VTK_
--- /dev/null
+/*=========================================================================
+
+ Program: bbtk
+ Module: $RCSfile: bbvtkImageDataToString.h,v $
+ Language: C++
+ Date: $Date: 2008/02/15 08:46:19 $
+ Version: $Revision: 1.1 $
+
+ 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.
+
+=========================================================================*//**
+ * \brief Short description in one line
+ *
+ * Long description which
+ * can span multiple lines
+ */
+/**
+ * \file
+ * \brief Pattern for the definition of a new type of Node (header)
+ */
+/**
+ * \class bbtk::NodePatern
+ * \brief Pattern for the definition of a new type of Node
+ */
+
+
+#ifdef _USE_VTK_
+
+
+
+#endif //_USE_VTK_
\ No newline at end of file
<input name="In" type="std::string" description="Filename"/>
<output name="Out" type="vtkImageData*" description="Output image" special="vtk output"/>
+ <process><PRE>
+ SetFileName(bbGetInputIn().c_str());
+ Update();
+ </PRE></process>
+
</blackbox>
--- /dev/null
+#===========================================================================
+# Include package data configuration cmake script from bbtk dir
+INCLUDE(${BBTK_CMAKE_DIR}/BBTKConfigurePackage_data.cmake)
+#===========================================================================