Package com.luciad.shape
Interface ILcdPolarMatrixView
- All Superinterfaces:
ILcdMatrixView
- All Known Subinterfaces:
ILcdEditablePolarMatrixView,ILcdLOSCoverageMatrix
An
ILcdPolarMatrixView is an ILcdMatrixView which represents a polar 2D
data structure where the values and associated points can be accessed through an azimuth and
a radius.
Each matrix column corresponds to a fixed azimuth (defined in degrees) and each row to a
fixed distance (defined in meters) from the center point. Therefore a polar matrix view
contains a method to convert an azimuth/radius to the column/row index corresponding to
the azimuth/radius.-
Method Summary
Modifier and TypeMethodDescriptiondoublegetAzimuth(int aColumnIndex) Returns the azimuth corresponding to the givenaColumnIndex.intgetColumn(double aAzimuth) Returns the column index corresponding to the givenaAzimuth.doublegetRadius(int aRowIndex) Returns the radius corresponding to the givenaRowIndex.intgetRow(double aRadius) Returns the row index corresponding to the givenaRadius.doublegetValue(double aAzimuth, double aRadius) Returns the value of the matrix pixel corresponding to the azimuthaAzimuthand the radiusaRadius.doubleretrieveAssociatedPointX(double aAzimuth, double aRadius) Returns the x-coordinate of the associated point corresponding to the azimuthaAzimuthand the radiusaRadius.doubleretrieveAssociatedPointY(double aAzimuth, double aRadius) Returns the y-coordinate of the associated point corresponding to the azimuthaAzimuthand the radiusaRadius.Methods inherited from interface com.luciad.shape.ILcdMatrixView
getColumnCount, getRowCount, getValue, retrieveAssociatedPointX, retrieveAssociatedPointY
-
Method Details
-
getValue
double getValue(double aAzimuth, double aRadius) Returns the value of the matrix pixel corresponding to the azimuthaAzimuthand the radiusaRadius. If the given azimuth/radius does not correspond to a fixed azimuth/radius used by this instance, a surrounding fixed azimuth/radius can be used to retrieve the value of the matrix pixel. This method can use the methodsgetColumn(double)andgetRow(double)to convert thedoubleindices to integer indices. The value of the matrix pixel can then be retrieved using the methodILcdMatrixView.getValue(int, int).- Parameters:
aAzimuth- the azimuth, defined in degrees.aRadius- the radius, defined in meters.- Returns:
- the value of the matrix pixel.
-
retrieveAssociatedPointX
double retrieveAssociatedPointX(double aAzimuth, double aRadius) Returns the x-coordinate of the associated point corresponding to the azimuthaAzimuthand the radiusaRadius. If the given azimuth/radius does not correspond to a fixed azimuth/radius used by this instance, a surrounding fixed azimuth/radius can be used to retrieve the x-coordinate. The definition of an associated point can be found in the class documentation ofILcdMatrixView. This method can use the methodsgetColumn(double)andgetRow(double)to convert thedoubleindices to integer indices. The x-coordinate of the matrix pixel can then be retrieved using the methodILcdMatrixView.retrieveAssociatedPointX(int, int).- Parameters:
aAzimuth- the azimuth, defined in degrees.aRadius- the radius, defined in meters.- Returns:
- the x-coordinate of the associated point.
-
retrieveAssociatedPointY
double retrieveAssociatedPointY(double aAzimuth, double aRadius) Returns the y-coordinate of the associated point corresponding to the azimuthaAzimuthand the radiusaRadius. If the given azimuth/radius does not correspond to a fixed azimuth/radius used by this instance, a surrounding fixed azimuth/radius can be used to retrieve the y-coordinate. The definition of an associated point can be found in the class documentation ofILcdMatrixView. This method can use the methodsgetColumn(double)andgetRow(double)to convert thedoubleindices to integer indices. The y-coordinate of the matrix pixel can then be retrieved using the methodILcdMatrixView.retrieveAssociatedPointY(int, int).- Parameters:
aAzimuth- the azimuth, defined in degrees.aRadius- the radius, defined in meters.- Returns:
- the y-coordinate of the associated point.
-
getColumn
int getColumn(double aAzimuth) Returns the column index corresponding to the givenaAzimuth. If the given azimuth does not correspond to a fixed azimuth used by this instance, a surrounding fixed azimuth can be used.- Parameters:
aAzimuth- the azimuth, defined in degrees.- Returns:
- the column index.
-
getRow
int getRow(double aRadius) Returns the row index corresponding to the givenaRadius. If the given radius does not correspond to a fixed radius used by this instance, a surrounding fixed radius can be used.- Parameters:
aRadius- the radius, defined in meters.- Returns:
- the row index.
-
getAzimuth
double getAzimuth(int aColumnIndex) Returns the azimuth corresponding to the givenaColumnIndex. Each matrix column corresponds to a fixed azimuth (defined in degrees)- Parameters:
aColumnIndex- the column index.- Returns:
- the fixed azimuth, defined in degrees.
-
getRadius
double getRadius(int aRowIndex) Returns the radius corresponding to the givenaRowIndex. Each matrix row corresponds to a fixed distance (defined in meters) from the center point.- Parameters:
aRowIndex- the row index.- Returns:
- the fixed radius, defined in meters.
-