Commit 6bd841b6 authored by Alexander Wiebel's avatar Alexander Wiebel

[FIX] module compiles now. Will remove old code soon.

parent 6ea61cca
This directory is intended to serve as the place where one can compile this toolbox.
This .README file is in the build directory so that the directory will be recognized and created by mercurial (hg). Only remove it if you know what you are doing or if the behavior of mercurial concerning empty directories has changed.
\ No newline at end of file
......@@ -2,7 +2,7 @@
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV-Leipzig and CNCF-CBS
// Copyright 2013 OpenWalnut Community, BSV-Leipzig and CNCF-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
......@@ -34,46 +34,46 @@
#include "core/graphicsEngine/WGEManagedGroupNode.h"
#include "core/kernel/WKernel.h"
#include "core/kernel/WModuleInputData.h"
#include "WIsoLines.xpm" // Please put a real icon here.
#include "WMIsoLines.h"
#include "WMThresholdingExample.xpm"
#include "WMThresholdingExample.h"
WMIsoLines::WMIsoLines():
WMThresholdingExample::WMThresholdingExample():
WModule(),
m_propCondition( new WCondition() )
{
}
WMIsoLines::~WMIsoLines()
WMThresholdingExample::~WMThresholdingExample()
{
}
boost::shared_ptr< WModule > WMIsoLines::factory() const
boost::shared_ptr< WModule > WMThresholdingExample::factory() const
{
return boost::shared_ptr< WModule >( new WMIsoLines() );
return boost::shared_ptr< WModule >( new WMThresholdingExample() );
}
const char** WMIsoLines::getXPMIcon() const
const char** WMThresholdingExample::getXPMIcon() const
{
return WIsoLines_xpm; // Please put a real icon here.
}
const std::string WMIsoLines::getName() const
const std::string WMThresholdingExample::getName() const
{
return "Isoline";
return "[EDU] Thresholding Example";
}
const std::string WMIsoLines::getDescription() const
const std::string WMThresholdingExample::getDescription() const
{
return "Renders isolines in a specific color.";
return "Should draw values above some threshold.";
}
void WMIsoLines::connectors()
void WMThresholdingExample::connectors()
{
m_scalarIC = WModuleInputData< WDataSetScalar >::createAndAdd( shared_from_this(), "scalarData", "Scalar data." );
WModule::connectors();
}
void WMIsoLines::properties()
void WMThresholdingExample::properties()
{
// Put the code for your properties here. See "src/modules/template/" for an extensively documented example.
......@@ -94,7 +94,7 @@ void WMIsoLines::properties()
WModule::properties();
}
void WMIsoLines::requirements()
void WMThresholdingExample::requirements()
{
}
......@@ -165,7 +165,7 @@ namespace
}
}
void WMIsoLines::initOSG( boost::shared_ptr< WDataSetScalar > scalars, const double resolution )
void WMThresholdingExample::initOSG( boost::shared_ptr< WDataSetScalar > scalars, const double resolution )
{
debugLog() << "Init OSG";
m_output->clear();
......@@ -220,7 +220,7 @@ void WMIsoLines::initOSG( boost::shared_ptr< WDataSetScalar > scalars, const dou
m_output->dirtyBound();
}
void WMIsoLines::moduleMain()
void WMThresholdingExample::moduleMain()
{
// get notified about data changes
m_moduleState.setResetable( true, true );
......
......@@ -2,7 +2,7 @@
//
// Project: OpenWalnut ( http://www.openwalnut.org )
//
// Copyright 2009 OpenWalnut Community, BSV-Leipzig and CNCF-CBS
// Copyright 2013 OpenWalnut Community, BSV-Leipzig and CNCF-CBS
// For more information see http://www.openwalnut.org/copying
//
// This file is part of OpenWalnut.
......@@ -22,8 +22,8 @@
//
//---------------------------------------------------------------------------
#ifndef WMISOLINES_H
#define WMISOLINES_H
#ifndef WMTHRESHOLDINGEXAMPLE_H
#define WMTHRESHOLDINGEXAMPLE_H
#include <string>
......@@ -38,18 +38,18 @@ class WGEManagedGroupNode;
* Computes contour lines (aka isolines) for the given data and render them on a 2D plane.
* \ingroup modules
*/
class WMIsoLines: public WModule
class WMThresholdingExample: public WModule
{
public:
/**
* Creates the module for drawing contour lines.
*/
WMIsoLines();
WMThresholdingExample();
/**
* Destroys this module.
*/
virtual ~WMIsoLines();
virtual ~WMThresholdingExample();
/**
* Gives back the name of this module.
......@@ -149,4 +149,4 @@ private:
boost::shared_ptr< WCondition > m_propCondition;
};
#endif // WMISOLINES_H
#endif // WMTHRESHOLDINGEXAMPLE_H
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