Original code Copyright (C) 1997-2005 Brian Paul. Licensed under BSD-compatible terms with permission of the author. See LICENSE.txt for license information.
Enhanced for GL2ES3.
See TileRendererBase for details.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private Dimension | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private final Dimension | |
| private final Dimension | |
| public static final int | TR_BOTTOM_TO_TOP
Indicates we are traversing rows from the bottom to the top (default). |
| public static final int | TR_COLUMNS
The number of columns of tiles. |
| public static final int | TR_CURRENT_COLUMN
The current column number. |
| public static final int | TR_CURRENT_ROW
The current row number. |
| public static final int | TR_CURRENT_TILE_NUM
The current tile number. |
| public static final int | TR_IMAGE_CLIPPING_HEIGHT
The height of the final clipped image. |
| public static final int | TR_IMAGE_CLIPPING_WIDTH
The width of the final clipped image. |
| public static final int | TR_ROW_ORDER
The order that the rows are traversed. |
| public static final int | TR_ROWS
The number of rows of tiles. |
| public static final int | TR_TILE_BORDER
The width of the border around the tiles. |
| public static final int | TR_TILE_HEIGHT
The height of the tiles. |
| public static final int | TR_TILE_WIDTH
The width of the tiles. |
| public static final int | TR_TILE_X_OFFSET
The tiles x-offset. |
| public static final int | TR_TILE_Y_OFFSET
The tiles y-offset. |
| public static final int | TR_TOP_TO_BOTTOM
Indicates we are traversing rows from the top to the bottom. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | beginTile(final GL
The gl context gl)Implements abstract com. |
| public final void | clipImageSize(final int
The image-clipping.width width, final int The image-clipping.height height)Clips the image-size this tile-renderer iterates through,
which can be retrieved via |
| public void | endTile(final GL
the gl context gl)Implements abstract com. beginTile(GL).
|
| public final boolean | eot()
Implements abstract com. |
| public final DimensionImmutable | |
| pack-priv final int | |
| public final int | getParam(final int
The parameter name that is to be retrieved pname)Implements abstract com. |
| public final boolean | isSetup()
Implements abstract com. setImageSize(int, int) ..,
and ready for beginTile(GL).
|
| public final void | reset()
Implements abstract com. beginTile(GL) if end of tiling has been reached.
|
| public final void | setImageSize(final int
The width of the final image width, final int The height of the final image height)Overrides com.
Implementation |
| public final void | setRowOrder(final int
The row traversal order, must be either order)TR_TOP_TO_BOTTOM or TR_BOTTOM_TO_TOP.Sets the order of row traversal, default is |
| public void | setTileOffset(final int xoff, final int yoff)
|
| public final void | setTileSize(final int
The width of the tiles. Must not be larger than the GL
context width, final int The height of the tiles. Must not be larger than the
GL context height, final int The width of the borders on each tile. This is needed
to avoid artifacts when rendering lines or points with
thickness > 1. border)Sets the size of the tiles to use in rendering. |
| protected StringBuilder |
| columns | back to summary |
|---|---|
| private int columns | |
| currentColumn | back to summary |
|---|---|
| private int currentColumn | |
| currentRow | back to summary |
|---|---|
| private int currentRow | |
| currentTile | back to summary |
|---|---|
| private int currentTile | |
| DEFAULT_TILE_BORDER | back to summary |
|---|---|
| private static final int DEFAULT_TILE_BORDER | |
| DEFAULT_TILE_HEIGHT | back to summary |
|---|---|
| private static final int DEFAULT_TILE_HEIGHT | |
| DEFAULT_TILE_WIDTH | back to summary |
|---|---|
| private static final int DEFAULT_TILE_WIDTH | |
| imageClippingDim | back to summary |
|---|---|
| private Dimension imageClippingDim | |
| isInit | back to summary |
|---|---|
| private boolean isInit | |
| offsetX | back to summary |
|---|---|
| private int offsetX | |
| offsetY | back to summary |
|---|---|
| private int offsetY | |
| rowOrder | back to summary |
|---|---|
| private int rowOrder | |
| rows | back to summary |
|---|---|
| private int rows | |
| tileBorder | back to summary |
|---|---|
| private int tileBorder | |
| tileSize | back to summary |
|---|---|
| private final Dimension tileSize | |
| tileSizeNB | back to summary |
|---|---|
| private final Dimension tileSizeNB | |
| TR_BOTTOM_TO_TOP | back to summary |
|---|---|
| public static final int TR_BOTTOM_TO_TOP Indicates we are traversing rows from the bottom to the top (default). See | |
| TR_COLUMNS | back to summary |
|---|---|
| public static final int TR_COLUMNS The number of columns of tiles. See | |
| TR_CURRENT_COLUMN | back to summary |
|---|---|
| public static final int TR_CURRENT_COLUMN The current column number. See | |
| TR_CURRENT_ROW | back to summary |
|---|---|
| public static final int TR_CURRENT_ROW The current row number. See | |
| TR_CURRENT_TILE_NUM | back to summary |
|---|---|
| public static final int TR_CURRENT_TILE_NUM The current tile number. Has value -1 if | |
| TR_IMAGE_CLIPPING_HEIGHT | back to summary |
|---|---|
| public static final int TR_IMAGE_CLIPPING_HEIGHT The height of the final clipped image. See | |
| TR_IMAGE_CLIPPING_WIDTH | back to summary |
|---|---|
| public static final int TR_IMAGE_CLIPPING_WIDTH The width of the final clipped image. See | |
| TR_ROW_ORDER | back to summary |
|---|---|
| public static final int TR_ROW_ORDER The order that the rows are traversed. See | |
| TR_ROWS | back to summary |
|---|---|
| public static final int TR_ROWS The number of rows of tiles. See | |
| TR_TILE_BORDER | back to summary |
|---|---|
| public static final int TR_TILE_BORDER The width of the border around the tiles. See | |
| TR_TILE_HEIGHT | back to summary |
|---|---|
| public static final int TR_TILE_HEIGHT The height of the tiles. See | |
| TR_TILE_WIDTH | back to summary |
|---|---|
| public static final int TR_TILE_WIDTH The width of the tiles. See | |
| TR_TILE_X_OFFSET | back to summary |
|---|---|
| public static final int TR_TILE_X_OFFSET The tiles x-offset. See | |
| TR_TILE_Y_OFFSET | back to summary |
|---|---|
| public static final int TR_TILE_Y_OFFSET The tiles y-offset. See | |
| TR_TOP_TO_BOTTOM | back to summary |
|---|---|
| public static final int TR_TOP_TO_BOTTOM Indicates we are traversing rows from the top to the bottom. See | |
| TileRenderer | back to summary |
|---|---|
| public TileRenderer() Creates a new TileRenderer object | |
| beginTile | back to summary |
|---|---|
| public final void beginTile(final GL gl) throws IllegalStateException, GLException Implements abstract com. Doc from com. Begins rendering a tile.
This method modifies the viewport, see below.
User shall reset the viewport when finishing all tile rendering,
i.e. after very last call of The PMV Matrix must be reshaped after this call using:
Use shall render the scene afterwards, concluded with a call to
this renderer User has to comply with the GL profile requirement.
If
| |
| clipImageSize | back to summary |
|---|---|
| public final void clipImageSize(final int width, final int height) Clips the image-size this tile-renderer iterates through,
which can be retrieved via Original image-size stored in this tile-renderer is unmodified.
Implementation
| |
| endTile | back to summary |
|---|---|
| public void endTile(final GL gl) throws IllegalStateException, GLException Implements abstract com. Doc from com. Must be called after rendering the scene,
see
Please consider User has to comply with the GL profile requirement.
| |
| eot | back to summary |
|---|---|
| public final boolean eot() Implements abstract com. Doc from com. Returns true if end of tiling has been reached, otherwise false. end of tiling criteria is implementation specific and may never be reached.
User needs to
end of tiling is reached w/
| |
| getClippedImageSize | back to summary |
|---|---|
| public final DimensionImmutable getClippedImageSize() Returns the clipped image-size.
If a image-size is clipped via
The clipping width and height can be retrieved via | |
| getCurrentTile | back to summary |
|---|---|
| pack-priv final int getCurrentTile() | |
| getParam | back to summary |
|---|---|
| public final int getParam(final int pname) Implements abstract com. Doc from com. Gets the parameters of this TileRenderer object
| |
| isSetup | back to summary |
|---|---|
| public final boolean isSetup() Implements abstract com. Doc from com. Returns true if this instance is setup properly, i.e.
| |
| reset | back to summary |
|---|---|
| public final void reset() Implements abstract com. Doc from com. Method resets implementation's internal state to start of tiling
as required for
Implementation is a nop where TileRenderer are:
| |
| setImageSize | back to summary |
|---|---|
| public final void setImageSize(final int width, final int height) Overrides com. Doc from com. Sets the desired size of the final image
Implementation
| |
| setRowOrder | back to summary |
|---|---|
| public final void setRowOrder(final int order) Sets the order of row traversal, default is
| |
| setTileOffset | back to summary |
|---|---|
| public void setTileOffset(final int xoff, final int yoff) Sets an xy offset for the resulting tiles
| |
| setTileSize | back to summary |
|---|---|
| public final void setTileSize(final int width, final int height, final int border) Sets the size of the tiles to use in rendering. The actual effective size of the tile depends on the border size, ie ( width - 2*border ) * ( height - 2 * border )
Implementation
| |
| tileDetails | back to summary |
|---|---|
| protected StringBuilder tileDetails(final StringBuilder sb) Overrides com.
| |