Commit e888544b authored by Robin Eschbach's avatar Robin Eschbach
Browse files

[FIX #143] change colors to be more appropriate for the color blind

parent 52bccdc7
......@@ -31,6 +31,9 @@
#include "WMPointConnector.h"
#include "WKeyboardHandler.h"
static const osg::Vec4 COLOR_SEL_POINT( 255.0 / 255.0, 190.0 / 255.0, 7.0 / 255.0, 1.0 );
static const osg::Vec4 COLOR_SEL_FIBER( 30.0 / 255.0, 136.0 / 255.0, 229.0 / 255.0, 1.0 );
W_LOADABLE_MODULE( WMPointConnector )
......@@ -235,12 +238,11 @@ void WMPointConnector::updatePoints()
size_t tmpIdx;
if( m_connectorData->getSelectedPoint( &tmpIdx ) && tmpIdx == idx )
{
color[0] = 0.0;
color[2] = 0.0;
color = COLOR_SEL_POINT;
}
else if( m_fiberHandler->getFiberOfPoint( vertex, &tmpIdx ) && m_fiberHandler->getSelectedFiber() == tmpIdx )
{
color[0] = 0.0;
color = COLOR_SEL_FIBER;
}
if( m_fiberHandler->isPointHidden( vertex ) )
{
......@@ -383,12 +385,12 @@ void WMPointConnector::updateOutput()
osg::Vec4 color( 0.0, 0.0, 0.0, 1.0 );
if( m_fiberHandler->getSelectedFiber() == idx )
{
color[1] = 1.0;
color = COLOR_SEL_FIBER;
}
if( m_fiberHandler->isHidden( idx ) )
{
color[3] = 0.0;
color[3] = 0.1;
}
for( size_t vIdx = 0; vIdx < fiber.size(); vIdx++ )
......
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