/*- ******************************************************************************* * Copyright (c) 2015 Diamond Light Source Ltd. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * This file was auto-generated from the NXDL XML definition. * Generated at: 2016-09-28T15:24:07.968+01:00 *******************************************************************************/ package org.eclipse.dawnsci.nexus; import org.eclipse.dawnsci.analysis.api.tree.DataNode; import org.eclipse.january.dataset.IDataset; /** * A simple pinhole. * For more complex geometries, :ref:`NXaperture` should be used. * * @version 1.0 */ public interface NXpinhole extends NXobject { public static final String NX_DEPENDS_ON = "depends_on"; public static final String NX_DIAMETER = "diameter"; /** * Points to the path of the last element in the geometry chain that places * this object in space. * When followed through that chain is supposed to end at an element depending * on "." i.e. the origin of the coordinate system. * If desired the location of the slit can also be described relative to * an NXbeam, which will allow a simple description of a non-centred pinhole. * <p> * <b>Type:</b> NX_CHAR * </p> * * @return the value. */ public IDataset getDepends_on(); /** * Points to the path of the last element in the geometry chain that places * this object in space. * When followed through that chain is supposed to end at an element depending * on "." i.e. the origin of the coordinate system. * If desired the location of the slit can also be described relative to * an NXbeam, which will allow a simple description of a non-centred pinhole. * <p> * <b>Type:</b> NX_CHAR * </p> * * @param depends_on the depends_on */ public DataNode setDepends_on(IDataset depends_on); /** * Points to the path of the last element in the geometry chain that places * this object in space. * When followed through that chain is supposed to end at an element depending * on "." i.e. the origin of the coordinate system. * If desired the location of the slit can also be described relative to * an NXbeam, which will allow a simple description of a non-centred pinhole. * <p> * <b>Type:</b> NX_CHAR * </p> * * @return the value. */ public String getDepends_onScalar(); /** * Points to the path of the last element in the geometry chain that places * this object in space. * When followed through that chain is supposed to end at an element depending * on "." i.e. the origin of the coordinate system. * If desired the location of the slit can also be described relative to * an NXbeam, which will allow a simple description of a non-centred pinhole. * <p> * <b>Type:</b> NX_CHAR * </p> * * @param depends_on the depends_on */ public DataNode setDepends_onScalar(String depends_on); /** * Size of the circular hole defining the transmitted beam size. * <p> * <b>Type:</b> NX_NUMBER * <b>Units:</b> NX_LENGTH * </p> * * @return the value. */ public IDataset getDiameter(); /** * Size of the circular hole defining the transmitted beam size. * <p> * <b>Type:</b> NX_NUMBER * <b>Units:</b> NX_LENGTH * </p> * * @param diameter the diameter */ public DataNode setDiameter(IDataset diameter); /** * Size of the circular hole defining the transmitted beam size. * <p> * <b>Type:</b> NX_NUMBER * <b>Units:</b> NX_LENGTH * </p> * * @return the value. */ public Number getDiameterScalar(); /** * Size of the circular hole defining the transmitted beam size. * <p> * <b>Type:</b> NX_NUMBER * <b>Units:</b> NX_LENGTH * </p> * * @param diameter the diameter */ public DataNode setDiameterScalar(Number diameter); }