24 |
|
|
25 |
from Thuban.Model.classgen import \ |
from Thuban.Model.classgen import \ |
26 |
generate_uniform_distribution, generate_singletons, generate_quantiles, \ |
generate_uniform_distribution, generate_singletons, generate_quantiles, \ |
27 |
CustomRamp, GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp, \ |
CustomRamp, grey_ramp, red_ramp, green_ramp, blue_ramp, green_to_red_ramp, \ |
28 |
HotToColdRamp, FixedRamp |
HotToColdRamp, FixedRamp |
29 |
|
|
30 |
|
|
136 |
self.propPanel = None |
self.propPanel = None |
137 |
custom_ramp_panel = CustomRampPanel(self, layer.ShapeType()) |
custom_ramp_panel = CustomRampPanel(self, layer.ShapeType()) |
138 |
|
|
139 |
self.propCombo.Append(PROPCOMBOSTR_GREY, GreyRamp) |
self.propCombo.Append(PROPCOMBOSTR_GREY, grey_ramp) |
140 |
self.propCombo.Append(PROPCOMBOSTR_RED, RedRamp) |
self.propCombo.Append(PROPCOMBOSTR_RED, red_ramp) |
141 |
self.propCombo.Append(PROPCOMBOSTR_GREEN, GreenRamp) |
self.propCombo.Append(PROPCOMBOSTR_GREEN, green_ramp) |
142 |
self.propCombo.Append(PROPCOMBOSTR_BLUE, BlueRamp) |
self.propCombo.Append(PROPCOMBOSTR_BLUE, blue_ramp) |
143 |
self.propCombo.Append(PROPCOMBOSTR_GREEN2RED, GreenToRedRamp) |
self.propCombo.Append(PROPCOMBOSTR_GREEN2RED, green_to_red_ramp) |
144 |
self.propCombo.Append(PROPCOMBOSTR_HOT2COLD, HotToColdRamp()) |
self.propCombo.Append(PROPCOMBOSTR_HOT2COLD, HotToColdRamp()) |
145 |
self.propCombo.Append(PROPCOMBOSTR_CUSTOM, custom_ramp_panel) |
self.propCombo.Append(PROPCOMBOSTR_CUSTOM, custom_ramp_panel) |
146 |
|
|