21 #ifndef GUIColorScheme_h
22 #define GUIColorScheme_h
51 const std::string& colName =
"",
const bool isFixed =
false)
65 std::vector<std::string>::iterator nameIt =
myNames.begin();
66 std::vector<RGBColor>::iterator colIt =
myColors.begin();
67 for (; nameIt !=
myNames.end(); ++nameIt, ++colIt) {
68 if (*nameIt == name) {
77 std::vector<RGBColor>::iterator colIt =
myColors.begin();
78 std::vector<SUMOReal>::iterator threshIt =
myThresholds.begin();
79 std::vector<std::string>::iterator nameIt =
myNames.begin();
81 while (threshIt !=
myThresholds.end() && (*threshIt) < threshold) {
110 std::vector<RGBColor>::const_iterator colIt =
myColors.begin() + 1;
111 std::vector<SUMOReal>::const_iterator threshIt =
myThresholds.begin() + 1;
112 while (threshIt !=
myThresholds.end() && (*threshIt) <= value) {
166 dev <<
" <colorScheme name=\"" <<
myName;
171 std::vector<RGBColor>::const_iterator colIt =
myColors.begin();
172 std::vector<SUMOReal>::const_iterator threshIt =
myThresholds.begin();
173 std::vector<std::string>::const_iterator nameIt =
myNames.begin();
175 dev <<
" <entry color=\"" << (*colIt);
177 dev <<
"\" threshold=\"" << (*threshIt);
179 if ((*nameIt) !=
"") {
180 dev <<
"\" name=\"" << (*nameIt);
187 dev <<
" </colorScheme>\n";