|
KiCad PCB EDA Suite
|
#include <sim_plot_colors.h>
Public Types | |
| enum class | COLOR_SET { BACKGROUND , FOREGROUND , AXIS , TRACE } |
Public Member Functions | |
| SIM_PLOT_COLORS () | |
| ~SIM_PLOT_COLORS () | |
| wxColour | GetPlotColor (enum COLOR_SET aColorId) |
| wxColour | GenerateColor (std::map< wxString, wxColour > aTraceColors) |
Static Public Member Functions | |
| static void | FillDefaultColorList (bool aWhiteBg) |
| Fills m_colorList by a default set of colors. | |
Private Member Functions | |
| enum COLOR_SET | getPlotColorCount () |
Static Private Attributes | |
| static std::vector< wxColour > | m_colorList |
| < The color list to draw traces, bg, fg, axis... | |
Definition at line 42 of file sim_plot_colors.h.
|
strong |
| Enumerator | |
|---|---|
| BACKGROUND | |
| FOREGROUND | |
| AXIS | |
| TRACE | |
Definition at line 49 of file sim_plot_colors.h.
|
inline |
Definition at line 45 of file sim_plot_colors.h.
|
inline |
Definition at line 46 of file sim_plot_colors.h.
|
static |
Fills m_colorList by a default set of colors.
| aWhiteBg | = true to use a white (or clear) background false to use a dark background |
Definition at line 95 of file sim_plot_colors.cpp.
References m_colorList.
Referenced by SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI(), and SIMULATOR_FRAME_UI::ToggleDarkModePlots().
| wxColour SIM_PLOT_COLORS::GenerateColor | ( | std::map< wxString, wxColour > | aTraceColors | ) |
| a | collection of traces in the plot panel |
Definition at line 132 of file sim_plot_colors.cpp.
References GetPlotColor(), getPlotColorCount(), and TRACE.
| wxColour SIM_PLOT_COLORS::GetPlotColor | ( | enum COLOR_SET | aColorId | ) |
| aColorId | is the index in color list |
Definition at line 85 of file sim_plot_colors.cpp.
References m_colorList.
Referenced by GenerateColor().
|
inlineprivate |
Definition at line 80 of file sim_plot_colors.h.
References m_colorList.
Referenced by GenerateColor().
|
staticprivate |
< The color list to draw traces, bg, fg, axis...
Definition at line 84 of file sim_plot_colors.h.
Referenced by FillDefaultColorList(), GetPlotColor(), and getPlotColorCount().