Commit c502179c by Alexander Wiebel

[ADD #284] added mesh loading to whitelist

parent 08731bbb
......@@ -6,10 +6,13 @@ allowOnlyOneFiberDataSet = yes # This will prevent you from accidently loading m
[modules]
## use this to specify the default module to add during load.
## It is a comma seperated list. If this is not specified the default empty is assumed.
## It is a comma seperated list. If this is not specified the
## default empty is assumed.
## An example could be
# default="HUD"
whiteList ="Isosurface,Bounding Box,Direct Volume Rendering,Distance Map Isosurface,Gauss Filtering,HUD,Vector Plot,Write NIfTI" # A list of modules that will be provided through the GUI. If the list is empty all available modules are provided.
# default="HUD"
## A list of modules that will be provided through the GUI.
## If the list is empty all available modules are provided.
whiteList ="Isosurface,Bounding Box,Direct Volume Rendering,Distance Map Isosurface,Gauss Filtering,HUD,Vector Plot,Write NIfTI,Mesh Reader,Triangle Mesh Renderer"
[qt4gui]
# hideAxial = yes # hide the axial view widget
......
......@@ -58,6 +58,7 @@
#include "../modules/vectorPlot/WMVectorPlot.h"
#include "../modules/geometryGlyphs/WMGeometryGlyphs.h"
#include "../modules/arbitraryRois/WMArbitraryRois.h"
#include "../modules/meshReader/WMMeshReader.h"
#include "WModuleFactory.h"
#include "exceptions/WPrototypeNotUnique.h"
#include "exceptions/WPrototypeUnknown.h"
......@@ -114,6 +115,7 @@ void WModuleFactory::load()
m_prototypes.insert( boost::shared_ptr< WModule >( new WMVectorPlot() ) );
m_prototypes.insert( boost::shared_ptr< WModule >( new WMGeometryGlyphs() ) );
m_prototypes.insert( boost::shared_ptr< WModule >( new WMArbitraryRois() ) );
m_prototypes.insert( boost::shared_ptr< WModule >( new WMMeshReader() ) );
lock.unlock();
......
......@@ -29,6 +29,7 @@
#include "../../graphicsEngine/WTriangleMesh2.h"
#include "WMMeshReader.h"
#include "meshreader.xpm"
WMMeshReader::WMMeshReader():
WModule()
......@@ -47,6 +48,11 @@ boost::shared_ptr< WModule > WMMeshReader::factory() const
return boost::shared_ptr< WModule >( new WMMeshReader() );
}
const char** WMMeshReader::getXPMIcon() const
{
return meshreader_xpm;
}
const std::string WMMeshReader::getName() const
{
// Specify your module name here. This name must be UNIQUE!
......
......@@ -79,6 +79,11 @@ public:
*/
virtual boost::shared_ptr< WModule > factory() const;
/**
* Get the icon for this module in XPM format.
*/
virtual const char** getXPMIcon() const;
protected:
/**
......
/* XPM */
static const char * meshreader_xpm[] = {
"32 32 3 1",
" c None",
". c #7F6DC5",
"+ c #000000",
" ",
" .. ",
" ...... ..... ",
" .......... ...... .. ",
" ..... ............. .. ",
" .. ... ..... .. ",
" . .. ... .. ",
" . .. .... .. ",
" .. ... .. ... .. ",
" .. ... .. ... .. ",
" .. .. .. ... .. ",
" . .. . .. .. ",
" . .... .. .. ",
" .. ... .... ",
" ......................... ",
" ........ ... ....... ",
" .. ... .... ",
" .. .... .. .. ",
" . ... . .. .. ",
" .. ... . .. +.. ",
" .. ... .. .. ++. ",
" .. .. .. .. +++ ",
" . .. .. .. ++++ ",
" . .. +++++++++++++++ ",
" .. ... ++++++++++++++++",
" ..... ++++++++++++++++",
" .... .....++++++++++++++++",
" .. ........ +++++++++++++++ ",
" ........ ++++ ",
" ... +++ ",
" ++ ",
" + "};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment