//==========================================================================
void RegenerateDoc ( bbtk::Package::Pointer p, std::string& doc_path )
{
- std::string pack_name(p->GetName());
- std::string pack_path = doc_path + pack_name;
- // Creating directory
- if ( ! bbtk::Utilities::FileExists(pack_path) )
- {
- std::string command("mkdir \"" +pack_path+ "\"");
- system( command.c_str() );
- }
- std::string pack_index(pack_path);
- pack_index += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
- pack_index += "index.html";
-
- std::cout << "* Generating doc for package '"<<pack_name<<"' in "
- << pack_index << std::endl;
-
- p->SetDocURL(pack_index);
- p->SetDocRelativeURL("index.html");
- p->CreateHtmlPage(pack_index,"bbtk",pack_name,"","",0,0,false); //true);
+ std::string pack_name(p->GetName());
+ std::string pack_path = doc_path + pack_name;
+ // Creating directory
+ if ( ! bbtk::Utilities::FileExists(pack_path) )
+ {
+ std::string command("mkdir \"" +pack_path+ "\"");
+ system( command.c_str() );
+ }
+ std::string pack_index(pack_path);
+ pack_index += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
+ pack_index += "index.html";
+
+ std::cout << "* Generating doc for package '"<<pack_name<<"' in "
+ << pack_index << std::endl;
+
+ p->SetDocURL(pack_index);
+ p->SetDocRelativeURL("index.html");
+ p->CreateHtmlPage(pack_index,"bbtk",pack_name,"","",0,0,false); //true);
}
+void Usage()
+{
+ std::cout << "usage : bbRegeneratePackageDoc [<package name>|-a] [-q|-v]"
+ << std::endl
+ << " -a : All packages"<<std::endl
+ << " -q : Quiet"<<std::endl
+ << " -v : Verbose"<<std::endl;
+}
+
//==========================================================================
int main(int argc, char **argv)
{
else if (argc==3)
{
pack = std::string(argv[1]);
- bbtk::MessageManager::SetMessageLevel("max",0);
+ std::string param(argv[2]);
+ if (param=="-q") bbtk::MessageManager::SetMessageLevel("max",0);
+ else if (param=="-v") bbtk::MessageManager::SetMessageLevel("all",9);
+ else
+ {
+ Usage();
+ return 0;
+ }
}
else
{
- std::cout << "usage : bbRegeneratePackageDoc [<package name>|-a] [-quiet]" << std::endl;
+ Usage();
return 0;
}
INCLUDE(${VTK_USE_FILE})
ADD_DEF( _USE_VTK_ )
SET(BBTK_VTK_LIBRARIES
- # vtkCommon
- vtkImaging vtkGraphics vtkRendering vtkFiltering vtkCommon vtkWidgets
- vtkVolumeRendering
- # LG : removed vtkIO because conflict with itktiff lib in ITKIO
- )
+ vtkCommon # Mandatory
+ vtkFiltering # vtkImageData
+ vtkRendering # vtkProp3D
+ vtkWidgets # vtkImagePlaneWidget
+ vtkIO # vtkMetaImageReader/Writer
+ vtkImaging # filters such as vtkImageAnisotropicDiffusion3D
+ vtkGraphics # vtkContourFilter, sources
+ vtkVolumeRendering # Mappers
+# vtkGenericFiltering
+ )
MARK_AS_ADVANCED(VTK_DIR)
ELSE(VTK_FOUND)
message(FATAL_ERROR "VTK_DIR not found")
Enjoy !<br>
<br>
</span>
+<h2><a class="mozTocH3" name="mozTocId410988"></a><big><span
+ style="font-weight: normal;">Uninstall<br>
+</span></big></h2>
+ You can run <span style="font-style: italic;">bbtk-uninstall.sh</span>
+as root.<br>
+<span style="font-weight: bold;"> WARNING : </span><br
+ style="font-weight: bold;">
+ This is a brute force **UNSAFE**
+uninstaller which removes all files and folders starting with 'bb' in :<br>
+ INSTALL-PREFIX/bin <br>
+ INSTALL-PREFIX/lib <br>
+ INSTALL-PREFIX/include<br>
+ INSTALL-PREFIX/share/bbtk<br>
+ However it lists the files found and prompts you
+before proceeding...<br>
+<br>
+<br>
<hr style="width: 100%; height: 2px;">
<h1><a class="mozTocH2" name="mozTocId777026"></a><big><big><big><small><small><span
style="font-weight: normal;">Windows </span></small></small></big></big></big></h1>
+++ /dev/null
-description "t"
-
-
-include toolsbbtk/boxes/bbMakePackageDoc
-new MakePackageDoc makedoc
-input Package makedoc.Package "The name of the package"
-exec makedoc
-print $makedoc.Command$
--- /dev/null
+print "vtk..."
+load vtk
+print " - load ok"
+unload vtk
+print " - unload ok"
+
+print "std..."
+load std
+print " - load ok"
+unload std
+#message package 1
+print " - unload ok"
+
+print "wx..."
+load wx
+print " - load ok"
+unload wx
+print " - unload ok"
+
+
+print "wxvtk..."
+load wxvtk
+print " - load ok"
+unload wxvtk
+print " - unload ok"
+
+print "itk..."
+load itk
+print " - load ok"
+unload itk
+print " - unload ok"
+
+print "itkvtk..."
+load itkvtk
+print " - load ok"
+unload itkvtk
+print " - unload ok"
+
+print "done !"
+
+++ /dev/null
-
-include std
-
-define MakePackageDoc toolsbbtk
- description "Creates the html documentation of a package. The doc is generated at the 'canonical' location. Works both for a build tree or an installed toolkit."
- author "laurent.guigues at creatis.insa-lyon.fr"
- category "toolsbbtk"
-
- new StringRelay package
-
- input Package package.In "The name of the package"
- print "== Creating html doc for package $package.Out$ =="
-
- new ConcatStrings command
- set command.In1 "exec freeze; include "
- connect package.Out command.In2
- set command.In3 "; include "
- connect package.Out command.In4
- set command.In5 "-appli; graph "
- connect package.Out command.In6
- set command.In7 " 0 0 "
-
- new Configuration conf
- new ConcatStrings path
- connect conf.DocPath path.In1
- connect conf.FileSeparator path.In2
- set path.In3 "bbdoc"
- connect conf.FileSeparator path.In4
- connect package.Out path.In5
- connect conf.FileSeparator path.In6
-
- new ConcatStrings command2
- connect command.Out command2.In1
- connect path.Out command2.In2
- set command2.In3 "index.html "
- connect path.Out command2.In4
- set command2.In5 "header.html 'Package "
- connect package.Out command2.In6
- set command2.In7 " documentation'"
-
- output Command command2.Out "The command issued"
-
- new ExecBbiCommand exec
- connect command2.Out exec.In
-
- exec exec
-endefine