Commit 407d5387 by Alexander Wiebel

[CHANGE] renamed module to get consisten with "writeTracts" and "writeNIfTI"

.... writeMesh will follow
parent c5643cb3
......@@ -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
......
ADD_SUBDIRECTORY( exportGeometry )
ADD_SUBDIRECTORY( meshReader )
ADD_SUBDIRECTORY( readMesh )
ADD_SUBDIRECTORY( writeNIfTI )
#ADD_SUBDIRECTORY( writeTracts )
......@@ -30,48 +30,47 @@
#include "../../kernel/WKernel.h"
#include "../../graphicsEngine/WTriangleMesh.h"
#include "WMMeshReader.h"
#include "WMMeshReader.xpm"
#include "WMReadMesh.h"
#include "WMReadMesh.xpm"
// This line is needed by the module loader to actually find your module.
W_LOADABLE_MODULE( WMMeshReader )
W_LOADABLE_MODULE( WMReadMesh )
WMMeshReader::WMMeshReader():
WMReadMesh::WMReadMesh():
WModule()
{
}
WMMeshReader::~WMMeshReader()
WMReadMesh::~WMReadMesh()
{
// cleanup
removeConnectors();
}
boost::shared_ptr< WModule > WMMeshReader::factory() const
boost::shared_ptr< WModule > WMReadMesh::factory() const
{
// See "src/modules/template/" for an extensively documented example.
return boost::shared_ptr< WModule >( new WMMeshReader() );
return boost::shared_ptr< WModule >( new WMReadMesh() );
}
const char** WMMeshReader::getXPMIcon() const
const char** WMReadMesh::getXPMIcon() const
{
return meshreader_xpm;
return readMesh_xpm;
}
const std::string WMMeshReader::getName() const
const std::string WMReadMesh::getName() const
{
// Specify your module name here. This name must be UNIQUE!
return "Mesh Reader";
return "Read Mesh";
}
const std::string WMMeshReader::getDescription() const
const std::string WMReadMesh::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 triamgle mesh from a vtk file.";
return "Loads a triangle mesh from a vtk file.";
}
void WMMeshReader::connectors()
void WMReadMesh::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 WMMeshReader::properties()
void WMReadMesh::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 WMMeshReader::moduleMain()
void WMReadMesh::moduleMain()
{
m_moduleState.add( m_propCondition );
ready();
......@@ -112,7 +111,7 @@ void WMMeshReader::moduleMain()
}
}
boost::shared_ptr< WTriangleMesh > WMMeshReader::read()
boost::shared_ptr< WTriangleMesh > WMReadMesh::read()
{
namespace su = string_utils;
......
......@@ -22,8 +22,8 @@
//
//---------------------------------------------------------------------------
#ifndef WMMESHREADER_H
#define WMMESHREADER_H
#ifndef WMREADMESH_H
#define WMREADMESH_H
#include <string>
......@@ -45,19 +45,19 @@
*
* \ingroup modules
*/
class WMMeshReader: public WModule
class WMReadMesh: public WModule
{
public:
/**
*
*/
WMMeshReader();
WMReadMesh();
/**
*
*/
virtual ~WMMeshReader();
virtual ~WMReadMesh();
/**
* Gives back the name of this module.
......@@ -117,4 +117,4 @@ private:
WPropFilename m_meshFile; //!< The mesh will be read from this file.
};
#endif // WMMESHREADER_H
#endif // WMREADMESH_H
/* XPM */
static const char * meshreader_xpm[] = {
static const char * readMesh_xpm[] = {
"32 32 3 1",
" c None",
". c #7F6DC5",
......
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