Documentation of 'visad.data.vis5d.Vis5DCoordinateSystem' Java class
Vis5DCoordinateSystem
visad.data.vis5d

Class Vis5DCoordinateSystem

  • All Implemented Interfaces:
    java.io.Serializable


    public class Vis5DCoordinateSystem
    extends MapProjection
    Vis5DCoordinateSystem is the VisAD class for coordinate systems for ( row, col ).

    See Also:
    Serialized Form
    • Constructor Detail

      • Vis5DCoordinateSystem

        public Vis5DCoordinateSystem(int Projection,
                                     double[] projargs,
                                     double Nr,
                                     double Nc)
                              throws VisADException
        Throws:
        VisADException
    • Method Detail

      • getDefaultMapArea

        public java.awt.geom.Rectangle2D getDefaultMapArea()
        Get the bounds for this image
        Specified by:
        getDefaultMapArea in class MapProjection
        Returns:
        the bounding box of the MapProjection
      • getProjection

        public int getProjection()
        Get the Projection type
      • getRows

        public double getRows()
        Get the number of Rows
      • getColumns

        public double getColumns()
        Get the number of Columns
      • getProjectionParams

        public double[] getProjectionParams()
        Get the projection args
      • isXYOrder

        public boolean isXYOrder()
        Override from super class since toRef and fromRef use rowcol (yx) order instead of colrow (xy) order.
        Overrides:
        isXYOrder in class MapProjection
        Returns:
        false
      • toReference

        public double[][] toReference(double[][] rowcol)
                               throws VisADException
        Description copied from class: CoordinateSystem
        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:
        rowcol - 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 Units.
        Throws:
        VisADException - if problem with conversion.
      • fromReference

        public double[][] fromReference(double[][] latlon)
                                 throws VisADException
        Description copied from class: CoordinateSystem
        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:
        latlon - array of values assumed to be in reference Units. Input array is not guaranteed to be immutable and could be used for return.
        Returns:
        array of double values in CoordinateSystem Units.
        Throws:
        VisADException - if problem with conversion.
      • equals

        public boolean equals(java.lang.Object cs)
        Description copied from class: CoordinateSystem
        Indicates whether or not this instance is equal to an object (note must test for cs == null).
        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.