28#include <wx/stc/stc.h>
36 return static_cast<int>( x ) <
static_cast<int>( y );
42 return static_cast<int>( x ) >=
static_cast<int>( y );
48 return static_cast<int>( x ) < y;
54 return static_cast<int>( x ) >= y;
87 if( aColorId >= 0 && aColorId <
m_colorList.size() )
90 return wxColour( 0, 0, 0 );
137 bool hasColor =
false;
139 for(
auto& t : aTraces )
141 TRACE* trace = t.second;
wxColour GenerateColor(std::map< wxString, TRACE * > aTraces)
wxColour GetPlotColor(enum COLOR_SET aColorId)
enum COLOR_SET getPlotColorCount()
static std::vector< wxColour > m_colorList
The color list to draw traces, bg, fg, axis...
static void FillDefaultColorList(bool aWhiteBg)
Fills m_colorList by a default set of colors.
wxColour GetTraceColour()
bool operator<(SIM_PLOT_COLORS::COLOR_SET &x, SIM_PLOT_COLORS::COLOR_SET &y)
bool operator>=(SIM_PLOT_COLORS::COLOR_SET &x, SIM_PLOT_COLORS::COLOR_SET &y)
SIM_PLOT_COLORS::COLOR_SET & operator++(SIM_PLOT_COLORS::COLOR_SET &x)
SIM_PLOT_COLORS::COLOR_SET operator+(SIM_PLOT_COLORS::COLOR_SET x, SIM_PLOT_COLORS::COLOR_SET y)
SIM_PLOT_COLORS::COLOR_SET operator%(int x, SIM_PLOT_COLORS::COLOR_SET y)
SIM_PLOT_COLORS::COLOR_SET operator-(SIM_PLOT_COLORS::COLOR_SET x, SIM_PLOT_COLORS::COLOR_SET y)
Class is responsible for providing colors for traces on simulation plot.