MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / position

Method position

src/openms_gui/source/VISUAL/MultiGradient.cpp:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 UInt MultiGradient::position(UInt index)
70 {
71 if (index > size() - 1)
72 {
73 throw IndexOverflow(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION);
74 }
75
76 map<double, QColor>::iterator it = pos_col_.begin();
77 for (Size i = 0; i < index; ++i)
78 {
79 ++it;
80 }
81 return it->first;
82 }
83
84 QColor MultiGradient::color(UInt index)
85 {

Callers 3

paintEventMethod · 0.45
mousePressEventMethod · 0.45
mouseDoubleClickEventMethod · 0.45

Calls 2

sizeFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected