MapFeatureItem
=================

.. currentmodule:: axioma.gui

.. class:: MapFeatureItem

	Элемент окна для карты

	Унаследован от: :class:`~axioma.gui.Item`

		.. py:method:: MapFeatureItem(layer, originalFeature, feature, viewport)

			Конструктор

			:param layer: Базовый слой, к которому относится объект
			:type layer: :class:`~axioma.render.TableLayer`
			:param originalFeature: Исходный объект
			:type originalFeature: :class:`~axioma.core.dp.Feature`
			:param feature: Измененный объект
			:type feature: :class:`~axioma.core.dp.Feature`
			:param viewport: Ссылка на текущий Viewport
			:type viewport: :class:`~axioma.render.MapViewport`
 
		.. py:method:: layer()

			Базовый слой, к которому относится объект

			:return: Слой
			:rtype: :class:`~axioma.render.TableLayer`

		.. py:method:: table()

			Таблица, к которой относится объект

			:return: Таблица
			:rtype: :class:`~axioma.core.dp.Table`

		.. py:method:: feature()

			Исходный объект

			:return: Объект
			:rtype: :class:`~axioma.core.dp.Feature`

		.. py:method:: originalFeature()

			Измененный объект

			:return: Объект
			:rtype: :class:`~axioma.core.dp.Feature`

		.. py:method:: updateFeature(feature)
		
			.. deprecated:: 2.1.0

			Обновление объекта. Изменяется объект, возвращаемый методом feature(). Оригинальное значение originalFeature() остается неизменным

			:param feature: Новое значение
			:type feature: :class:`~axioma.core.dp.Feature`

		.. py:method:: geometryAttributeName()

			Наименование геометрического поля в таблице

			:return: Имя поля
			:rtype: :class:`str`

		.. py:method:: renditionAttributeName()

			Наименование поля в таблице, содержащий оформление геометрии

			:return: Имя поля
			:rtype: :class:`str`

		.. py:method:: screenGeometry()

			Геометрия в координатах экрана

			:return: Геометрия
			:rtype: :class:`~axioma.core.geometry.Geometry`

		.. py:staticmethod:: repairFeatures(features, table)

			Восстановить данные элементов

			:param features: Элементы для восстановления
			:type features: :class:`list` [:class:`~axioma.core.dp.Feature`]
			:param table: Таблица, которой принадлежат элементы
			:type table: :class:`~axioma.core.dp.Table`
			:return: Восстановленные данные
			:rtype: :class:`list` [:class:`~axioma.core.dp.Feature`]
