Class CoordinateSystem

    • Constructor Detail

      • CoordinateSystem

        public CoordinateSystem()
        Constructor
      • CoordinateSystem

        public CoordinateSystem​(CoordinateSystemType type,
                                int dimension,
                                Axis axis)
        Constructor
        Parameters:
        type - type
        dimension - dimension
        axis - axis
      • CoordinateSystem

        public CoordinateSystem​(CoordinateSystemType type,
                                int dimension,
                                List<Axis> axes)
        Constructor
        Parameters:
        type - type
        dimension - dimension
        axes - axes
    • Method Detail

      • setType

        public void setType​(CoordinateSystemType type)
        Set the type
        Parameters:
        type - coordinate system type
      • getDimension

        public int getDimension()
        Get the dimension
        Returns:
        dimension
      • setDimension

        public void setDimension​(int dimension)
        Set the dimension
        Parameters:
        dimension - dimension
      • hasIdentifiers

        public boolean hasIdentifiers()
        Has identifiers
        Specified by:
        hasIdentifiers in interface Identifiable
        Returns:
        true if has identifiers
      • numIdentifiers

        public int numIdentifiers()
        Number of identifiers
        Specified by:
        numIdentifiers in interface Identifiable
        Returns:
        identifiers count
      • getIdentifier

        public Identifier getIdentifier​(int index)
        Get the identifier at the index
        Specified by:
        getIdentifier in interface Identifiable
        Parameters:
        index - identifier index
        Returns:
        identifier
      • addIdentifier

        public void addIdentifier​(Identifier identifier)
        Add the identifier
        Specified by:
        addIdentifier in interface Identifiable
        Parameters:
        identifier - identifier
      • getAxes

        public List<Axis> getAxes()
        Get the axes
        Returns:
        axes
      • numAxes

        public int numAxes()
        Number of axes
        Returns:
        axes count
      • getAxis

        public Axis getAxis​(int index)
        Get the axis at the index
        Parameters:
        index - axis index
        Returns:
        axis
      • setAxes

        public void setAxes​(List<Axis> axes)
        Set the axes
        Parameters:
        axes - axes
      • addAxis

        public void addAxis​(Axis axis)
        Add the axis
        Parameters:
        axis - axis
      • addAxes

        public void addAxes​(List<Axis> axes)
        Add the axes
        Parameters:
        axes - axes
      • getUnit

        public Unit getUnit()
        Get the unit
        Returns:
        unit
      • hasUnit

        public boolean hasUnit()
        Has a unit
        Returns:
        true if has unit
      • setUnit

        public void setUnit​(Unit unit)
        Set the unit
        Parameters:
        unit - unit
      • getAxisUnit

        public Unit getAxisUnit()
        Get the axis unit, either the CS unit or first axis with unit
        Returns:
        unit
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object