@@ -286,14 +286,16 @@ GUIVisualizationTextSettings::show(const GUIGlObject* o) const {
286
286
// GUIVisualizationRainbowSettings - methods
287
287
// ---------------------------------------------------------------------------
288
288
289
- GUIVisualizationRainbowSettings::GUIVisualizationRainbowSettings (bool _hideMin, double _minThreshold, bool _hideMax, double _maxThreshold, bool _setNeutral, double _neutralThreshold, bool _fixRange) :
289
+ GUIVisualizationRainbowSettings::GUIVisualizationRainbowSettings (bool _hideMin, double _minThreshold, bool _hideMax, double _maxThreshold, bool _setNeutral,
290
+ double _neutralThreshold, bool _fixRange, int _rainbowScheme) :
290
291
hideMin(_hideMin),
291
292
minThreshold(_minThreshold),
292
293
hideMax(_hideMax),
293
294
maxThreshold(_maxThreshold),
294
295
setNeutral(_setNeutral),
295
296
neutralThreshold(_neutralThreshold),
296
297
fixRange(_fixRange),
298
+ rainbowScheme(_rainbowScheme),
297
299
colors(GUIVisualizationSettings::RAINBOW_SCHEMES[" classic" ])
298
300
{ }
299
301
@@ -306,7 +308,8 @@ GUIVisualizationRainbowSettings::operator==(const GUIVisualizationRainbowSetting
306
308
(maxThreshold == other.maxThreshold ) &&
307
309
(setNeutral == other.setNeutral ) &&
308
310
(neutralThreshold == other.neutralThreshold ) &&
309
- (fixRange == other.fixRange );
311
+ (fixRange == other.fixRange ) &&
312
+ (rainbowScheme == other.rainbowScheme );
310
313
}
311
314
312
315
@@ -325,6 +328,7 @@ GUIVisualizationRainbowSettings::print(OutputDevice& dev, const std::string& nam
325
328
dev.writeAttr (name + " SetNeutral" , setNeutral);
326
329
dev.writeAttr (name + " NeutralThreshold" , neutralThreshold);
327
330
dev.writeAttr (name + " FixRange" , fixRange);
331
+ dev.writeAttr (name + " RainbowScheme" , rainbowScheme);
328
332
}
329
333
330
334
@@ -586,7 +590,7 @@ GUIVisualizationSettings::GUIVisualizationSettings(const std::string& _name, boo
586
590
edgeData(" speed" ),
587
591
edgeDataID(" " ),
588
592
edgeDataScaling(" " ),
589
- edgeValueRainBow(false , 0 , false , 200 , false , 0 , false ),
593
+ edgeValueRainBow(false , 0 , false , 200 , false , 0 , false , 1 ),
590
594
vehicleQuality(0 ), showBlinker(true ),
591
595
drawLaneChangePreference(false ),
592
596
drawMinGap(false ),
@@ -622,7 +626,7 @@ GUIVisualizationSettings::GUIVisualizationSettings(const std::string& _name, boo
622
626
drawJunctionShape(true ),
623
627
drawCrossingsAndWalkingareas(true ),
624
628
junctionSize(1 ),
625
- junctionValueRainBow(false , 0 , false , 100 , false , 0 , false ),
629
+ junctionValueRainBow(false , 0 , false , 100 , false , 0 , false , 1 ),
626
630
addMode(0 ),
627
631
addSize(1 ),
628
632
addName(false , 60 , RGBColor(255 , 0 , 128 , 255 )),
@@ -643,7 +647,7 @@ GUIVisualizationSettings::GUIVisualizationSettings(const std::string& _name, boo
643
647
tazRelWidthExaggeration(1 ),
644
648
edgeRelWidthExaggeration(1 ),
645
649
relDataAttr(" count" ),
646
- dataValueRainBow(false , -100 , false , 100 , false , 0 , false ),
650
+ dataValueRainBow(false , -100 , false , 100 , false , 0 , false , 1 ),
647
651
show3DTLSLinkMarkers(true ),
648
652
show3DTLSDomes(true ),
649
653
generate3DTLSModels(false ),
0 commit comments