Documentation of 'visad.CMYCoordinateSystem' Java class
CMYCoordinateSystem
visad

Class CMYCoordinateSystem

  • All Implemented Interfaces:
    java.io.Serializable


    public class CMYCoordinateSystem
    extends CoordinateSystem
    CMYCoordinateSystem is the VisAD CoordinateSystem class for (Cyan, Magenta, Yellow) with Reference (Red, Green, Blue). Algorithm from Foley and van Dam.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object cs)
      Indicates whether or not this instance is equal to an object.
      double[][] fromReference(double[][] tuples)
      Convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.
      float[][] fromReference(float[][] tuples)
      Convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as float[][] arrays rather than RealTuple[] arrays; the array organization is float[tuple_dimension][number_of_tuples]; can modify and return argument array.
      double[][] toReference(double[][] tuples)
      Convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.
      float[][] toReference(float[][] tuples)
      Convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as float[][] arrays rather than RealTuple[] arrays; the array organization is float[tuple_dimension][number_of_tuples]; can modify and return argument array.
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CMYCoordinateSystem

        public CMYCoordinateSystem(RealTupleType reference)
                            throws VisADException
        construct a CMYCoordinateSystem with given reference
        Parameters:
        reference - - reference RealTupleType
        Throws:
        VisADException
    • Method Detail

      • toReference

        public double[][] toReference(double[][] tuples)
                               throws VisADException
        Convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.
        Specified by:
        toReference in class CoordinateSystem
        Parameters:
        tuples - array of values assumed to be in coordinateSystem units. Input array is not guaranteed to be immutable and could be used for return.
        Returns:
        array of double values in reference coordinates and Unit-s.
        Throws:
        VisADException - if problem with conversion.
      • fromReference

        public double[][] fromReference(double[][] tuples)
                                 throws VisADException
        Convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array.
        Specified by:
        fromReference in class CoordinateSystem
        Parameters:
        tuples - array of values assumed to be in reference Unit-s. Input array is not guaranteed to be immutable and could be used for return.
        Returns:
        array of double values in CoordinateSystem Unit-s.
        Throws:
        VisADException - if problem with conversion.
      • toReference

        public float[][] toReference(float[][] tuples)
                              throws VisADException
        Convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as float[][] arrays rather than RealTuple[] arrays; the array organization is float[tuple_dimension][number_of_tuples]; can modify and return argument array.
        Overrides:
        toReference in class CoordinateSystem
        Parameters:
        tuples - array of values assumed to be in coordinateSystem units. Input array is not guaranteed to be immutable and could be used for return.
        Returns:
        array of float values in reference coordinates and Unit-s.
        Throws:
        VisADException - if problem with conversion.
      • fromReference

        public float[][] fromReference(float[][] tuples)
                                throws VisADException
        Convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as float[][] arrays rather than RealTuple[] arrays; the array organization is float[tuple_dimension][number_of_tuples]; can modify and return argument array.
        Overrides:
        fromReference in class CoordinateSystem
        Parameters:
        tuples - array of values assumed to be in reference Unit-s. Input array is not guaranteed to be immutable and could be used for return.
        Returns:
        array of float values in CoordinateSystem Unit-s.
        Throws:
        VisADException - if problem with conversion.
      • equals

        public boolean equals(java.lang.Object cs)
        Indicates whether or not this instance is equal to an object.
        Specified by:
        equals in class CoordinateSystem
        Parameters:
        cs - - the object in question.
        Returns:
        true if and only if this instance equals cs.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.