Gets the entire raster contents in an int array Values are in row-major format such that the index corresponds to iy ny+ix. @return array containing entire lattice contents
()
| 354 | * @return array containing entire lattice contents |
| 355 | */ |
| 356 | public int[] getAll() { |
| 357 | int N = raster.getNx()*raster.getNy(); |
| 358 | int[] ret = new int[N]; |
| 359 | for(int i = 0; i<N; i++) { |
| 360 | ret[i] = getAtIndex(i); |
| 361 | } |
| 362 | return ret; |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Sets an action to toggle the grid betweem the given values when the mouse is pressed. |
nothing calls this directly
no test coverage detected