SET(BBTK_INDEX_ALPHA_FILE ${BBTK_BBDOC_BUILD_PATH}/index-alpha.html)
SET(BBTK_INDEX_PACKAGES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-package.html)
SET(BBTK_INDEX_CATEGORIES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-category.html)
+SET(BBTK_INDEX_ADAPTORS_FILE ${BBTK_BBDOC_BUILD_PATH}/index-adaptors.html)
SET(INDEX_OUTPUT
${BBTK_INDEX_ALPHA_FILE} ${BBTK_INDEX_PACKAGES_FILE}
${BBTK_INDEX_CATEGORIES_FILE}
SET(BBTK_INDEX_ALPHA_FILE index-alpha.html)
SET(BBTK_INDEX_PACKAGES_FILE index-package.html)
SET(BBTK_INDEX_CATEGORIES_FILE index-category.html)
+SET(BBTK_INDEX_ADAPTORS_FILE index-adaptors.html)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/make-index.bbs.in
${BBTK_BBDOC_BUILD_PATH}/make-index.bbs
index @BBTK_INDEX_ALPHA_FILE@ Initials
index @BBTK_INDEX_PACKAGES_FILE@ Packages
index @BBTK_INDEX_CATEGORIES_FILE@ Categories
+index @BBTK_INDEX_ADAPTORS_FILE@ Adaptors
package</a><br>
<a target="information" href="../bbdoc/index-category.html">List by
-category</a></font><br>
+category</a><br>
+
+<a target="information" href="../bbdoc/index-adaptors.html">List of adaptors</a></font><br>
<ul>
</ul>
Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/03/03 08:06:36 $
-Version: $Revision: 1.24 $
+Date: $Date: 2008/03/03 14:55:55 $
+Version: $Revision: 1.25 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
++j)
{
+ // Skip adaptors
+ if ( type==Adaptors )
+ {
+ if (j->second->GetKind() == BlackBoxDescriptor::STANDARD )
+ continue;
+ }
+ else
+ if (j->second->GetKind() != BlackBoxDescriptor::STANDARD )
+ continue;
+
std::vector<std::string> keys;
if (type==Packages)
{
keys.push_back(k);
title = "Boxes by package";
}
- else if (type==Initials)
+ else if ((type==Initials) || (type==Adaptors))
{
std::string init(" ");
init[0] = std::toupper(j->second->GetTypeName()[0]);
keys.push_back(" NONE");
title = "Boxes by category";
}
+
std::vector<std::string>::const_iterator k;
for (k=keys.begin(); k!=keys.end(); ++k )
Program: bbtk
Module: $RCSfile: bbtkFactory.h,v $
Language: C++
- Date: $Date: 2008/03/03 08:06:36 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2008/03/03 14:55:55 $
+ Version: $Revision: 1.9 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
{
Packages,
Categories,
- Initials
+ Initials,
+ Adaptors
}
IndexEntryType;
void CreateHtmlIndex(IndexEntryType type, const std::string& filename);
Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/03/03 11:43:52 $
- Version: $Revision: 1.38 $
+ Date: $Date: 2008/03/03 14:55:55 $
+ Version: $Revision: 1.39 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
info.argmax = 2;
info.code = cIndex;
- info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Categories']]";
- info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Categories' is provided then the entries are either the packages names or the categories";
+ info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Categories'|'Adaptors']]";
+ info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Categories' is provided then the entries are either the packages names or the categories. If 'Adaptors' is provided then an alphabetical index of all adaptors is created.";
mCommandDict[info.category] = info;
info.category = "reset"; //EED
if (type=="Initials") t = Factory::Initials;
else if (type=="Categories") t = Factory::Categories;
else if (type=="Packages") t = Factory::Packages;
+ else if (type=="Adaptors") t = Factory::Adaptors;
GetGlobalFactory()->CreateHtmlIndex(t,filename);
}
--- /dev/null
+description "Demo of the box <a href=#DoubleSlicer>DoubleSlicer</a>."
+author "laurent.guigues at creatis.insa-lyon.fr"
+category "example"
+
+include vtk/boxes/bbLoadHola
+include wxvtk/boxes/bbDoubleSlicer
+
+new LoadHola image1
+new LoadHola image2
+new DoubleSlicer viewer
+load itkvtk
+connect image1.Out viewer.In1
+connect image2.Out viewer.In2
+
+load std
+set viewer.WinTitle "ExampleDoubleSlicer"
+set viewer.WinWidth 600
+set viewer.WinHeight 400
+set viewer.Orientation 0
+
+exec viewer
+
--- /dev/null
+load std
+load wx
+load wxvtk
+
+define DoubleSlicer
+
+ description "Simple viewer displaying the same slice of two images. The slice is controlled by a slider. See <a href='#DemoDoubleSlicer'>DemoDoubleSlicer.bbs</a>. Screenshot : <center><img src='DemoDoubleSlicer.png'></center>"
+ author "laurent.guigues at creatis.insa-lyon.fr"
+
+ new LayoutLine main
+ new LayoutLine slicers
+ new Viewer2D slicer1
+ new Viewer2D slicer2
+ new Slider slider
+
+ connect slicers.Widget main.Widget1
+ connect slicer1.Widget slicers.Widget1
+ connect slicer2.Widget slicers.Widget2
+ connect slider.Widget main.Widget2
+ connect slider.Out slicer1.Slice
+ connect slider.Out slicer2.Slice
+
+
+ # WE NEED A MultipleInputs BOX TO CONNECT BOTH
+ # slider.BoxChange AND THE INPUT BoxExecuteSlicer1
+ # OF THE COMPLEX BOX TO slicer1.BoxExecute
+ # idem for slicer2
+ new MultipleInputs refresh1
+ new MultipleInputs refresh2
+ connect refresh1.Out slicer1.BoxExecute
+ connect refresh2.Out slicer2.BoxExecute
+
+ connect slider.BoxChange refresh2.In1
+ connect slider.BoxChange refresh1.In1
+
+# set main.Proportion 80
+ set slider.Title "Slice"
+
+ input In1 slicer1.In "Left (or top) image"
+ input In2 slicer2.In "Right (or bottom) image"
+
+ input WinTitle main.WinTitle "Title of the window"
+ input WinWidth main.WinWidth "Width of the window"
+ input WinHeight main.WinHeight "Width of the window"
+ input Orientation slicers.Orientation "Orientation of the images (0=Horizontal / 1=Vertical)"
+ input RefreshSlicer1 refresh1.In2 "Refreshes the first slicer"
+ input RefreshSlicer2 refresh2.In2 "Refreshes the second slicer"
+ input BoxProcessModeSlicer1 slicer1.BoxProcessMode "Process mode of the first slicer"
+ input BoxProcessModeSlicer2 slicer2.BoxProcessMode "Process mode of the second slicer"
+
+ output Widget main.Widget "Widget"
+
+# exec slicer1
+ exec main
+
+endefine
+