LuciadCPillar C# 2023.1.02
Luciad.Maps.Map.Renderer Class Reference

The Map renderer. More...

Inheritance diagram for Luciad.Maps.Map.Renderer:

Public Member Functions

void Destroy ()
 Disposes the Renderer. More...
 
void Dispose ()
 
bool Paint ()
 To be called by the host widget/component to paint. More...
 
Luciad.Cartesian.Coordinate ProjectPointOnTerrain (Luciad.Cartesian.Coordinate mapPoint)
 Projects the given point by moving it up or down towards the terrain. More...
 
Luciad.Drawing.Image ToImage ()
 Copies the current contents of the Map to an Image. More...
 

Detailed Description

The Map renderer.

This class allows you to paint the Map. Note: all methods must be called on the render thread. See here for more details on the threading rules.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Map::Renderer.

Member Function Documentation

◆ Destroy()

void Luciad.Maps.Map.Renderer.Destroy ( )
inline

Disposes the Renderer.

This method disposes all graphics related resources, and should be called when the OpenGL context is current. This method needs to be called before the Map instance is deleted.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Map::Renderer::destroy.

◆ Dispose()

void Luciad.Maps.Map.Renderer.Dispose ( )
inline

◆ Paint()

bool Luciad.Maps.Map.Renderer.Paint ( )
inline

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 the Map, and a repaint is needed. This allows to only call the paint() method when it is needed. whether the Map is idle. Idle means that no background processes are executing inside the Map, and that the result of the painting completely reflects the state of the Map.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Map::Renderer::paint.

◆ ProjectPointOnTerrain()

Luciad.Cartesian.Coordinate Luciad.Maps.Map.Renderer.ProjectPointOnTerrain ( Luciad.Cartesian.Coordinate  mapPoint)
inline

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.

mapPoint

a point in map coordinates

the projected location, in map coordinates.

2021.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Map::Renderer::projectPointOnTerrain.

◆ ToImage()

Luciad.Drawing.Image Luciad.Maps.Map.Renderer.ToImage ( )
inline

Copies the current contents of the Map to an Image.

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 the display scale. an Image that contains the content of the Map.

2020.0

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::Map::Renderer::toImage.