OpenWalnut  1.5.0dev
imageSpaceTensorLIC/WToolkit.cpp
1 //---------------------------------------------------------------------------
2 //
3 // Project: OpenWalnut ( http://www.openwalnut.org )
4 //
5 // Copyright 2009 OpenWalnut Community, BSV-Leipzig and CNCF-CBS
6 // For more information see http://www.openwalnut.org/copying
7 //
8 // This file is part of OpenWalnut.
9 //
10 // OpenWalnut is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // OpenWalnut is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
22 //
23 //---------------------------------------------------------------------------
24 
25 // This file's purpose is to provide a list of modules and additional extensions as entry point for OpenWalnut's module loader.
26 // Both functAdd your modules here. If you miss this step, OpenWalnut will not be able to load your modules/extensions.
27 
28 #include <memory>
29 
30 #include <core/kernel/WModule.h>
31 
32 #include "WMImageSpaceTensorLIC.h"
33 
34 /**
35  * This function is called by OpenWalnut, when loading your library to learn about the modules you provide. The function is called with a given
36  * list reference, where you add all of your modules. Modules which are not registered this way, cannot be used in OpenWalnut. As this is called
37  * before loading any project file or running any module, it is ensured that you can rely on the modules provided here in your project files and
38  * other modules.
39  *
40  * \note this function is optional. You can remove it if you do not need it.
41  *
42  * \param m the list of modules. Add you module instances into this list.
43  */
44 extern "C" void WLoadModule( WModuleList& m ) // NOLINT
45 {
46  // This line is needed by the module loader to actually find your module. You need to add this to your module too. Do NOT add a ";" here.
47  m.push_back( std::shared_ptr< WModule >( new WMImageSpaceTensorLIC ) );
48 }
49 
This module takes a second order symmetric tensor dataset and uses it to apply an image space based (...