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
407d5387
Commit
407d5387
authored
Oct 07, 2010
by
Alexander Wiebel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHANGE] renamed module to get consisten with "writeTracts" and "writeNIfTI"
.... writeMesh will follow
parent
c5643cb3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
27 deletions
+26
-27
doc/user/walnut.cfg.mpi
doc/user/walnut.cfg.mpi
+1
-1
src/modules/modules-io.toolbox
src/modules/modules-io.toolbox
+1
-1
src/modules/readMesh/CMakeLists.txt
src/modules/readMesh/CMakeLists.txt
+0
-0
src/modules/readMesh/WMReadMesh.cpp
src/modules/readMesh/WMReadMesh.cpp
+17
-18
src/modules/readMesh/WMReadMesh.h
src/modules/readMesh/WMReadMesh.h
+6
-6
src/modules/readMesh/WMReadMesh.xpm
src/modules/readMesh/WMReadMesh.xpm
+1
-1
src/modules/readMesh/readMesh.png
src/modules/readMesh/readMesh.png
+0
-0
No files found.
doc/user/walnut.cfg.mpi
View file @
407d5387
...
...
@@ -12,7 +12,7 @@ allowOnlyOneFiberDataSet = yes # This will prevent you from accidently loading m
# default=HUD
## A list of modules that will be provided through the GUI.
## If the list is empty all available modules are provided.
whiteList = Arbitrary Plane,Coordinate System,Image Extractor,Paint Texture,Arbitrary Rois,Bounding Box,Distance Map Isosurface,Gauss Filtering,HUD,Isosurface,Isosurface Raytracer,LIC,
Mesh Reader
,Voxelizer,Superquadric Glyphs,Triangle Mesh Renderer,Vector Plot,Write NIfTI
whiteList = Arbitrary Plane,Coordinate System,Image Extractor,Paint Texture,Arbitrary Rois,Bounding Box,Distance Map Isosurface,Gauss Filtering,HUD,Isosurface,Isosurface Raytracer,LIC,
Read Mesh
,Voxelizer,Superquadric Glyphs,Triangle Mesh Renderer,Vector Plot,Write NIfTI
## Specify a ";" separated list of additional paths for modules. The order of appearance is the order of loading. The following additional rules apply here:
## 1. if the directory contains one or more libOWmodule_XYZ it/they get loaded
...
...
src/modules/modules-io.toolbox
View file @
407d5387
ADD_SUBDIRECTORY( exportGeometry )
ADD_SUBDIRECTORY(
meshReader
)
ADD_SUBDIRECTORY(
readMesh
)
ADD_SUBDIRECTORY( writeNIfTI )
#ADD_SUBDIRECTORY( writeTracts )
src/modules/
meshReader
/CMakeLists.txt
→
src/modules/
readMesh
/CMakeLists.txt
View file @
407d5387
File moved
src/modules/
meshReader/WMMeshReader
.cpp
→
src/modules/
readMesh/WMReadMesh
.cpp
View file @
407d5387
...
...
@@ -30,48 +30,47 @@
#include "../../kernel/WKernel.h"
#include "../../graphicsEngine/WTriangleMesh.h"
#include "WM
MeshReader
.h"
#include "WM
MeshReader
.xpm"
#include "WM
ReadMesh
.h"
#include "WM
ReadMesh
.xpm"
// This line is needed by the module loader to actually find your module.
W_LOADABLE_MODULE
(
WM
MeshReader
)
W_LOADABLE_MODULE
(
WM
ReadMesh
)
WM
MeshReader
::
WMMeshReader
()
:
WM
ReadMesh
::
WMReadMesh
()
:
WModule
()
{
}
WM
MeshReader
::~
WMMeshReader
()
WM
ReadMesh
::~
WMReadMesh
()
{
// cleanup
removeConnectors
();
}
boost
::
shared_ptr
<
WModule
>
WM
MeshReader
::
factory
()
const
boost
::
shared_ptr
<
WModule
>
WM
ReadMesh
::
factory
()
const
{
// See "src/modules/template/" for an extensively documented example.
return
boost
::
shared_ptr
<
WModule
>
(
new
WM
MeshReader
()
);
return
boost
::
shared_ptr
<
WModule
>
(
new
WM
ReadMesh
()
);
}
const
char
**
WM
MeshReader
::
getXPMIcon
()
const
const
char
**
WM
ReadMesh
::
getXPMIcon
()
const
{
return
meshreader
_xpm
;
return
readMesh
_xpm
;
}
const
std
::
string
WM
MeshReader
::
getName
()
const
const
std
::
string
WM
ReadMesh
::
getName
()
const
{
// Specify your module name here. This name must be UNIQUE!
return
"Mesh Reader"
;
return
"Read Mesh"
;
}
const
std
::
string
WM
MeshReader
::
getDescription
()
const
const
std
::
string
WM
ReadMesh
::
getDescription
()
const
{
// Specify your module description here. Be detailed. This text is read by the user.
// See "src/modules/template/" for an extensively documented example.
return
"Loads a tria
m
gle mesh from a vtk file."
;
return
"Loads a tria
n
gle mesh from a vtk file."
;
}
void
WM
MeshReader
::
connectors
()
void
WM
ReadMesh
::
connectors
()
{
m_output
=
boost
::
shared_ptr
<
WModuleOutputData
<
WTriangleMesh
>
>
(
new
WModuleOutputData
<
WTriangleMesh
>
(
shared_from_this
(),
"mesh"
,
"The loaded mesh."
)
);
...
...
@@ -81,7 +80,7 @@ void WMMeshReader::connectors()
WModule
::
connectors
();
}
void
WM
MeshReader
::
properties
()
void
WM
ReadMesh
::
properties
()
{
// Put the code for your properties here. See "src/modules/template/" for an extensively documented example.
...
...
@@ -94,7 +93,7 @@ void WMMeshReader::properties()
WModule
::
properties
();
}
void
WM
MeshReader
::
moduleMain
()
void
WM
ReadMesh
::
moduleMain
()
{
m_moduleState
.
add
(
m_propCondition
);
ready
();
...
...
@@ -112,7 +111,7 @@ void WMMeshReader::moduleMain()
}
}
boost
::
shared_ptr
<
WTriangleMesh
>
WM
MeshReader
::
read
()
boost
::
shared_ptr
<
WTriangleMesh
>
WM
ReadMesh
::
read
()
{
namespace
su
=
string_utils
;
...
...
src/modules/
meshReader/WMMeshReader
.h
→
src/modules/
readMesh/WMReadMesh
.h
View file @
407d5387
...
...
@@ -22,8 +22,8 @@
//
//---------------------------------------------------------------------------
#ifndef WM
MESHREADER
_H
#define WM
MESHREADER
_H
#ifndef WM
READMESH
_H
#define WM
READMESH
_H
#include <string>
...
...
@@ -45,19 +45,19 @@
*
* \ingroup modules
*/
class
WM
MeshReader
:
public
WModule
class
WM
ReadMesh
:
public
WModule
{
public:
/**
*
*/
WM
MeshReader
();
WM
ReadMesh
();
/**
*
*/
virtual
~
WM
MeshReader
();
virtual
~
WM
ReadMesh
();
/**
* Gives back the name of this module.
...
...
@@ -117,4 +117,4 @@ private:
WPropFilename
m_meshFile
;
//!< The mesh will be read from this file.
};
#endif // WM
MESHREADER
_H
#endif // WM
READMESH
_H
src/modules/
meshReader/WMMeshReader
.xpm
→
src/modules/
readMesh/WMReadMesh
.xpm
View file @
407d5387
/* XPM */
static const char *
meshreader
_xpm[] = {
static const char *
readMesh
_xpm[] = {
"32 32 3 1",
" c None",
". c #7F6DC5",
...
...
src/modules/
meshReader/meshreader
.png
→
src/modules/
readMesh/readMesh
.png
View file @
407d5387
File moved
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