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

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






NXshapeImpl (h5jan API)












org.eclipse.dawnsci.nexus.impl

Class NXshapeImpl

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


    public class NXshapeImpl
    extends NXobjectImpl
    implements NXshape
    legacy class - (used by :ref:`NXgeometry`) - the shape and size of a component. This is the description of the general shape and size of a component, which may be made up of ``numobj`` separate elements - it is used by the :ref:`NXgeometry` class
    See Also:
    Serialized Form
    • Field Detail

      • PERMITTED_CHILD_GROUP_CLASSES

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

      • NXshapeImpl

        public NXshapeImpl()
      • NXshapeImpl

        public NXshapeImpl(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
      • getShape

        public IDataset getShape()
        Description copied from interface: NXshape
        general shape of a component

        Enumeration:

        • nxflat
        • nxcylinder
        • nxbox
        • nxsphere
        • nxcone
        • nxelliptical
        • nxtoroidal
        • nxparabolic
        • nxpolynomial

        Specified by:
        getShape in interface NXshape
        Returns:
        the value.
      • getShapeScalar

        public java.lang.String getShapeScalar()
        Description copied from interface: NXshape
        general shape of a component

        Enumeration:

        • nxflat
        • nxcylinder
        • nxbox
        • nxsphere
        • nxcone
        • nxelliptical
        • nxtoroidal
        • nxparabolic
        • nxpolynomial

        Specified by:
        getShapeScalar in interface NXshape
        Returns:
        the value.
      • setShape

        public DataNode setShape(IDataset shape)
        Description copied from interface: NXshape
        general shape of a component

        Enumeration:

        • nxflat
        • nxcylinder
        • nxbox
        • nxsphere
        • nxcone
        • nxelliptical
        • nxtoroidal
        • nxparabolic
        • nxpolynomial

        Specified by:
        setShape in interface NXshape
        Parameters:
        shape - the shape
      • setShapeScalar

        public DataNode setShapeScalar(java.lang.String shape)
        Description copied from interface: NXshape
        general shape of a component

        Enumeration:

        • nxflat
        • nxcylinder
        • nxbox
        • nxsphere
        • nxcone
        • nxelliptical
        • nxtoroidal
        • nxparabolic
        • nxpolynomial

        Specified by:
        setShapeScalar in interface NXshape
        Parameters:
        shape - the shape
      • getSize

        public IDataset getSize()
        Description copied from interface: NXshape
        physical extent of the object along its local axes (after NXorientation) with the center of mass at the local origin (after NXtranslation). The meaning and location of these axes will vary according to the value of the "shape" variable. ``nshapepar`` defines how many parameters: - For "nxcylinder" type the parameters are (diameter,height) and a three value orientation vector of the cylinder. - For the "nxbox" type the parameters are (length,width,height). - For the "nxsphere" type the parameters are (diameter). - For nxcone cone half aperture - For nxelliptical, semi-major axis, semi-minor-axis, angle of major axis and pole - For nxtoroidal, major radius, minor radius - For nxparabolic, parabolic parameter a - For nxpolynomial, an array of polynom coefficients, the dimension of the array encodes the degree of the polynom

        Type: NX_FLOAT Units: NX_LENGTH Dimensions: 1: numobj; 2: nshapepar;

        Specified by:
        getSize in interface NXshape
        Returns:
        the value.
      • getSizeScalar

        public java.lang.Double getSizeScalar()
        Description copied from interface: NXshape
        physical extent of the object along its local axes (after NXorientation) with the center of mass at the local origin (after NXtranslation). The meaning and location of these axes will vary according to the value of the "shape" variable. ``nshapepar`` defines how many parameters: - For "nxcylinder" type the parameters are (diameter,height) and a three value orientation vector of the cylinder. - For the "nxbox" type the parameters are (length,width,height). - For the "nxsphere" type the parameters are (diameter). - For nxcone cone half aperture - For nxelliptical, semi-major axis, semi-minor-axis, angle of major axis and pole - For nxtoroidal, major radius, minor radius - For nxparabolic, parabolic parameter a - For nxpolynomial, an array of polynom coefficients, the dimension of the array encodes the degree of the polynom

        Type: NX_FLOAT Units: NX_LENGTH Dimensions: 1: numobj; 2: nshapepar;

        Specified by:
        getSizeScalar in interface NXshape
        Returns:
        the value.
      • setSize

        public DataNode setSize(IDataset size)
        Description copied from interface: NXshape
        physical extent of the object along its local axes (after NXorientation) with the center of mass at the local origin (after NXtranslation). The meaning and location of these axes will vary according to the value of the "shape" variable. ``nshapepar`` defines how many parameters: - For "nxcylinder" type the parameters are (diameter,height) and a three value orientation vector of the cylinder. - For the "nxbox" type the parameters are (length,width,height). - For the "nxsphere" type the parameters are (diameter). - For nxcone cone half aperture - For nxelliptical, semi-major axis, semi-minor-axis, angle of major axis and pole - For nxtoroidal, major radius, minor radius - For nxparabolic, parabolic parameter a - For nxpolynomial, an array of polynom coefficients, the dimension of the array encodes the degree of the polynom

        Type: NX_FLOAT Units: NX_LENGTH Dimensions: 1: numobj; 2: nshapepar;

        Specified by:
        setSize in interface NXshape
        Parameters:
        size - the size
      • setSizeScalar

        public DataNode setSizeScalar(java.lang.Double size)
        Description copied from interface: NXshape
        physical extent of the object along its local axes (after NXorientation) with the center of mass at the local origin (after NXtranslation). The meaning and location of these axes will vary according to the value of the "shape" variable. ``nshapepar`` defines how many parameters: - For "nxcylinder" type the parameters are (diameter,height) and a three value orientation vector of the cylinder. - For the "nxbox" type the parameters are (length,width,height). - For the "nxsphere" type the parameters are (diameter). - For nxcone cone half aperture - For nxelliptical, semi-major axis, semi-minor-axis, angle of major axis and pole - For nxtoroidal, major radius, minor radius - For nxparabolic, parabolic parameter a - For nxpolynomial, an array of polynom coefficients, the dimension of the array encodes the degree of the polynom

        Type: NX_FLOAT Units: NX_LENGTH Dimensions: 1: numobj; 2: nshapepar;

        Specified by:
        setSizeScalar in interface NXshape
        Parameters:
        size - the size
      • getDirection

        public IDataset getDirection()
        Description copied from interface: NXshape

        Enumeration:

        • concave
        • convex

        Specified by:
        getDirection in interface NXshape
        Returns:
        the value.
      • getDirectionScalar

        public java.lang.String getDirectionScalar()
        Description copied from interface: NXshape

        Enumeration:

        • concave
        • convex

        Specified by:
        getDirectionScalar in interface NXshape
        Returns:
        the value.
      • setDirection

        public DataNode setDirection(IDataset direction)
        Description copied from interface: NXshape

        Enumeration:

        • concave
        • convex

        Specified by:
        setDirection in interface NXshape
        Parameters:
        direction - the direction
      • setDirectionScalar

        public DataNode setDirectionScalar(java.lang.String direction)
        Description copied from interface: NXshape

        Enumeration:

        • concave
        • convex

        Specified by:
        setDirectionScalar in interface NXshape
        Parameters:
        direction - the direction




© 2015 - 2024 Weber Informatics LLC | Privacy Policy