Commit c8f56df8 authored by Alexander Wiebel's avatar Alexander Wiebel

[ADD #163] skeleton for dipole reader

parent 7e07e48d
ADD_MODULE( eegView )
ADD_MODULE( readDipoles )
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV-Leipzig and CNCF-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#include <string>
#include "core/kernel/WKernel.h"
#include "modules/readDipoles/WMReadDipoles.xpm"
#include "WMReadDipoles.h"
// This line is needed by the module loader to actually find your module. Do not remove. Do NOT add a ";" here.
W_LOADABLE_MODULE( WMReadDipoles )
WMReadDipoles::WMReadDipoles():
WModule()
{
}
WMReadDipoles::~WMReadDipoles()
{
// Cleanup!
}
boost::shared_ptr< WModule > WMReadDipoles::factory() const
{
return boost::shared_ptr< WModule >( new WMReadDipoles() );
}
const char** WMReadDipoles::getXPMIcon() const
{
return WMReadDipoles_xpm; // Please put a real icon here.
}
const std::string WMReadDipoles::getName() const
{
return "Read Dipoles";
}
const std::string WMReadDipoles::getDescription() const
{
return "Reading \".dip\" files containing position and additional information on dipoles reconstructed from EEG..";
}
void WMReadDipoles::connectors()
{
// Put the code for your connectors here. See "src/modules/template/" for an extensively documented example.
WModule::connectors();
}
void WMReadDipoles::properties()
{
// Put the code for your properties here. See "src/modules/template/" for an extensively documented example.
alex =true;
WModule::properties();
}
void WMReadDipoles::requirements()
{
// Put the code for your requirements here. See "src/modules/template/" for an extensively documented example.
}
void WMReadDipoles::moduleMain()
{
}
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV-Leipzig and CNCF-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
//
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
#ifndef WMREADDIPOLES_H
#define WMREADDIPOLES_H
#include <string>
#include <osg/Geode>
#include "core/kernel/WModule.h"
#include "core/kernel/WModuleInputData.h"
#include "core/kernel/WModuleOutputData.h"
/**
* Someone should add some documentation here.
* Probably the best person would be the module's
* creator, i.e. "wiebel".
*
* This is only an empty template for a new module. For
* an example module containing many interesting concepts
* and extensive documentation have a look at "src/modules/template"
*
* \ingroup modules
*/
class WMReadDipoles: public WModule
{
public:
/**
*
*/
WMReadDipoles();
/**
*
*/
virtual ~WMReadDipoles();
/**
* Gives back the name of this module.
* \return the module's name.
*/
virtual const std::string getName() const;
/**
* Gives back a description of this module.
* \return description to module.
*/
virtual const std::string getDescription() const;
/**
* Due to the prototype design pattern used to build modules, this method returns a new instance of this method. NOTE: it
* should never be initialized or modified in some other way. A simple new instance is required.
*
* \return the prototype used to create every module in OpenWalnut.
*/
virtual boost::shared_ptr< WModule > factory() const;
/**
* Get the icon for this module in XPM format.
*
* \return The icon.
*/
virtual const char** getXPMIcon() const;
protected:
/**
* Entry point after loading the module. Runs in separate thread.
*/
virtual void moduleMain();
/**
* Initialize the connectors this module is using.
*/
virtual void connectors();
/**
* Initialize the properties for this module.
*/
virtual void properties();
/**
* Initialize requirements for this module.
*/
virtual void requirements();
private:
bool alex;
};
#endif // WMREADDIPOLES_H
/* XPM */
static const char * WMReadDipoles_xpm[] = {
"32 32 10 1",
" c None",
". c #000000",
"+ c #0000FF",
"@ c #0000FE",
"# c #000001",
"$ c #000092",
"% c #000099",
"& c #00003E",
"* c #0504FC",
"= c #0605FB",
"......... +@ ++@ ",
".......... @ + + @ ",
".. ... + + @ + ",
".. .. + ++ ++ + ",
".. ..# + + @@ @++ + + ",
".......... @ @ @+ + @ ",
"......... + + @@ + @ ",
".. .. + @++@ @ ",
".. ... + @ @+@++++ @ +",
".. ... + + @+@@ +",
".. ..+ @ + +@ + @ +",
".. ..$ + +@ + +",
".. .%& + @+ + @",
" + + + + @",
" @ + + + @ @",
" + @ @ + @ @",
" + + @ + + @",
" + @ + + @ +",
" @ + + + + @",
" + + + + @ +",
" @ * ++ + @",
" @ + = ++ @ + @",
" + @ @+@ @ +",
" @ + @++@ + + +",
" + + +@++@+ @ +",
" + @ +@+@ + ",
" + + + + + @ ",
" + ++ @+ + @ ",
" + ++@+@ @+@+ ",
" @ + + @ ",
" @ @ + ",
" + + +@ @@ "};
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