Package com.luciad.shape
Interface ILcdMatrixView
- All Known Subinterfaces:
ILcdAltitudeMatrixView,ILcdEditableMatrixView,ILcdEditablePolarMatrixView,ILcdEditableReferencedMatrixView,ILcdEditableVisibilityMatrixView,ILcdLOSCoverageMatrix,ILcdPolarMatrixView,ILcdReferencedMatrixView,ILcdVisibilityMatrixView
- All Known Implementing Classes:
TLcdMatrix,TLcdRasterMatrix
public interface ILcdMatrixView
An
ILcdMatrixView represents a regular 2D data structure where values can be accessed
through rows and columns. Every entry in this structure can have a point associated with it. Note that
the distribution of the points does not need to be regular. It is possible to retrieve the coordinates
of the point associated with an entry using the methods retrieveAssociatedPointX(int, int) and
retrieveAssociatedPointY(int, int).-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns in this matrix view.intReturns the number of rows in this matrix view.doublegetValue(int aColumnIndex, int aRowIndex) Returns the value of the matrix pixel corresponding to the column indexaColumnIndexand the row indexaRowIndex.doubleretrieveAssociatedPointX(int aColumnIndex, int aRowIndex) Returns the x-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.doubleretrieveAssociatedPointY(int aColumnIndex, int aRowIndex) Returns the y-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.
-
Method Details
-
getValue
double getValue(int aColumnIndex, int aRowIndex) Returns the value of the matrix pixel corresponding to the column indexaColumnIndexand the row indexaRowIndex.- Parameters:
aColumnIndex- the column index, positive and smaller than the columncount.aRowIndex- the row index, positive and smaller than the rowcount.- Returns:
- the value of the matrix pixel.
-
retrieveAssociatedPointX
double retrieveAssociatedPointX(int aColumnIndex, int aRowIndex) Returns the x-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.- Parameters:
aColumnIndex- the column index, positive and smaller than the columncount.aRowIndex- the row index, positive and smaller than the rowcount.- Returns:
- the x-coordinate of the associated point.
-
retrieveAssociatedPointY
double retrieveAssociatedPointY(int aColumnIndex, int aRowIndex) Returns the y-coordinate of the associated point corresponding to the column indexaColumnIndexand the row indexaRowIndex.- Parameters:
aColumnIndex- the column index, positive and smaller than the columncount.aRowIndex- the row index, positive and smaller than the rowcount.- Returns:
- the y-coordinate of the associated point.
-
getColumnCount
int getColumnCount()Returns the number of columns in this matrix view. The number of columns shall be strictly positive.- Returns:
- the number of columns in this matrix view, strictly positive.
-
getRowCount
int getRowCount()Returns the number of rows in this matrix view. The number of rows shall be strictly positive.- Returns:
- the number of rows in this matrix view, strictly positive.
-