Commit 65845528 authored by Tobias Neeb's avatar Tobias Neeb
Browse files

[CLEAN 736] remove unnecessary code and comments in triangle

parent c480edf2
......@@ -33,6 +33,7 @@ WTransferFunction2DTriangle::WTransferFunction2DTriangle( QPointF left, QPointF
m_left = left;
m_mid = mid;
m_right = right;
QVector<QPointF> points
{
m_left,
......@@ -42,56 +43,6 @@ WTransferFunction2DTriangle::WTransferFunction2DTriangle( QPointF left, QPointF
m_triangle = QPolygonF( points );
}
/* void WTransferFunction2DTriangle::reassignPoints()
{
QPointF low, mid, high;
if (m_left.x() <= m_mid.x() && m_left.x() <= m_right.x())
{
low = m_left;
if (m_mid.x() <= m_right.x())
{
mid = m_mid;
high = m_right;
}
else
{
mid = m_right;
high = m_mid;
}
}
else if (m_mid.x() <= m_left.x() && m_mid.x() <= m_right.x())
{
low = m_mid;
if (m_left.x() <= m_right.x())
{
mid = m_left;
high = m_right;
}
else
{
mid = m_right;
high = m_left;
}
}
else
{
low = m_right;
if (m_left.x() <= m_mid.x())
{
mid = m_left;
high = m_mid;
}
else
{
mid = m_mid;
high = m_left;
}
}
m_left = low;
m_mid = mid;
m_right = high;
}*/
WTransferFunction2DTriangle::~WTransferFunction2DTriangle()
{
}
......@@ -26,7 +26,7 @@
#define WTRANSFERFUNCTION2DTRIANGLE_H
#include "QPolygonF"
#include "core/common/WLogger.h"
/**
* (WIP) A class for creating a triangle that is used in creating TriangleWidgets for the 2D-TransferFunction Module.
......@@ -136,14 +136,6 @@ class WTransferFunction2DTriangle
m_right = m_triangle[2];
}
/**
* @brief reassigns the points based on their x-coordinate
* left -> point with lowest x-coordinate
* right -> point with highest x-coordinate
*
*/
void reassignPoints();
private:
/** QPoint which presents the "left" triangle point*/
QPointF m_left;
......
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