The following functions provide various routines for adding, removing, and updating ScreenOverlays in Google Earth. More...
Functions | |
int | GE_GetScreenOverlayCount () |
Returns the current number of ScreenOverlays added to the Google Earth map by the GE SDK. | |
BOOL | GE_RefreshScreenOverlay (STRING overlay_name) |
Forces an update to the ScreenOverlay with the given ScreenOverlay name. | |
BOOL | GE_AddScreenOverlay (STRING overlay_name, STRING image_url) |
Adds a new ScreenOverlay to Google Earth. | |
BOOL | GE_AddScreenOverlayEx (STRING overlay_name, STRING image_url, double overlayXY_x, double overlayXY_y, int overlayXY_xunits, int overlayXY_yunits, double screenXY_x, double screenXY_y, int screenXY_xunits, int screenXY_yunits, double rotationXY_x, double rotationXY_y, int rotationXY_xunits, int rotationXY_yunits, double size_x, double size_y, int size_xunits, int size_yunits) |
Adds a new ScreenOverlay to Google Earth with additional settings. | |
BOOL | GE_DeleteScreenOverlay (STRING overlay_name) |
Removes the ScreenOverlay with the given name from the Google Earth map. | |
BOOL | GE_ScreenOverlayExists (STRING overlay_name, int *index) |
Determines if a ScreenOverlay with the given name has been added to Google Earth by the GE SDK. | |
BOOL | GE_ScreenOverlayVisible (STRING overlay_name) |
Determines if the ScreenOverlay with the given name is currently visible in Google Earth. | |
BOOL | GE_ShowScreenOverlay (STRING overlay_name) |
Sets the ScreenOverlay with the given name to visible. | |
BOOL | GE_HideScreenOverlay (STRING overlay_name) |
Sets the ScreenOverlay with the given name to invisible. | |
STRING | GE_GetScreenOverlayName (int index) |
Retrieves the name of the ScreenOverlay at the given index. | |
BOOL | GE_SetScreenOverlayName (STRING overlay_name, STRING new_name) |
Changes the name of a ScreenOverlay. | |
STRING | GE_GetScreenOverlaySnippet (STRING overlay_name) |
Retrieves a ScreenOverlay's snippet. | |
BOOL | GE_SetScreenOverlaySnippet (STRING overlay_name, STRING snippet) |
Changes the snippet of the given ScreenOverlay. | |
int | GE_GetScreenOverlaySnippetMaxLines (STRING overlay_name) |
Retrieves the given ScreenOverlay's snippet maxLines attribute value. | |
BOOL | GE_SetScreenOverlaySnippetMaxLines (STRING overlay_name, int max_lines) |
Changes the snippet maxLines attribute value for the given ScreenOverlay. | |
STRING | GE_GetScreenOverlayKML (STRING overlay_name) |
Retrieves the KML content that makes up the given ScreenOverlay. | |
STRING | GE_GetScreenOverlayDescription (STRING overlay_name) |
Retrieves the description of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlayDescription (STRING overlay_name, STRING description) |
Sets the description of the given ScreenOverlay. | |
STRING | GE_GetScreenOverlayColor (STRING overlay_name) |
Retrieves the given ScreenOverlay's current color. | |
BOOL | GE_SetScreenOverlayColor (STRING overlay_name, STRING color) |
Sets the given ScreenOverlay's color. | |
STRING | GE_GetScreenOverlayImageUrl (STRING overlay_name) |
Retrieves the full path to the image file of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlayImageUrl (STRING overlay_name, STRING url) |
Sets the overlay image for the given ScreenOverlay. | |
int | GE_GetScreenOverlayDrawOrder (STRING overlay_name) |
Retrieves the draw order of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlayDrawOrder (STRING overlay_name, int order) |
Sets the draw order for the given ScreenOverlay. | |
double | GE_GetScreenOverlayRotation (STRING overlay_name) |
Retrieves the current rotation angle of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlayRotation (STRING overlay_name, double rotation_angle) |
Sets the rotation angle of the given ScreenOverlay. | |
double * | GE_GetScreenOverlayOverlayXYPoint (STRING overlay_name) |
Retrieves the overlay-relative (x,y) point of the given ScreenOverlay. | |
int * | GE_GetScreenOverlayOverlayXYUnits (STRING overlay_name) |
Retrieves the units of the overlay-relative (x,y) point of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlayOverlayXY (STRING overlay_name, double x, double y, int xunits, int yunits) |
Sets the overlay-relative (x,y) point of the given ScreenOverlay. | |
double * | GE_GetScreenOverlayScreenXYPoint (STRING overlay_name) |
Retrieves the screen-relative (x,y) point of the given ScreenOverlay. | |
int * | GE_GetScreenOverlayScreenXYUnits (STRING overlay_name) |
Retrieves the units of the screen-relative (x,y) point of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlayScreenXY (STRING overlay_name, double x, double y, int xunits, int yunits) |
Sets the screen-relative (x,y) point of the given ScreenOverlay. | |
double * | GE_GetScreenOverlayRotationXYPoint (STRING overlay_name) |
Retrieves the screen-relative (x,y) rotation point of the given ScreenOverlay. | |
int * | GE_GetScreenOverlayRotationXYUnits (STRING overlay_name) |
Retrieves the units of the screen-relative (x,y) rotation point of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlayRotationXY (STRING overlay_name, double x, double y, int xunits, int yunits) |
Sets the screen-relative (x,y) rotation point of the given ScreenOverlay. | |
double * | GE_GetScreenOverlaySize (STRING overlay_name) |
Retrieves the horizontal and vertical (x,y) size of the given ScreenOverlay. | |
int * | GE_GetScreenOverlaySizeUnits (STRING overlay_name) |
Retrieves the units of the horizontal and vertial (x,y) size values of the given ScreenOverlay. | |
BOOL | GE_SetScreenOverlaySize (STRING overlay_name, double x, double y, int xunits, int yunits) |
Sets the the horizontal and vertical (x,y) size of the given ScreenOverlay. |
The following functions provide various routines for adding, removing, and updating ScreenOverlays in Google Earth.
ScreenOverlays are images that are drawn fixed to the current Google Earth viewport. ScreenOverlays are useful for displaying legends, symbology, or other various forms of up-front indicators.
int GE_GetScreenOverlayCount | ( | ) |
Returns the current number of ScreenOverlays added to the Google Earth map by the GE SDK.
BOOL GE_RefreshScreenOverlay | ( | STRING | overlay_name | ) |
Forces an update to the ScreenOverlay with the given ScreenOverlay name.
overlay_name | The name of the ScreenOverlay to update |
BOOL GE_AddScreenOverlay | ( | STRING | overlay_name, | |
STRING | image_url | |||
) |
Adds a new ScreenOverlay to Google Earth.
The overlay position is defaulted to the center of the screen.
overlay_name | The unique name for the ScreenOverlay | |
image_url | The full path to the image file representing this ScreenOverlay |
BOOL GE_AddScreenOverlayEx | ( | STRING | overlay_name, | |
STRING | image_url, | |||
double | overlayXY_x, | |||
double | overlayXY_y, | |||
int | overlayXY_xunits, | |||
int | overlayXY_yunits, | |||
double | screenXY_x, | |||
double | screenXY_y, | |||
int | screenXY_xunits, | |||
int | screenXY_yunits, | |||
double | rotationXY_x, | |||
double | rotationXY_y, | |||
int | rotationXY_xunits, | |||
int | rotationXY_yunits, | |||
double | size_x, | |||
double | size_y, | |||
int | size_xunits, | |||
int | size_yunits | |||
) |
Adds a new ScreenOverlay to Google Earth with additional settings.
overlay_name | The unique name for the ScreenOverlay | |
image_url | The full path to the image file representing this ScreenOverlay | |
overlayXY_x | The x-component relative to the given ScreenOverlay that is mapped to the screen's x-axis | |
overlayXY_y | The y-component relative to the given ScreenOverlay that is mapped to the screen's y-axis | |
overlayXY_xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the overlayXY_x component is specified | |
overlayXY_yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the overlayXY_y component is specified | |
screenXY_x | The x-component relative to the screen that is mapped to the given ScreenOverlay's x-axis | |
screenXY_y | The y-component relative to the screen that is mapped to the given ScreenOverlay's y-axis | |
screenXY_xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the screenXY_x component is specified | |
screenXY_yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the screenXY_y component is specified | |
rotationXY_x | The x-component relative to the screen that the given ScreenOverlay is rotated about | |
rotationXY_y | The y-component relative to the screen that the given ScreenOverlay is rotated about | |
rotationXY_xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the rotationXY_x component is specified | |
rotationXY_yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the rotationXY_y component is specified | |
size_x | The horizontal size of the given ScreenOverlay where [-1 uses image's native dimensions; 0 maintains the aspect ratio; n sets the value in the specified units] | |
size_y | The vertical size of the given ScreenOverlay where [-1 uses image's native dimensions; 0 maintains the aspect ratio; n sets the value in the specified units] | |
size_xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the size_x component is specified | |
size_yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the size_y component is specified |
BOOL GE_DeleteScreenOverlay | ( | STRING | overlay_name | ) |
Removes the ScreenOverlay with the given name from the Google Earth map.
overlay_name | The name of the ScreenOverlay to remove |
BOOL GE_ScreenOverlayExists | ( | STRING | overlay_name, | |
int * | index | |||
) |
Determines if a ScreenOverlay with the given name has been added to Google Earth by the GE SDK.
If the function returns TRUE, then the index parameter will contain a value that represents the index into the GE SDK internal ScreenOverlay collection.
overlay_name | The name of the ScreenOverlay | |
index | The index into the internal ScreenOverlay collection where overlay_name exists if found |
BOOL GE_ScreenOverlayVisible | ( | STRING | overlay_name | ) |
Determines if the ScreenOverlay with the given name is currently visible in Google Earth.
overlay_name | The name of the ScreenOverlay |
BOOL GE_ShowScreenOverlay | ( | STRING | overlay_name | ) |
Sets the ScreenOverlay with the given name to visible.
overlay_name | The name of the ScreenOverlay |
BOOL GE_HideScreenOverlay | ( | STRING | overlay_name | ) |
Sets the ScreenOverlay with the given name to invisible.
overlay_name | The name of the ScreenOverlay |
STRING GE_GetScreenOverlayName | ( | int | index | ) |
Retrieves the name of the ScreenOverlay at the given index.
index | The index into the internal ScreenOverlay collection |
BOOL GE_SetScreenOverlayName | ( | STRING | overlay_name, | |
STRING | new_name | |||
) |
Changes the name of a ScreenOverlay.
overlay_name | The name of an existing ScreenOverlay to be renamed | |
new_name | The new name to be given to the ScreenOverlay |
STRING GE_GetScreenOverlaySnippet | ( | STRING | overlay_name | ) |
Retrieves a ScreenOverlay's snippet.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlaySnippet | ( | STRING | overlay_name, | |
STRING | snippet | |||
) |
Changes the snippet of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
snippet | The snippet to be applied to the given ScreenOverlay |
int GE_GetScreenOverlaySnippetMaxLines | ( | STRING | overlay_name | ) |
Retrieves the given ScreenOverlay's snippet maxLines attribute value.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlaySnippetMaxLines | ( | STRING | overlay_name, | |
int | max_lines | |||
) |
Changes the snippet maxLines attribute value for the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
max_lines | The value to be applied to the maxLines attribute |
STRING GE_GetScreenOverlayKML | ( | STRING | overlay_name | ) |
Retrieves the KML content that makes up the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
STRING GE_GetScreenOverlayDescription | ( | STRING | overlay_name | ) |
Retrieves the description of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayDescription | ( | STRING | overlay_name, | |
STRING | description | |||
) |
Sets the description of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
description | The description to apply to the ScreenOverlay |
STRING GE_GetScreenOverlayColor | ( | STRING | overlay_name | ) |
Retrieves the given ScreenOverlay's current color.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayColor | ( | STRING | overlay_name, | |
STRING | color | |||
) |
Sets the given ScreenOverlay's color.
overlay_name | The name of the ScreenOverlay | |
color | A string representing the color formatted as aabbggrr, where aa is opacity, bb is blue, gg is green, and rr is red. |
STRING GE_GetScreenOverlayImageUrl | ( | STRING | overlay_name | ) |
Retrieves the full path to the image file of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayImageUrl | ( | STRING | overlay_name, | |
STRING | url | |||
) |
Sets the overlay image for the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
url | The full path to the overlay image file |
int GE_GetScreenOverlayDrawOrder | ( | STRING | overlay_name | ) |
Retrieves the draw order of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayDrawOrder | ( | STRING | overlay_name, | |
int | order | |||
) |
Sets the draw order for the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
order | The draw order to apply to the given overlay |
double GE_GetScreenOverlayRotation | ( | STRING | overlay_name | ) |
Retrieves the current rotation angle of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayRotation | ( | STRING | overlay_name, | |
double | rotation_angle | |||
) |
Sets the rotation angle of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
rotation_angle | The rotation angle of the ScreenOverlay in degrees |
double* GE_GetScreenOverlayOverlayXYPoint | ( | STRING | overlay_name | ) |
Retrieves the overlay-relative (x,y) point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
int* GE_GetScreenOverlayOverlayXYUnits | ( | STRING | overlay_name | ) |
Retrieves the units of the overlay-relative (x,y) point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayOverlayXY | ( | STRING | overlay_name, | |
double | x, | |||
double | y, | |||
int | xunits, | |||
int | yunits | |||
) |
Sets the overlay-relative (x,y) point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
x | The x-component relative to the given ScreenOverlay that is mapped to the screen's x-axis | |
y | The y-component relative to the given ScreenOverlay that is mapped to the screen's y-axis | |
xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the overlay x-component is specified | |
yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the overlay y-component is specified |
double* GE_GetScreenOverlayScreenXYPoint | ( | STRING | overlay_name | ) |
Retrieves the screen-relative (x,y) point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
int* GE_GetScreenOverlayScreenXYUnits | ( | STRING | overlay_name | ) |
Retrieves the units of the screen-relative (x,y) point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayScreenXY | ( | STRING | overlay_name, | |
double | x, | |||
double | y, | |||
int | xunits, | |||
int | yunits | |||
) |
Sets the screen-relative (x,y) point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
x | The x-component relative to the screen that is mapped to the given ScreenOverlay's x-axis | |
y | The y-component relative to the screen that is mapped to the given ScreenOverlay's y-axis | |
xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the screen x-component is specified | |
yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the screen y-component is specified |
double* GE_GetScreenOverlayRotationXYPoint | ( | STRING | overlay_name | ) |
Retrieves the screen-relative (x,y) rotation point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
int* GE_GetScreenOverlayRotationXYUnits | ( | STRING | overlay_name | ) |
Retrieves the units of the screen-relative (x,y) rotation point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlayRotationXY | ( | STRING | overlay_name, | |
double | x, | |||
double | y, | |||
int | xunits, | |||
int | yunits | |||
) |
Sets the screen-relative (x,y) rotation point of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
x | The x-component relative to the screen that the given ScreenOverlay is rotated about | |
y | The y-component relative to the screen that the given ScreenOverlay is rotated about | |
xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the rotation x-component is specified | |
yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the rotation y-component is specified |
double* GE_GetScreenOverlaySize | ( | STRING | overlay_name | ) |
Retrieves the horizontal and vertical (x,y) size of the given ScreenOverlay.
[-1 uses image's native dimensions; 0 maintains the aspect ratio; n sets the value in the specified units] .
overlay_name | The name of the ScreenOverlay |
int* GE_GetScreenOverlaySizeUnits | ( | STRING | overlay_name | ) |
Retrieves the units of the horizontal and vertial (x,y) size values of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay |
BOOL GE_SetScreenOverlaySize | ( | STRING | overlay_name, | |
double | x, | |||
double | y, | |||
int | xunits, | |||
int | yunits | |||
) |
Sets the the horizontal and vertical (x,y) size of the given ScreenOverlay.
overlay_name | The name of the ScreenOverlay | |
x | The horizontal size of the given ScreenOverlay where [-1 uses image's native dimensions; 0 maintains the aspect ratio; n sets the value in the specified units] | |
y | The vertical size of the given ScreenOverlay where [-1 uses image's native dimensions; 0 maintains the aspect ratio; n sets the value in the specified units] | |
xunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the size x-component is specified | |
yunits | The units (fraction (0), pixels (1), or insetPixels (2)) which the size y-component is specified |