Package com.luciad.maps
Class Map.Renderer
java.lang.Object
com.luciad.maps.Map.Renderer
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
Map
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
destroy()
Disposes theRenderer
.protected void
finalize()
boolean
paint()
To be called by the host widget/component to paint.projectPointOnTerrain
(Coordinate mapPoint) Projects the given point by moving it up or down towards the terrain.toImage()
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
paint
public boolean paint()To be called by the host widget/component to paint.For OpenGL you must ensure that we have a current context.
The invalidation callback mechanism (
Map#setMapInvalidationCallback
) provides information on when something has changed on theMap
, and a repaint is needed. This allows to only call thepaint()
method when it is needed. -
toImage
Copies the current contents of theMap
to anImage
.For OpenGL you must ensure that we have a current context. This method will not wait until all processing is done.
The image size is equal to the
map
size
, multiplied by thedisplay scale
. -
projectPointOnTerrain
Projects the given point by moving it up or down towards the terrain.The projection is done along the axis that runs perpendicular to the ellipsoid surface at that point. If no terrain is available, the point is projected on the ellipsoid of the
map reference
.- Parameters:
mapPoint
- a point in map coordinates- Returns:
- the projected location, in map coordinates.
-
destroy
public void destroy()
-