7 |
:Revision: $Revision$ |
:Revision: $Revision$ |
8 |
:Status: Incomplete |
:Status: Incomplete |
9 |
|
|
10 |
The reading depth in gzz.view.BFRaster is currently a public |
The reading depth in ``gzz.view.BFRaster`` is currently a public |
11 |
attribute, which is only used within BFRaster.read(). We could |
attribute, which is only used within ``BFRaster.read()``. We could |
12 |
get rid of it by making it parameter for BFRaster.read(). |
get rid of it by making it parameter for ``BFRaster.read()``. |
13 |
Since it no longer has default value, BFRaster's reading depth |
Since it no longer has default value, ``BFRaster``'s reading depth |
14 |
can't be negligently ignored by view designer. |
can't be negligently ignored by view designer. |
15 |
|
|
16 |
Of course we can leave public depth attribute as it is and |
Of course we can leave public depth attribute as it is and |
17 |
make new BFRaster.read() simple to give it a new value and call |
make new ``BFRaster.read()`` simple to give it a new value and call |
18 |
the old read(). |
the old ``read()``. |
19 |
|
|
20 |
Changes |
Changes |
21 |
------- |
------- |
22 |
|
|
23 |
gzz/view/BFRaster.java |
:: |
24 |
|
|
25 |
- /** The depth to which read() will create the raster. |
gzz/view/BFRaster.java |
|
- */ |
|
|
- public int depth = 5; |
|
26 |
|
|
27 |
- public void read(Cell center, Dim[] dims) { |
- /** The depth to which read() will create the raster. |
28 |
+ public void read(Cell center, Dim[] dims, int depth) { |
- */ |
29 |
|
- public int depth = 5; |
30 |
|
|
31 |
|
- public void read(Cell center, Dim[] dims) { |
32 |
|
+ public void read(Cell center, Dim[] dims, int depth) { |
33 |
|
|
34 |
|
|
35 |
|
|