<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
<!--
# NeXus - Neutron and X-ray Common Data Format
# 
# Copyright (C) 2008-2020 NeXus International Advisory Committee (NIAC)
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# For further information, see http://www.nexusformat.org
-->
<definition xmlns="http://definition.nexusformat.org/nxdl/3.1" category="base"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
    name="NXgeometry" 
	type="group" extends="NXobject"
	deprecated="as decided at 2014 NIAC meeting, convert to use :ref:`NXtransformations`"
	>
    <doc>
        legacy class - recommend to use :ref:`NXtransformations` now
        
        It is recommended that instances of :ref:`NXgeometry` be converted to 
        use :ref:`NXtransformations`.
        
        This is the description for a general position of a component. 
        It is recommended to name an instance of :ref:`NXgeometry` as "geometry"
        to aid in the use of the definition in simulation codes such as McStas.
        Also, in HDF, linked items must share the same name.
        However, it might not be possible or practical in all situations.
    </doc>
    <group type="NXshape">
        <doc>shape/size information of component</doc>
    </group>
    <group type="NXtranslation">
        <doc>translation of component</doc>
    </group>
    <group type="NXorientation">
        <doc>orientation of component</doc>
    </group>
    <field name="description">
        <doc>
            Optional description/label. Probably only present if we are
            an additional reference point for components rather than the
            location of a real component.
        </doc>
    </field>
    <field name="component_index" type="NX_INT">
        <doc>
	    Position of the component along the beam path. The sample is at 0, components upstream
	    have negative component_index, components downstream have positive
	    component_index.
        </doc>
    </field>
</definition>

