blob: 4498dff6b3e22e9abb4e1dbbf672f34c2ed9fc98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package qtrees;
import java.io.Writer;
/**
*
* @author Sjaak Smetsers
* @version 18-03-2014
*/
public abstract class QTNode {
public abstract void fillBitmap( int x, int y, int width, Bitmap bitmap );
public abstract void writeNode( Writer out );
public abstract boolean sameLeaf( QTNode other_node );
public static void fillArea( int x, int y, int width, Bitmap bitmap, boolean val ){
for (int i = 0; i < width; i++) {
for (int j = 0; j < width; j++) {
bitmap.setBit(x+i, y+j, val);
}
}
}
}
|