protected final void fillBufferColumn(ByteBuffer bbuf,int wid,int hgt,int col,LayerType layerType){
switch (layerType) {
case none:
case footprint:
case viewshed:
case derivative:
    break;
case elevation:
case field:
  FloatBuffer fbuf=bbuf.asFloatBuffer();
for (int r=0; r < hgt; ++r) {
  int c=r * wid + col;
  fbuf.put(c,Float.NaN);
}
break;
case colorimage:
IntBuffer ibuf=bbuf.asIntBuffer();
for (int r=0; r < hgt; ++r) {
int c=r * wid + col;
ibuf.put(c,0);
}
break;
case grayimage:
for (int r=0; r < hgt; ++r) {
int c=r * wid + col;
bbuf.put(c,(byte)0);
}
break;
}
bbuf.rewind();
}

protected final void fillBufferColumn ( ByteBuffer bbuf , int wid , int hgt , int col , LayerType layerType ) { switch ( layerType ) { case none : case footprint : case viewshed : case derivative : break ; case elevation : case field : FloatBuffer fbuf = bbuf . asFloatBuffer ( ) ; for ( int r = 0 ; r < hgt ; ++ r ) { int c = r * wid + col ; fbuf . put ( c , Float . NaN ) ; } break ; case colorimage : IntBuffer ibuf = bbuf . asIntBuffer ( ) ; for ( int r = 0 ; r < hgt ; ++ r ) { int c = r * wid + col ; ibuf . put ( c , 0 ) ; } break ; case grayimage : for ( int r = 0 ; r < hgt ; ++ r ) { int c = r * wid + col ; bbuf . put ( c , ( byte ) 0 ) ; } break ; } bbuf . rewind ( ) ; }
fill a byte buffer with a padding value .
