Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
c8f56df8
Commit
c8f56df8
authored
Apr 30, 2012
by
Alexander Wiebel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADD
#163
] skeleton for dipole reader
parent
7e07e48d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
246 additions
and
0 deletions
+246
-0
src/modules/modules-eeg.toolbox
src/modules/modules-eeg.toolbox
+1
-0
src/modules/readDipoles/WMReadDipoles.cpp
src/modules/readDipoles/WMReadDipoles.cpp
+85
-0
src/modules/readDipoles/WMReadDipoles.h
src/modules/readDipoles/WMReadDipoles.h
+115
-0
src/modules/readDipoles/WMReadDipoles.xpm
src/modules/readDipoles/WMReadDipoles.xpm
+45
-0
No files found.
src/modules/modules-eeg.toolbox
View file @
c8f56df8
ADD_MODULE( eegView )
ADD_MODULE( readDipoles )
src/modules/readDipoles/WMReadDipoles.cpp
0 → 100644
View file @
c8f56df8
//---------------------------------------------------------------------------
//
// 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
()
{
}
src/modules/readDipoles/WMReadDipoles.h
0 → 100644
View file @
c8f56df8
//---------------------------------------------------------------------------
//
// 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
src/modules/readDipoles/WMReadDipoles.xpm
0 → 100644
View file @
c8f56df8
/* 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",
"......... +@ ++@ ",
".......... @ + + @ ",
".. ... + + @ + ",
".. .. + ++ ++ + ",
".. ..# + + @@ @++ + + ",
".......... @ @ @+ + @ ",
"......... + + @@ + @ ",
".. .. + @++@ @ ",
".. ... + @ @+@++++ @ +",
".. ... + + @+@@ +",
".. ..+ @ + +@ + @ +",
".. ..$ + +@ + +",
".. .%& + @+ + @",
" + + + + @",
" @ + + + @ @",
" + @ @ + @ @",
" + + @ + + @",
" + @ + + @ +",
" @ + + + + @",
" + + + + @ +",
" @ * ++ + @",
" @ + = ++ @ + @",
" + @ @+@ @ +",
" @ + @++@ + + +",
" + + +@++@+ @ +",
" + @ +@+@ + ",
" + + + + + @ ",
" + ++ @+ + @ ",
" + ++@+@ @+@+ ",
" @ + + @ ",
" @ @ + ",
" + + +@ @@ "};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment