# import bpy
# import random
# import math
# import pickle
# # from .general import DirectionalPoint2d, Rect2d, DirectionalPoints2dCollection
# # from ..utils import définirPixel
# from bpy.types import Node
# from .. import CityNodeTreeNode
#
#
# class ImageMapNode(Node, CityNodeTreeNode):
# 	bl_label = 'Image map'
# 	image_datablock_name = bpy.props.StringProperty(
# 		name='Image name',
# 		description='', )
# 	image_channel_to_use = bpy.props.EnumProperty(
# 		name='Channel to use',
# 		description='',
# 		items=[
# 			('R', 'Red', '', 1),
# 			('G', 'Green', '', 2),
# 			('B', 'Blue', '', 3),
# 			('A', 'Alpha', '', 4),
# 		])
# 	pickled_datablock = bpy.props.StringProperty()
#
# 	def init(self, context):
# 		self.width = 300
# 		self.outputs.new('MapSocket', 'Map')
#
# 	def draw_buttons(self, context, layout):
# 		row = layout.row()
# 		row.prop(self, 'image_datablock_name', icon='FILE_IMAGE')
# 		row = layout.row()
# 		row.prop(self, 'image_channel_to_use')
#
# 	def update(self):
# 		pass
