29#include <wx/stc/stc.h>
37 return static_cast<int>( x ) <
static_cast<int>( y );
43 return static_cast<int>( x ) >=
static_cast<int>( y );
49 return static_cast<int>( x ) < y;
55 return static_cast<int>( x ) >= y;
88 if( aColorId >= 0 && aColorId <
m_colorList.size() )
91 return wxColour( 0, 0, 0 );
136 bool hasColor =
false;
138 for(
const auto& [ vectorName, traceColor ] : aTraceColors )
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 GenerateColor(std::map< wxString, wxColour > aTraceColors)
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.