docs: MapTile
This commit is contained in:
parent
a475aa6c22
commit
56c4323959
@ -25,10 +25,10 @@ import org.oscim.utils.quadtree.Node;
|
|||||||
import org.oscim.utils.quadtree.QuadTree;
|
import org.oscim.utils.quadtree.QuadTree;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extends Tile class to hold state and data for concurrent use in
|
* Extends Tile class to hold state and data.
|
||||||
* TileManager (Main Thread),
|
*
|
||||||
* TileLoader (Worker Thread) and
|
* Used concurrently in: TileManager (Main Thread), TileLoader (Worker Thread)
|
||||||
* TileRenderer (GL Thread).
|
* and TileRenderer (GL Thread).
|
||||||
*/
|
*/
|
||||||
public class MapTile extends Tile {
|
public class MapTile extends Tile {
|
||||||
|
|
||||||
@ -117,18 +117,22 @@ public class MapTile extends Tile {
|
|||||||
* Tile is in view region. Set by TileRenderer.
|
* Tile is in view region. Set by TileRenderer.
|
||||||
*/
|
*/
|
||||||
public boolean isVisible;
|
public boolean isVisible;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used for fade-effects
|
||||||
|
*/
|
||||||
public long fadeTime;
|
public long fadeTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pointer to access relatives in QuadTree
|
* Used to avoid drawing a tile twice per frame
|
||||||
*/
|
* TODO remove
|
||||||
public final TileNode node;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* to avoid drawing a tile twice per frame
|
|
||||||
*/
|
*/
|
||||||
int lastDraw = 0;
|
int lastDraw = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pointer to access relatives in {@link QuadTree}
|
||||||
|
*/
|
||||||
|
public final TileNode node;
|
||||||
|
|
||||||
public final static int PROXY_CHILD1 = 1 << 0;
|
public final static int PROXY_CHILD1 = 1 << 0;
|
||||||
public final static int PROXY_CHILD2 = 1 << 1;
|
public final static int PROXY_CHILD2 = 1 << 1;
|
||||||
@ -221,15 +225,16 @@ public class MapTile extends Tile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test whether it is save to access a proxy item through
|
* Test whether it is save to access a proxy item
|
||||||
* this.rel.*
|
* through this.node.*
|
||||||
*/
|
*/
|
||||||
public boolean hasProxy(int proxy) {
|
public boolean hasProxy(int proxy) {
|
||||||
return (proxies & proxy) != 0;
|
return (proxies & proxy) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CAUTION: This function may only be called by {@link TileManager}
|
* CAUTION: This function may only be called
|
||||||
|
* by {@link TileManager}
|
||||||
*/
|
*/
|
||||||
protected void clear() {
|
protected void clear() {
|
||||||
while (data != null) {
|
while (data != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user