<?xml version="1.0"?>

<!--DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN"
                         "http://Castor.exolab.org/mapping.dtd"-->

<mapping>

  <include href="mappings/yi.iu.processor.ort.ORTLine_map.xml"/>
  <include href="mappings/yi.iu.processor.ort.ORTPoint_map.xml"/>
  <include href="mappings/yi.iu.region.PolygonRegion_map.xml"/>
  
  <class name="yi.iu.processor.clc.LineClusterSets">

    <map-to xml="line-clusters"/>

    <field name="imageWidth" type="integer">
      <bind-xml node="attribute"/>
    </field>

    <field name="imageHeight" type="integer">
      <bind-xml node="attribute"/>
    </field>

    <field name="LineClusterSets" type="yi.iu.processor.clc.LineClusterSet" collection="map">
      <bind-xml name="line-cluster" node="element"/>
    </field>

  </class>
  
  <class name="yi.iu.processor.clc.LineClusterSet">

    <map-to xml="line-cluster"/>

	<field name="colorPair" type="yi.iu.processor.color.ColorPair">
	</field>

	<field name="baseLine" type="yi.iu.processor.ort.ORTLine">
	</field>

	<field name="convergingPoint" type="yi.iu.processor.ort.ORTPoint">
	</field>

    <field name="totalLen" type="double">
      <bind-xml node="attribute"/>
    </field>

    <field name="imageWidth" type="integer">
      <bind-xml node="attribute"/>
    </field>

    <field name="imageHeight" type="integer">
      <bind-xml node="attribute"/>
    </field>

    <field name="polygonRegion" type="yi.iu.region.PolygonRegion">
      <bind-xml name="region-desc"/>
    </field>

    <field name="lineClusterSet" type="yi.iu.processor.ort.ORTLine" collection="set">
      <bind-xml name="line" node="element"/>
    </field>


  </class>

  <class name="yi.iu.processor.color.ColorPair">
    <field name="x" direct="true">
      <bind-xml name="color1" node="attribute"/>
    </field>
    <field name="y" direct="true">
      <bind-xml name="color2" node="attribute"/>
    </field>
  </class>

</mapping>

