All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated.docs.javadoc.org.eclipse.dawnsci.nexus.impl.NXoff_geometryImpl.html Maven / Gradle / Ivy






NXoff_geometryImpl (h5jan API)












org.eclipse.dawnsci.nexus.impl

Class NXoff_geometryImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<NodeLink>, GroupNode, Node, NXobject, NXoff_geometry


    public class NXoff_geometryImpl
    extends NXobjectImpl
    implements NXoff_geometry
    Geometry (shape) description. The format closely matches the Object File Format (OFF) which can be output by most CAD software. It can be used to describe the shape of any beamline component, including detectors. In the case of detectors it can be used to define the shape of a single pixel, or, if the pixel shapes are non-uniform, to describe the shape of the whole detector.
    See Also:
    Serialized Form
    • Field Detail

      • PERMITTED_CHILD_GROUP_CLASSES

        public static final java.util.Set<NexusBaseClass> PERMITTED_CHILD_GROUP_CLASSES
    • Constructor Detail

      • NXoff_geometryImpl

        public NXoff_geometryImpl()
      • NXoff_geometryImpl

        public NXoff_geometryImpl(long oid)
    • Method Detail

      • getNXclass

        public java.lang.Class<? extends NXobject> getNXclass()
        Description copied from interface: NXobject
        Java Class object of the interface for this base class, e.g. NXsample.class.
        Specified by:
        getNXclass in interface NXobject
        Returns:
        name of Nexus class
      • getVertices

        public IDataset getVertices()
        Description copied from interface: NXoff_geometry
        List of x,y,z coordinates for vertices. The origin of the coordinates is the position of the parent component, for example the NXdetector which the geometry describes. If the shape describes a single pixel for a detector with uniform pixel shape then the origin is the position of each pixel as described by the ``x/y/z_pixel_offset`` datasets in ``NXdetector``.

        Type: NX_NUMBER Units: NX_LENGTH Dimensions: 1: i; 2: 3;

        Specified by:
        getVertices in interface NXoff_geometry
        Returns:
        the value.
      • getVerticesScalar

        public java.lang.Number getVerticesScalar()
        Description copied from interface: NXoff_geometry
        List of x,y,z coordinates for vertices. The origin of the coordinates is the position of the parent component, for example the NXdetector which the geometry describes. If the shape describes a single pixel for a detector with uniform pixel shape then the origin is the position of each pixel as described by the ``x/y/z_pixel_offset`` datasets in ``NXdetector``.

        Type: NX_NUMBER Units: NX_LENGTH Dimensions: 1: i; 2: 3;

        Specified by:
        getVerticesScalar in interface NXoff_geometry
        Returns:
        the value.
      • setVertices

        public DataNode setVertices(IDataset vertices)
        Description copied from interface: NXoff_geometry
        List of x,y,z coordinates for vertices. The origin of the coordinates is the position of the parent component, for example the NXdetector which the geometry describes. If the shape describes a single pixel for a detector with uniform pixel shape then the origin is the position of each pixel as described by the ``x/y/z_pixel_offset`` datasets in ``NXdetector``.

        Type: NX_NUMBER Units: NX_LENGTH Dimensions: 1: i; 2: 3;

        Specified by:
        setVertices in interface NXoff_geometry
        Parameters:
        vertices - the vertices
      • setVerticesScalar

        public DataNode setVerticesScalar(java.lang.Number vertices)
        Description copied from interface: NXoff_geometry
        List of x,y,z coordinates for vertices. The origin of the coordinates is the position of the parent component, for example the NXdetector which the geometry describes. If the shape describes a single pixel for a detector with uniform pixel shape then the origin is the position of each pixel as described by the ``x/y/z_pixel_offset`` datasets in ``NXdetector``.

        Type: NX_NUMBER Units: NX_LENGTH Dimensions: 1: i; 2: 3;

        Specified by:
        setVerticesScalar in interface NXoff_geometry
        Parameters:
        vertices - the vertices
      • getWinding_order

        public IDataset getWinding_order()
        Description copied from interface: NXoff_geometry
        List of indices of vertices in the ``vertices`` dataset to form each face, right-hand rule for face normal.

        Type: NX_INT Dimensions: 1: j;

        Specified by:
        getWinding_order in interface NXoff_geometry
        Returns:
        the value.
      • getWinding_orderScalar

        public java.lang.Long getWinding_orderScalar()
        Description copied from interface: NXoff_geometry
        List of indices of vertices in the ``vertices`` dataset to form each face, right-hand rule for face normal.

        Type: NX_INT Dimensions: 1: j;

        Specified by:
        getWinding_orderScalar in interface NXoff_geometry
        Returns:
        the value.
      • setWinding_order

        public DataNode setWinding_order(IDataset winding_order)
        Description copied from interface: NXoff_geometry
        List of indices of vertices in the ``vertices`` dataset to form each face, right-hand rule for face normal.

        Type: NX_INT Dimensions: 1: j;

        Specified by:
        setWinding_order in interface NXoff_geometry
        Parameters:
        winding_order - the winding_order
      • setWinding_orderScalar

        public DataNode setWinding_orderScalar(java.lang.Long winding_order)
        Description copied from interface: NXoff_geometry
        List of indices of vertices in the ``vertices`` dataset to form each face, right-hand rule for face normal.

        Type: NX_INT Dimensions: 1: j;

        Specified by:
        setWinding_orderScalar in interface NXoff_geometry
        Parameters:
        winding_order - the winding_order
      • getFaces

        public IDataset getFaces()
        Description copied from interface: NXoff_geometry
        The start index in ``winding_order`` for each face.

        Type: NX_INT Dimensions: 1: k;

        Specified by:
        getFaces in interface NXoff_geometry
        Returns:
        the value.
      • getFacesScalar

        public java.lang.Long getFacesScalar()
        Description copied from interface: NXoff_geometry
        The start index in ``winding_order`` for each face.

        Type: NX_INT Dimensions: 1: k;

        Specified by:
        getFacesScalar in interface NXoff_geometry
        Returns:
        the value.
      • setFaces

        public DataNode setFaces(IDataset faces)
        Description copied from interface: NXoff_geometry
        The start index in ``winding_order`` for each face.

        Type: NX_INT Dimensions: 1: k;

        Specified by:
        setFaces in interface NXoff_geometry
        Parameters:
        faces - the faces
      • setFacesScalar

        public DataNode setFacesScalar(java.lang.Long faces)
        Description copied from interface: NXoff_geometry
        The start index in ``winding_order`` for each face.

        Type: NX_INT Dimensions: 1: k;

        Specified by:
        setFacesScalar in interface NXoff_geometry
        Parameters:
        faces - the faces
      • getDetector_faces

        public IDataset getDetector_faces()
        Description copied from interface: NXoff_geometry
        List of pairs of index in the "faces" dataset and detector id. Face IDs in the first column, and corresponding detector IDs in the second column. This dataset should only be used only if the ``NXoff_geometry`` group is describing a detector. Note, the face indices must be in ascending order but need not be consecutive as not every face in faces need be a detecting surface or boundary of detecting volume. Can use multiple entries with the same detector id to define detector volumes.

        Type: NX_INT Dimensions: 1: l; 2: 2;

        Specified by:
        getDetector_faces in interface NXoff_geometry
        Returns:
        the value.
      • getDetector_facesScalar

        public java.lang.Long getDetector_facesScalar()
        Description copied from interface: NXoff_geometry
        List of pairs of index in the "faces" dataset and detector id. Face IDs in the first column, and corresponding detector IDs in the second column. This dataset should only be used only if the ``NXoff_geometry`` group is describing a detector. Note, the face indices must be in ascending order but need not be consecutive as not every face in faces need be a detecting surface or boundary of detecting volume. Can use multiple entries with the same detector id to define detector volumes.

        Type: NX_INT Dimensions: 1: l; 2: 2;

        Specified by:
        getDetector_facesScalar in interface NXoff_geometry
        Returns:
        the value.
      • setDetector_faces

        public DataNode setDetector_faces(IDataset detector_faces)
        Description copied from interface: NXoff_geometry
        List of pairs of index in the "faces" dataset and detector id. Face IDs in the first column, and corresponding detector IDs in the second column. This dataset should only be used only if the ``NXoff_geometry`` group is describing a detector. Note, the face indices must be in ascending order but need not be consecutive as not every face in faces need be a detecting surface or boundary of detecting volume. Can use multiple entries with the same detector id to define detector volumes.

        Type: NX_INT Dimensions: 1: l; 2: 2;

        Specified by:
        setDetector_faces in interface NXoff_geometry
        Parameters:
        detector_faces - the detector_faces
      • setDetector_facesScalar

        public DataNode setDetector_facesScalar(java.lang.Long detector_faces)
        Description copied from interface: NXoff_geometry
        List of pairs of index in the "faces" dataset and detector id. Face IDs in the first column, and corresponding detector IDs in the second column. This dataset should only be used only if the ``NXoff_geometry`` group is describing a detector. Note, the face indices must be in ascending order but need not be consecutive as not every face in faces need be a detecting surface or boundary of detecting volume. Can use multiple entries with the same detector id to define detector volumes.

        Type: NX_INT Dimensions: 1: l; 2: 2;

        Specified by:
        setDetector_facesScalar in interface NXoff_geometry
        Parameters:
        detector_faces - the detector_faces




© 2015 - 2024 Weber Informatics LLC | Privacy Policy