public class OpenglDrawingSurface extends AbstractDrawingSurface implements RoverConstants
Copyright 2003-2009 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
javax.media.opengl.GL |
gl |
javax.media.opengl.glu.GLU |
glu |
backgroundColor, currentImageStyle, currentMapSet, currentPointStyle, currentPolygonStyle, currentPolylineStyle, currentTextStyle, foregroundColor, frame, invisiblePolylineStyle, largePrint, nightView, printing, renderImageStyle, renderMode, renderPointStyle, renderPolygonStyle, renderPolylineStyle, renderQuality, renderTextStyle, showInvisibleGraphicsALIGN_BOTTOM_CENTER, ALIGN_BOTTOM_FIT, ALIGN_BOTTOM_LEFT, ALIGN_BOTTOM_RIGHT, ALIGN_CENTER, ALIGN_CENTER_LEFT, ALIGN_CENTER_RIGHT, ALIGN_CODE_CENTER, ALIGN_CODE_FIT, ALIGN_CODE_HIGH, ALIGN_CODE_LOW, ALIGN_FIT, ALIGN_FIT_LEFT, ALIGN_FIT_RIGHT, ALIGN_TOP_CENTER, ALIGN_TOP_FIT, ALIGN_TOP_LEFT, ALIGN_TOP_RIGHT, COMMENT, DATA_FIELDS_MAX, EOF, FLOAT_COORDS, GEOMETRY_TYPE_NAMES, HAS_DATA, HAS_OFFSET, HAS_ROTATION, IMAGE, LIST, LUMP_CODE_TYPE_AREA, LUMP_CODE_TYPE_IMAGE, LUMP_CODE_TYPE_LINE, LUMP_CODE_TYPE_POINT, LUMP_CODE_TYPE_TEXT, MASK_TYPECODE, NAMING, POINT, POINT_COLOR, POLYGON, POLYLINE, POP, PUSH, ROTATION_MULT, TEXEL_COORD_MAX, TEXT, TEXT_LONG, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUEQUALITY_GOOD, QUALITY_OK, QUALITY_POOR, RENDER_EPHEMERA, RENDER_INDICATION, RENDER_RASTER, RENDER_RETICLE, RENDER_SELECTION, RENDER_VECTOR| Constructor and Description |
|---|
OpenglDrawingSurface(OpenglControl control,
javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
VideoPreferences videoPreferences) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
displayListFor(long key) |
int |
displayListFor(java.lang.Object key) |
void |
drawDisplayList(int displayListID) |
void |
drawImage(int dataID,
double x,
double y,
int ox,
int oy,
int rotation,
ImageSource image,
double imageScale,
int pixelsWide,
int pixelsHigh) |
void |
drawLiteralPoints(LiteralPointFile literalPoints)
Renders a set of literal (explicit color instead of styled "logical")
points.
|
void |
drawPoint(int dataID,
double x,
double y,
int ox,
int oy,
int rotation) |
void |
drawPolygon(int dataID,
DynamicDoubleArray coords) |
void |
drawPolyline(int dataID,
DoubleBuffer coords) |
void |
drawRasterImage(RasterImage image) |
void |
drawText(int dataID,
double x,
double y,
int ox,
int oy,
int rotation,
int alignment,
java.lang.String text) |
void |
drawTexture(OpenglTextureHandle texture,
double x,
double y,
double rotation,
double textureScale)
Just draws the given textureHandle as a rotated, scaled icon.
|
void |
drawWheelMenu(WheelMenu menu) |
void |
drawWheelMenuCenter(WheelMenu menu) |
void |
endDisplayList() |
void |
endTile() |
OpenglControl |
getControl()
Please don't abuse this.
|
boolean |
isDirty() |
void |
popName() |
void |
pushName(int i) |
void |
removeDisplayList(int displayListID) |
void |
setBackgroundColor(int rgb) |
void |
setForegroundColor(int rgb) |
void |
setFrame(MapViewFrame newFrame) |
void |
setPointStyle(int style) |
void |
setPointStyle(PointStyle style) |
void |
setPolygonStyle(int style) |
void |
setPolygonStyle(PolygonStyle style) |
void |
setPolylineStyle(int style) |
void |
setPolylineStyle(PolylineStyle style) |
void |
setTextStyle(int style) |
void |
setTextStyle(TextStyle style) |
int |
startDisplayList(long key) |
int |
startDisplayList(java.lang.Object key) |
void |
startDrawing() |
void |
startTile(RoverBytes bytes)
Sets up the transformations for the coordinates that are coming in.
|
void |
stopDrawing() |
copyBackBuffer, drawPolygon, drawPolyline, drawPolyline, isBackBufferSupported, isDisplayListSupported, isDrawingToBackBuffer, isLargePrint, isNightView, isPrinting, popState, pushState, setDrawingToBackBuffer, setImageStyle, setImageStyle, setImageStyle, setLargePrint, setMapSet, setNightView, setPointStyle, setPolygonStyle, setPolylineStyle, setPrinting, setRenderMode, setRenderQuality, setRenderScaleRegion, setShowInvisibleGraphics, setTextStylepublic OpenglDrawingSurface(OpenglControl control, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, VideoPreferences videoPreferences)
public OpenglControl getControl()
public boolean isDirty()
isDirty in interface DrawingSurfacepublic void startDrawing()
startDrawing in interface DrawingSurfacestartDrawing in class AbstractDrawingSurfacepublic void setFrame(MapViewFrame newFrame)
setFrame in interface DrawingSurfacesetFrame in class AbstractDrawingSurfacepublic void stopDrawing()
stopDrawing in interface DrawingSurfacestopDrawing in class AbstractDrawingSurfacepublic void startTile(RoverBytes bytes)
public void endTile()
public void clear()
clear in interface DrawingSurfacepublic void setBackgroundColor(int rgb)
setBackgroundColor in interface DrawingSurfacesetBackgroundColor in class AbstractDrawingSurfacepublic void setForegroundColor(int rgb)
setForegroundColor in interface DrawingSurfacesetForegroundColor in class AbstractDrawingSurfacepublic void setPolygonStyle(PolygonStyle style)
setPolygonStyle in interface DrawingSurfacesetPolygonStyle in class AbstractDrawingSurfacepublic void setPolygonStyle(int style)
setPolygonStyle in interface DrawingSurfacesetPolygonStyle in class AbstractDrawingSurfacepublic void setPolylineStyle(int style)
setPolylineStyle in interface DrawingSurfacesetPolylineStyle in class AbstractDrawingSurfacepublic void setPolylineStyle(PolylineStyle style)
setPolylineStyle in interface DrawingSurfacesetPolylineStyle in class AbstractDrawingSurfacepublic void setPointStyle(int style)
setPointStyle in interface DrawingSurfacesetPointStyle in class AbstractDrawingSurfacepublic void setPointStyle(PointStyle style)
setPointStyle in interface DrawingSurfacesetPointStyle in class AbstractDrawingSurfacepublic void setTextStyle(int style)
setTextStyle in interface DrawingSurfacesetTextStyle in class AbstractDrawingSurfacepublic void setTextStyle(TextStyle style)
setTextStyle in interface DrawingSurfacesetTextStyle in class AbstractDrawingSurfacepublic void drawPolygon(int dataID,
DynamicDoubleArray coords)
drawPolygon in interface DrawingSurfacedrawPolygon in class AbstractDrawingSurfacepublic void drawImage(int dataID,
double x,
double y,
int ox,
int oy,
int rotation,
ImageSource image,
double imageScale,
int pixelsWide,
int pixelsHigh)
drawImage in interface DrawingSurfacepublic void drawPolyline(int dataID,
DoubleBuffer coords)
drawPolyline in interface DrawingSurfacedrawPolyline in class AbstractDrawingSurfacepublic void drawPoint(int dataID,
double x,
double y,
int ox,
int oy,
int rotation)
drawPoint in interface DrawingSurfacedrawPoint in class AbstractDrawingSurfacepublic void drawText(int dataID,
double x,
double y,
int ox,
int oy,
int rotation,
int alignment,
java.lang.String text)
drawText in interface DrawingSurfacedrawText in class AbstractDrawingSurfacepublic void drawRasterImage(RasterImage image)
drawRasterImage in interface DrawingSurfacepublic void drawWheelMenuCenter(WheelMenu menu)
drawWheelMenuCenter in interface DrawingSurfacepublic void drawWheelMenu(WheelMenu menu)
drawWheelMenu in interface DrawingSurfacepublic int displayListFor(java.lang.Object key)
displayListFor in interface DrawingSurfacedisplayListFor in class AbstractDrawingSurfacepublic int displayListFor(long key)
displayListFor in interface DrawingSurfacedisplayListFor in class AbstractDrawingSurfacepublic int startDisplayList(long key)
startDisplayList in interface DrawingSurfacestartDisplayList in class AbstractDrawingSurfacepublic int startDisplayList(java.lang.Object key)
startDisplayList in interface DrawingSurfacestartDisplayList in class AbstractDrawingSurfacepublic void endDisplayList()
endDisplayList in interface DrawingSurfaceendDisplayList in class AbstractDrawingSurfacepublic void drawDisplayList(int displayListID)
drawDisplayList in interface DrawingSurfacedrawDisplayList in class AbstractDrawingSurfacepublic void removeDisplayList(int displayListID)
removeDisplayList in interface DrawingSurfaceremoveDisplayList in class AbstractDrawingSurfacepublic void popName()
popName in interface DrawingSurfacepublic void pushName(int i)
pushName in interface DrawingSurfacepublic void drawLiteralPoints(LiteralPointFile literalPoints)
drawLiteralPoints in interface DrawingSurfacedrawLiteralPoints in class AbstractDrawingSurfaceliteralPoints - public void drawTexture(OpenglTextureHandle texture, double x, double y, double rotation, double textureScale)