class Colors(Enum): """Colors for a legend.""" annual_comfort = Colorset.annual_comfort() benefit = Colorset.benefit() benefit_harm = Colorset.benefit_harm() black_to_white = Colorset.black_to_white() blue_green_red = Colorset.blue_green_red() cloud_cover = Colorset.cloud_cover() cold_sensation = Colorset.cold_sensation() ecotect = Colorset.ecotect() energy_balance = Colorset.energy_balance() energy_balance_storage = Colorset.energy_balance_storage() glare_study = Colorset.glare_study() harm = Colorset.harm() heat_sensation = Colorset.heat_sensation() multi_colored = Colorset.multi_colored() multicolored_2 = Colorset.multicolored_2() multicolored_3 = Colorset.multicolored_3() nuanced = Colorset.nuanced() openstudio_palette = Colorset.openstudio_palette() original = Colorset.original() peak_load_balance = Colorset.peak_load_balance() shade_benefit = Colorset.shade_benefit() shade_benefit_harm = Colorset.shade_benefit_harm() shade_harm = Colorset.shade_harm() shadow_study = Colorset.shadow_study() therm = Colorset.therm() thermal_comfort = Colorset.thermal_comfort() view_study = Colorset.view_study()
'benefit_harm': Colorset.benefit_harm(), 'black_to_white': Colorset.black_to_white(), 'blue_green_red': Colorset.blue_green_red(), 'cloud_cover': Colorset.cloud_cover(), 'cold_sensation': Colorset.cold_sensation(), 'ecotect': Colorset.ecotect(), 'energy_balance': Colorset.energy_balance(), 'energy_balance_storage': Colorset.energy_balance_storage(), 'glare_study': Colorset.glare_study(), 'harm': Colorset.harm(), 'heat_sensation': Colorset.heat_sensation(), 'multi_colored': Colorset.multi_colored(), 'multicolored_2': Colorset.multicolored_2(), 'multicolored_3': Colorset.multicolored_3(), 'nuanced': Colorset.nuanced(), 'openstudio_palette': Colorset.openstudio_palette(), 'original': Colorset.original(), 'peak_load_balance': Colorset.peak_load_balance(), 'shade_benefit': Colorset.shade_benefit(), 'shade_benefit_harm': Colorset.shade_benefit_harm(), 'shade_harm': Colorset.shade_harm(), 'shadow_study': Colorset.shadow_study(), 'therm': Colorset.therm(), 'thermal_comfort': Colorset.thermal_comfort(), 'view_study': Colorset.view_study() } class Text: """Text parameters for the legend.
elif isinstance(hb_obj, Room): add_room(hb_obj) elif isinstance(hb_obj, Face): add_face(hb_obj) elif isinstance(hb_obj, Aperture): add_aperture(hb_obj) elif isinstance(hb_obj, Door): add_door(hb_obj) elif isinstance(hb_obj, Shade): if hb_obj.is_indoor: _indoor_shades.append(hb_obj.geometry) else: _outdoor_shades.append(hb_obj.geometry) # color all of the geometry with its respective surface type palette = Colorset.openstudio_palette() walls = from_face3ds_to_colored_mesh(_walls, palette[0]) \ if len(_walls) != 0 else None interior_walls = from_face3ds_to_colored_mesh(_interior_walls, palette[1]) \ if len(_interior_walls) != 0 else None roofs = from_face3ds_to_colored_mesh(_roofs, palette[3]) \ if len(_roofs) != 0 else None ceilings = from_face3ds_to_colored_mesh(_ceilings, palette[4]) \ if len(_ceilings) != 0 else None exterior_floors = from_face3ds_to_colored_mesh(_exterior_floors, palette[6]) \ if len(_exterior_floors) != 0 else None interior_floors = from_face3ds_to_colored_mesh(_interior_floors, palette[7]) \ if len(_interior_floors) != 0 else None air_walls = from_face3ds_to_colored_mesh(_air_walls, palette[12]) \ if len(_air_walls) != 0 else None apertures = from_face3ds_to_colored_mesh(_apertures, palette[9]) \