mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 13:50:28 +01:00
[apps/escher] Share color selection for data (Red, blue, Green, Yellow)
This commit is contained in:
@@ -8,7 +8,6 @@ extern "C" {
|
||||
namespace Graph {
|
||||
|
||||
constexpr int CartesianFunctionStore::k_maxNumberOfFunctions;
|
||||
constexpr KDColor CartesianFunctionStore::k_defaultColors[k_maxNumberOfFunctions];
|
||||
constexpr const char * CartesianFunctionStore::k_functionNames[k_maxNumberOfFunctions];
|
||||
|
||||
CartesianFunctionStore::CartesianFunctionStore() :
|
||||
@@ -89,22 +88,6 @@ const char * CartesianFunctionStore::firstAvailableName() {
|
||||
return k_functionNames[0];
|
||||
}
|
||||
|
||||
const KDColor CartesianFunctionStore::firstAvailableColor() {
|
||||
for (int k = 0; k < k_maxNumberOfFunctions; k++) {
|
||||
int j = 0;
|
||||
while (j < m_numberOfFunctions) {
|
||||
if (m_functions[j].color() == k_defaultColors[k]) {
|
||||
break;
|
||||
}
|
||||
j++;
|
||||
}
|
||||
if (j == m_numberOfFunctions) {
|
||||
return k_defaultColors[k];
|
||||
}
|
||||
}
|
||||
return k_defaultColors[0];
|
||||
}
|
||||
|
||||
void CartesianFunctionStore::removeAll() {
|
||||
for (int i = 0; i < m_numberOfFunctions; i++) {
|
||||
CartesianFunction emptyFunction("", KDColorBlack);
|
||||
|
||||
Reference in New Issue
Block a user