|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
void |
dispose()
Tells the renderer to release all requested resources. |
void |
init(LocalWorld world,
EditSession editSession,
IOverlayChangeNotifier changeNotifier,
IRenderInfo renderInfo)
Callback to initialise and tell the IOverlayRenderer the world modell / edit session to be used for the resulting image. |
void |
paintOverlay(GC gc,
int offsetX,
int offsetY,
IRenderInfo renderInfo)
Should paint an area of the overlay starting at (offsetX, offsetY) of the size (gc.getClipping().width, .height) in screen coodinates on the given GC, starting at (0, 0). |
void |
setEnabled(boolean enabled)
Callback function to tell the overlay renderer whether it is enabled or not. |
void |
setScale(double scaleX,
double scaleY)
Callback function called when the resolution (pixel per world coordinate) changes. |
| Method Detail |
public void init(LocalWorld world,
EditSession editSession,
IOverlayChangeNotifier changeNotifier,
IRenderInfo renderInfo)
world - - access to the world model of the main renderereditSession - - access to the edit session of the main renderer. May be null it it does not use an edit session.changeNotifier - - can be used to request redrawing of areas of the render targetrenderInfo - - coordinate transformation
public void paintOverlay(GC gc,
int offsetX,
int offsetY,
IRenderInfo renderInfo)
gc - - GC to paint tooffsetX - - upper left corner of the overlay areaoffsetY - - upper left corner of the overlay arearenderInfo - - class for coordinate transformation
public void setScale(double scaleX,
double scaleY)
scaleX - - x pixel per world coordinatescaleY - - y pixel per world coordinatepublic void setEnabled(boolean enabled)
enabled - - the new statepublic void dispose()
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||