Commit ce8e2e7f by Alexander Wiebel

[STYLE #364] icons and comments

parent b6faa153
Pipeline #241 passed with stages
in 35 minutes 20 seconds
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2015-2017 OpenWalnut Community, Nemtics, BSV@Uni-Leipzig
// 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/>.
//
//---------------------------------------------------------------------------
// An extensively commented example of a META file can be
// found in src/modules/template/resources
"Calculate Tensors"
{
icon="WMCalculateTensors.png";
website = "http://www.openwalnut.org";
description = "Calculates diffusion tensors from an input sh dataset.";
author = "OpenWalnut Project";
"OpenWalnut Project"
{
url="http://www.openwalnut.org";
email="contact@openwalnut.org";
what="Development, adaption to style and bug fixing";
};
};
......@@ -33,6 +33,7 @@
#include <core/kernel/WKernel.h>
#include "WMFiberResampling.h"
#include "WMFiberResampling.xpm"
#include "WResampleByMaxPoints.h"
#include "WResampleByNumPoints.h"
#include "WResampleBySegLength.h"
......@@ -60,6 +61,11 @@ boost::shared_ptr< WModule > WMFiberResampling::factory() const
return boost::shared_ptr< WModule >( new WMFiberResampling() );
}
const char** WMFiberResampling::getXPMIcon() const
{
return WMFiberResampling_xpm;
}
const std::string WMFiberResampling::getName() const
{
return "Fiber Re-Sampling";
......
......@@ -73,6 +73,12 @@ public:
*/
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.
......@@ -107,4 +113,3 @@ private:
};
#endif // WMFIBERRESAMPLING_H
......@@ -62,7 +62,7 @@ const std::string WMFibersToPoints::getName() const
const std::string WMFibersToPoints::getDescription() const
{
return "This module converts fiber data to points by using the fiber vertex points and colors..";
return "This module converts fiber data to points by using the fiber vertex points and colors.";
}
void WMFibersToPoints::connectors()
......
//---------------------------------------------------------------------------
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2015-2017 OpenWalnut Community, Nemtics, BSV@Uni-Leipzig
// 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/>.
//
//---------------------------------------------------------------------------
// An extensively commented example of a META file can be
// found in src/modules/template/resources
"Fibers To Points"
{
icon="WMFibersToPoints.png";
website = "http://www.openwalnut.org";
description = "This module converts mesh data to points by using the mesh vertex points and colors.";
author = "OpenWalnut Project";
"OpenWalnut Project"
{
url="http://www.openwalnut.org";
email="contact@openwalnut.org";
what="Development, adaption to style and bug fixing";
};
};
......@@ -62,7 +62,7 @@ const std::string WMSampleOnFibers::getName() const
const std::string WMSampleOnFibers::getDescription() const
{
return "This module allows you to sample points on fibers using the parameters on ea fiber.";
return "This module allows you to sample points on fibers using the parameters on a fiber.";
}
void WMSampleOnFibers::connectors()
......
......@@ -32,7 +32,7 @@
{
// Provide an icon. If the icon exists, it overrides the one provided by your
// getXPMIcon method. This path is relative to your module's resource directory.
// icon="icon.png";
icon="WMSampleOnFibers.png";
// Where to find the module?
website = "http://www.openwalnut.org";
......
......@@ -28,6 +28,7 @@
#include "core/dataHandler/WDataSetVector.h"
#include "core/kernel/WKernel.h"
#include "WMVectorAlign.h"
#include "WMVectorAlign.xpm"
// This line is needed by the module loader to actually find your module. Do not remove. Do NOT add a ";" here.
W_LOADABLE_MODULE( WMVectorAlign )
......@@ -48,7 +49,7 @@ boost::shared_ptr< WModule > WMVectorAlign::factory() const
const char** WMVectorAlign::getXPMIcon() const
{
return NULL; // Please put a real icon here.
return WMVectorAlign_xpm; // Please put a real icon here.
}
const std::string WMVectorAlign::getName() const
......
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