id int32 0 58k | repo stringlengths 5 67 | path stringlengths 4 116 | func_name stringlengths 0 58 | original_string stringlengths 52 373k | language stringclasses 1
value | code stringlengths 52 373k | code_tokens list | docstring stringlengths 4 11.8k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 86 226 |
|---|---|---|---|---|---|---|---|---|---|---|---|
10,500 | NASAWorldWind/WebWorldWind | src/formats/geotiff/GeoTiffUtil.js | function (geoTiffData, byteOffset, numOfBytes, sampleFormat, isLittleEndian) {
var res;
switch (sampleFormat) {
case TiffConstants.SampleFormat.UNSIGNED:
res = this.getBytes(geoTiffData, byteOffset, numOfBytes, isLittleEndian, false);
... | javascript | function (geoTiffData, byteOffset, numOfBytes, sampleFormat, isLittleEndian) {
var res;
switch (sampleFormat) {
case TiffConstants.SampleFormat.UNSIGNED:
res = this.getBytes(geoTiffData, byteOffset, numOfBytes, isLittleEndian, false);
... | [
"function",
"(",
"geoTiffData",
",",
"byteOffset",
",",
"numOfBytes",
",",
"sampleFormat",
",",
"isLittleEndian",
")",
"{",
"var",
"res",
";",
"switch",
"(",
"sampleFormat",
")",
"{",
"case",
"TiffConstants",
".",
"SampleFormat",
".",
"UNSIGNED",
":",
"res",
... | Get sample value from an arraybuffer depending on the sample format. Internal use only. | [
"Get",
"sample",
"value",
"from",
"an",
"arraybuffer",
"depending",
"on",
"the",
"sample",
"format",
".",
"Internal",
"use",
"only",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/geotiff/GeoTiffUtil.js#L74-L104 | |
10,501 | NASAWorldWind/WebWorldWind | src/formats/geotiff/GeoTiffUtil.js | function (colorSample, bitsPerSample) {
var multiplier = Math.pow(2, 8 - bitsPerSample);
return Math.floor((colorSample * multiplier) + (multiplier - 1));
} | javascript | function (colorSample, bitsPerSample) {
var multiplier = Math.pow(2, 8 - bitsPerSample);
return Math.floor((colorSample * multiplier) + (multiplier - 1));
} | [
"function",
"(",
"colorSample",
",",
"bitsPerSample",
")",
"{",
"var",
"multiplier",
"=",
"Math",
".",
"pow",
"(",
"2",
",",
"8",
"-",
"bitsPerSample",
")",
";",
"return",
"Math",
".",
"floor",
"(",
"(",
"colorSample",
"*",
"multiplier",
")",
"+",
"(",... | Clamp color sample from color sample value and number of bits per sample. Internal use only. | [
"Clamp",
"color",
"sample",
"from",
"color",
"sample",
"value",
"and",
"number",
"of",
"bits",
"per",
"sample",
".",
"Internal",
"use",
"only",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/geotiff/GeoTiffUtil.js#L115-L118 | |
10,502 | NASAWorldWind/WebWorldWind | src/gesture/PinchRecognizer.js | function (target, callback) {
GestureRecognizer.call(this, target, callback);
// Intentionally not documented.
this._scale = 1;
// Intentionally not documented.
this._offsetScale = 1;
// Intentionally not documented.
this.referenceDi... | javascript | function (target, callback) {
GestureRecognizer.call(this, target, callback);
// Intentionally not documented.
this._scale = 1;
// Intentionally not documented.
this._offsetScale = 1;
// Intentionally not documented.
this.referenceDi... | [
"function",
"(",
"target",
",",
"callback",
")",
"{",
"GestureRecognizer",
".",
"call",
"(",
"this",
",",
"target",
",",
"callback",
")",
";",
"// Intentionally not documented.",
"this",
".",
"_scale",
"=",
"1",
";",
"// Intentionally not documented.",
"this",
"... | Constructs a pinch gesture recognizer.
@alias PinchRecognizer
@constructor
@augments GestureRecognizer
@classdesc A concrete gesture recognizer subclass that looks for two finger pinch gestures.
@param {EventTarget} target The document element this gesture recognizer observes for mouse and touch events.
@param {Functio... | [
"Constructs",
"a",
"pinch",
"gesture",
"recognizer",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/gesture/PinchRecognizer.js#L36-L56 | |
10,503 | NASAWorldWind/WebWorldWind | performance/VeryManyPolygons.js | function (o) {
// The input argument is either an Event or a TapRecognizer. Both have the same properties for determining
// the mouse or tap location.
var x = o.clientX,
y = o.clientY;
var redrawRequired = highlightedItems.length > 0; // must redraw if w... | javascript | function (o) {
// The input argument is either an Event or a TapRecognizer. Both have the same properties for determining
// the mouse or tap location.
var x = o.clientX,
y = o.clientY;
var redrawRequired = highlightedItems.length > 0; // must redraw if w... | [
"function",
"(",
"o",
")",
"{",
"// The input argument is either an Event or a TapRecognizer. Both have the same properties for determining",
"// the mouse or tap location.",
"var",
"x",
"=",
"o",
".",
"clientX",
",",
"y",
"=",
"o",
".",
"clientY",
";",
"var",
"redrawRequir... | The pick-handling callback function. | [
"The",
"pick",
"-",
"handling",
"callback",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/performance/VeryManyPolygons.js#L104-L140 | |
10,504 | NASAWorldWind/WebWorldWind | src/geom/Frustum.js | function (left, right, bottom, top, near, far) {
if (!left || !right || !bottom || !top || !near || !far) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "Frustum", "constructor", "missingPlane"));
}
// Internal. Intentionally no... | javascript | function (left, right, bottom, top, near, far) {
if (!left || !right || !bottom || !top || !near || !far) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "Frustum", "constructor", "missingPlane"));
}
// Internal. Intentionally no... | [
"function",
"(",
"left",
",",
"right",
",",
"bottom",
",",
"top",
",",
"near",
",",
"far",
")",
"{",
"if",
"(",
"!",
"left",
"||",
"!",
"right",
"||",
"!",
"bottom",
"||",
"!",
"top",
"||",
"!",
"near",
"||",
"!",
"far",
")",
"{",
"throw",
"n... | Constructs a frustum.
@alias Frustum
@constructor
@classdesc Represents a six-sided view frustum in Cartesian coordinates.
@param {Plane} left The frustum's left plane.
@param {Plane} right The frustum's right plane.
@param {Plane} bottom The frustum's bottom plane.
@param {Plane} top The frustum's top plane.
@param {P... | [
"Constructs",
"a",
"frustum",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/geom/Frustum.js#L45-L61 | |
10,505 | NASAWorldWind/WebWorldWind | src/gesture/Touch.js | function (identifier, clientX, clientY) {
/**
* A number uniquely identifying this touch point.
* @type {Number}
* @readonly
*/
this.identifier = identifier;
// Intentionally not documented.
this._clientX = clientX;
... | javascript | function (identifier, clientX, clientY) {
/**
* A number uniquely identifying this touch point.
* @type {Number}
* @readonly
*/
this.identifier = identifier;
// Intentionally not documented.
this._clientX = clientX;
... | [
"function",
"(",
"identifier",
",",
"clientX",
",",
"clientY",
")",
"{",
"/**\n * A number uniquely identifying this touch point.\n * @type {Number}\n * @readonly\n */",
"this",
".",
"identifier",
"=",
"identifier",
";",
"// Intentional... | Constructs a touch point.
@alias Touch
@constructor
@classdesc Represents a touch point.
@param {Color} identifier A number uniquely identifying the touch point
@param {Number} clientX The X coordinate of the touch point's location.
@param {Number} clientY The Y coordinate of the touch point's location. | [
"Constructs",
"a",
"touch",
"point",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/gesture/Touch.js#L33-L53 | |
10,506 | NASAWorldWind/WebWorldWind | src/util/Insets.js | function (top, left, bottom, right) {
if (arguments.length !== 4) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "Insets", "constructor", "invalidArgumentCount"));
}
// These are all documented with their property accessors bel... | javascript | function (top, left, bottom, right) {
if (arguments.length !== 4) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "Insets", "constructor", "invalidArgumentCount"));
}
// These are all documented with their property accessors bel... | [
"function",
"(",
"top",
",",
"left",
",",
"bottom",
",",
"right",
")",
"{",
"if",
"(",
"arguments",
".",
"length",
"!==",
"4",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"Inse... | Constructs an Insets object that is a representation of the borders of a container.
It specifies the space that a container must leave at each of its edges.
@alias Insets
@param {Number} top The inset from the top.
@param {Number} left The inset from the left.
@param {Number} bottom The inset from the bottom.
@param {N... | [
"Constructs",
"an",
"Insets",
"object",
"that",
"is",
"a",
"representation",
"of",
"the",
"borders",
"of",
"a",
"container",
".",
"It",
"specifies",
"the",
"space",
"that",
"a",
"container",
"must",
"leave",
"at",
"each",
"of",
"its",
"edges",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/Insets.js#L34-L46 | |
10,507 | NASAWorldWind/WebWorldWind | src/ogc/ows/OwsServiceProvider.js | function (element) {
if (!element) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "OwsServiceProvider", "constructor", "missingDomElement"));
}
var children = element.children || element.childNodes;
for (var c = 0; c... | javascript | function (element) {
if (!element) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "OwsServiceProvider", "constructor", "missingDomElement"));
}
var children = element.children || element.childNodes;
for (var c = 0; c... | [
"function",
"(",
"element",
")",
"{",
"if",
"(",
"!",
"element",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"OwsServiceProvider\"",
",",
"\"constructor\"",
",",
"\"missingDomElement\"",... | Constructs an OWS Service Provider instance from an XML DOM.
@alias OwsServiceProvider
@constructor
@classdesc Represents an OWS Service Provider section of an OGC capabilities document.
This object holds as properties all the fields specified in the OWS Service Provider section.
Fields can be accessed as properties na... | [
"Constructs",
"an",
"OWS",
"Service",
"Provider",
"instance",
"from",
"an",
"XML",
"DOM",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/ogc/ows/OwsServiceProvider.js#L39-L57 | |
10,508 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaLoader.js | function (position, config) {
if (!position) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ColladaLoader", "constructor", "missingPosition"));
}
this.position = position;
this.dirPath = '/';
this.ini... | javascript | function (position, config) {
if (!position) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ColladaLoader", "constructor", "missingPosition"));
}
this.position = position;
this.dirPath = '/';
this.ini... | [
"function",
"(",
"position",
",",
"config",
")",
"{",
"if",
"(",
"!",
"position",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"ColladaLoader\"",
",",
"\"constructor\"",
",",
"\"missi... | Constructs a ColladaLoader
@alias ColladaLoader
@constructor
@classdesc Represents a Collada Loader. Fetches and parses a collada document and returns the
necessary information to render the collada model.
@param {Position} position The model's geographic position.
@param {Object} config Configuration options for the l... | [
"Constructs",
"a",
"ColladaLoader"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaLoader.js#L55-L67 | |
10,509 | NASAWorldWind/WebWorldWind | src/gesture/TapRecognizer.js | function (target, callback) {
GestureRecognizer.call(this, target, callback);
/**
*
* @type {Number}
*/
this.numberOfTaps = 1;
/**
*
* @type {Number}
*/
this.numberOfTouches = 1;
... | javascript | function (target, callback) {
GestureRecognizer.call(this, target, callback);
/**
*
* @type {Number}
*/
this.numberOfTaps = 1;
/**
*
* @type {Number}
*/
this.numberOfTouches = 1;
... | [
"function",
"(",
"target",
",",
"callback",
")",
"{",
"GestureRecognizer",
".",
"call",
"(",
"this",
",",
"target",
",",
"callback",
")",
";",
"/**\n *\n * @type {Number}\n */",
"this",
".",
"numberOfTaps",
"=",
"1",
";",
"/**\n ... | Constructs a tap gesture recognizer.
@alias TapRecognizer
@constructor
@augments GestureRecognizer
@classdesc A concrete gesture recognizer subclass that looks for single or multiple taps.
@param {EventTarget} target The document element this gesture recognizer observes for mouse and touch events.
@param {Function} cal... | [
"Constructs",
"a",
"tap",
"gesture",
"recognizer",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/gesture/TapRecognizer.js#L36-L65 | |
10,510 | NASAWorldWind/WebWorldWind | src/globe/ElevationCoverage.js | function (resolution) {
if (!resolution) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ElevationCoverage", "constructor",
"missingResolution"));
}
/**
* Indicates the last time this coverag... | javascript | function (resolution) {
if (!resolution) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ElevationCoverage", "constructor",
"missingResolution"));
}
/**
* Indicates the last time this coverag... | [
"function",
"(",
"resolution",
")",
"{",
"if",
"(",
"!",
"resolution",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"ElevationCoverage\"",
",",
"\"constructor\"",
",",
"\"missingResolutio... | Constructs an ElevationCoverage
@alias ElevationCoverage
@constructor
@classdesc When used directly and not through a subclass, this class represents an elevation coverage
whose elevations are zero at all locations.
@param {Number} resolution The resolution of the coverage, in degrees. (To compute degrees from
meters, ... | [
"Constructs",
"an",
"ElevationCoverage"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/globe/ElevationCoverage.js#L38-L79 | |
10,511 | NASAWorldWind/WebWorldWind | src/globe/UsgsNedElevationCoverage.js | function () {
// CONUS Extent: (-124.848974, 24.396308) - (-66.885444, 49.384358)
// TODO: Expand this extent to cover HI when the server NO_DATA value issue is resolved.
TiledElevationCoverage.call(this, {
coverageSector: new Sector(24.396308, 49.384358, -124.848974,... | javascript | function () {
// CONUS Extent: (-124.848974, 24.396308) - (-66.885444, 49.384358)
// TODO: Expand this extent to cover HI when the server NO_DATA value issue is resolved.
TiledElevationCoverage.call(this, {
coverageSector: new Sector(24.396308, 49.384358, -124.848974,... | [
"function",
"(",
")",
"{",
"// CONUS Extent: (-124.848974, 24.396308) - (-66.885444, 49.384358)",
"// TODO: Expand this extent to cover HI when the server NO_DATA value issue is resolved.",
"TiledElevationCoverage",
".",
"call",
"(",
"this",
",",
"{",
"coverageSector",
":",
"new",
"S... | Constructs an Earth elevation coverage using USGS NED data.
@alias UsgsNedElevationCoverage
@constructor
@augments TiledElevationCoverage
@classdesc Provides elevations for Earth. Elevations are drawn from the NASA WorldWind elevation service. | [
"Constructs",
"an",
"Earth",
"elevation",
"coverage",
"using",
"USGS",
"NED",
"data",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/globe/UsgsNedElevationCoverage.js#L39-L52 | |
10,512 | NASAWorldWind/WebWorldWind | src/layer/TectonicPlatesLayer.js | function (shapeAttributes) {
RenderableLayer.call(this, "Tectonic Plates");
if (shapeAttributes) {
this._attributes = shapeAttributes;
} else {
this._attributes = new ShapeAttributes(null);
this._attributes.drawInterior = false;
this._attributes.d... | javascript | function (shapeAttributes) {
RenderableLayer.call(this, "Tectonic Plates");
if (shapeAttributes) {
this._attributes = shapeAttributes;
} else {
this._attributes = new ShapeAttributes(null);
this._attributes.drawInterior = false;
this._attributes.d... | [
"function",
"(",
"shapeAttributes",
")",
"{",
"RenderableLayer",
".",
"call",
"(",
"this",
",",
"\"Tectonic Plates\"",
")",
";",
"if",
"(",
"shapeAttributes",
")",
"{",
"this",
".",
"_attributes",
"=",
"shapeAttributes",
";",
"}",
"else",
"{",
"this",
".",
... | Constructs a layer showing the Earth's tectonic plates.
@alias TectonicPlatesLayer
@constructor
@classdesc Provides a layer showing the Earth's tectonic plates. The plates are drawn as
[SurfacePolygons]{@link SurfacePolygon}.
@param {ShapeAttributes} shapeAttributes The attributes to use when drawing the plates.
May be... | [
"Constructs",
"a",
"layer",
"showing",
"the",
"Earth",
"s",
"tectonic",
"plates",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/TectonicPlatesLayer.js#L48-L61 | |
10,513 | NASAWorldWind/WebWorldWind | src/util/SunPosition.js | function (date) {
if (date instanceof Date === false) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "SunPosition", "getAsGeographicLocation",
"missingDate"));
}
var celestialLocat... | javascript | function (date) {
if (date instanceof Date === false) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "SunPosition", "getAsGeographicLocation",
"missingDate"));
}
var celestialLocat... | [
"function",
"(",
"date",
")",
"{",
"if",
"(",
"date",
"instanceof",
"Date",
"===",
"false",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"SunPosition\"",
",",
"\"getAsGeographicLocation... | Computes the geographic location of the sun for a given date
@param {Date} date
@throws {ArgumentError} if the date is missing
@return {{latitude: Number, longitude: Number}} the geographic location | [
"Computes",
"the",
"geographic",
"location",
"of",
"the",
"sun",
"for",
"a",
"given",
"date"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/SunPosition.js#L42-L51 | |
10,514 | NASAWorldWind/WebWorldWind | src/util/SunPosition.js | function (date) {
if (date instanceof Date === false) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "SunPosition", "getAsCelestialLocation",
"missingDate"));
}
var julianDate = th... | javascript | function (date) {
if (date instanceof Date === false) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "SunPosition", "getAsCelestialLocation",
"missingDate"));
}
var julianDate = th... | [
"function",
"(",
"date",
")",
"{",
"if",
"(",
"date",
"instanceof",
"Date",
"===",
"false",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"SunPosition\"",
",",
"\"getAsCelestialLocation\... | Computes the celestial location of the sun for a given julianDate
@param {Date} date
@throws {ArgumentError} if the date is missing
@return {{declination: Number, rightAscension: Number}} the celestial location | [
"Computes",
"the",
"celestial",
"location",
"of",
"the",
"sun",
"for",
"a",
"given",
"julianDate"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/SunPosition.js#L59-L96 | |
10,515 | NASAWorldWind/WebWorldWind | src/util/SunPosition.js | function (date) {
if (date instanceof Date === false) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "SunPosition", "computeJulianDate", "missingDate"));
}
var year = date.getUTCFullYear();
va... | javascript | function (date) {
if (date instanceof Date === false) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "SunPosition", "computeJulianDate", "missingDate"));
}
var year = date.getUTCFullYear();
va... | [
"function",
"(",
"date",
")",
"{",
"if",
"(",
"date",
"instanceof",
"Date",
"===",
"false",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"SunPosition\"",
",",
"\"computeJulianDate\"",
... | Computes the julian date from a javascript date object
@param {Date} date
@throws {ArgumentError} if the date is missing
@return {Number} the julian date | [
"Computes",
"the",
"julian",
"date",
"from",
"a",
"javascript",
"date",
"object"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/SunPosition.js#L142-L167 | |
10,516 | NASAWorldWind/WebWorldWind | apps/util/TimeSeriesPlayer.js | function (worldWindow) {
var self = this;
this.createPlayer();
// Intentionally not documented.
this.slider = $("#timeSeriesSlider");
this.sliderThumb = $(this.slider.children('.ui-slider-handle'));
this.timeDisplay = $("#timeSeriesDisplay");// $('<span style="position:... | javascript | function (worldWindow) {
var self = this;
this.createPlayer();
// Intentionally not documented.
this.slider = $("#timeSeriesSlider");
this.sliderThumb = $(this.slider.children('.ui-slider-handle'));
this.timeDisplay = $("#timeSeriesDisplay");// $('<span style="position:... | [
"function",
"(",
"worldWindow",
")",
"{",
"var",
"self",
"=",
"this",
";",
"this",
".",
"createPlayer",
"(",
")",
";",
"// Intentionally not documented.",
"this",
".",
"slider",
"=",
"$",
"(",
"\"#timeSeriesSlider\"",
")",
";",
"this",
".",
"sliderThumb",
"=... | Constructs a TimeSeriesPlayer. A time sequence and layer must be specified after construction.
@alias TimeSeriesPlayer
@constructor
@classdesc Provides a control for time-series layers.
@param {WorldWindow} worldWindow The WorldWindow to associate this player. | [
"Constructs",
"a",
"TimeSeriesPlayer",
".",
"A",
"time",
"sequence",
"and",
"layer",
"must",
"be",
"specified",
"after",
"construction",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/apps/util/TimeSeriesPlayer.js#L30-L93 | |
10,517 | NASAWorldWind/WebWorldWind | src/formats/kml/KmlObject.js | function (options) {
Renderable.call(this);
options = options || {};
if (!options.objectNode) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "KmlObject", "constructor", "Passed node isn't defined.")
);
}
this._node = opt... | javascript | function (options) {
Renderable.call(this);
options = options || {};
if (!options.objectNode) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "KmlObject", "constructor", "Passed node isn't defined.")
);
}
this._node = opt... | [
"function",
"(",
"options",
")",
"{",
"Renderable",
".",
"call",
"(",
"this",
")",
";",
"options",
"=",
"options",
"||",
"{",
"}",
";",
"if",
"(",
"!",
"options",
".",
"objectNode",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logM... | Constructs an Kml object. Every node in the Kml document is either basic type or Kml object. Applications usually
don't call this constructor. It is usually called only by its descendants.
It should be treated as mixin.
@alias KmlObject
@classdesc Contains the data associated with every Kml object.
@param options {Obje... | [
"Constructs",
"an",
"Kml",
"object",
".",
"Every",
"node",
"in",
"the",
"Kml",
"document",
"is",
"either",
"basic",
"type",
"or",
"Kml",
"object",
".",
"Applications",
"usually",
"don",
"t",
"call",
"this",
"constructor",
".",
"It",
"is",
"usually",
"calle... | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/kml/KmlObject.js#L51-L68 | |
10,518 | NASAWorldWind/WebWorldWind | src/layer/StarFieldLayer.js | function (starDataSource) {
Layer.call(this, 'StarField');
// The StarField Layer is not pickable.
this.pickEnabled = false;
/**
* The size of the Sun in pixels.
* This can not exceed the maximum allowed pointSize of the GPU.
* A w... | javascript | function (starDataSource) {
Layer.call(this, 'StarField');
// The StarField Layer is not pickable.
this.pickEnabled = false;
/**
* The size of the Sun in pixels.
* This can not exceed the maximum allowed pointSize of the GPU.
* A w... | [
"function",
"(",
"starDataSource",
")",
"{",
"Layer",
".",
"call",
"(",
"this",
",",
"'StarField'",
")",
";",
"// The StarField Layer is not pickable.",
"this",
".",
"pickEnabled",
"=",
"false",
";",
"/**\n * The size of the Sun in pixels.\n * This c... | Constructs a layer showing stars and the Sun around the Earth.
If used together with the AtmosphereLayer, the StarFieldLayer must be inserted before the AtmosphereLayer.
If you want to use your own star data, the file provided must be .json
and the fields 'ra', 'dec' and 'vmag' must be present in the metadata.
ra and ... | [
"Constructs",
"a",
"layer",
"showing",
"stars",
"and",
"the",
"Sun",
"around",
"the",
"Earth",
".",
"If",
"used",
"together",
"with",
"the",
"AtmosphereLayer",
"the",
"StarFieldLayer",
"must",
"be",
"inserted",
"before",
"the",
"AtmosphereLayer",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/StarFieldLayer.js#L53-L110 | |
10,519 | NASAWorldWind/WebWorldWind | examples/WMTS.js | function (xmlDom) {
// Create a WmtsCapabilities object from the XML DOM
var wmtsCapabilities = new WorldWind.WmtsCapabilities(xmlDom);
// Retrieve a WmtsLayerCapabilities object by the desired layer name
var wmtsLayerCapabilities = wmtsCapabilities.getLayer(layerIdentifi... | javascript | function (xmlDom) {
// Create a WmtsCapabilities object from the XML DOM
var wmtsCapabilities = new WorldWind.WmtsCapabilities(xmlDom);
// Retrieve a WmtsLayerCapabilities object by the desired layer name
var wmtsLayerCapabilities = wmtsCapabilities.getLayer(layerIdentifi... | [
"function",
"(",
"xmlDom",
")",
"{",
"// Create a WmtsCapabilities object from the XML DOM",
"var",
"wmtsCapabilities",
"=",
"new",
"WorldWind",
".",
"WmtsCapabilities",
"(",
"xmlDom",
")",
";",
"// Retrieve a WmtsLayerCapabilities object by the desired layer name",
"var",
"wmt... | Called asynchronously to parse and create the WMTS layer | [
"Called",
"asynchronously",
"to",
"parse",
"and",
"create",
"the",
"WMTS",
"layer"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/examples/WMTS.js#L61-L74 | |
10,520 | NASAWorldWind/WebWorldWind | src/ogc/wmts/WmtsLayerCapabilities.js | function (layerElement, capabilities) {
if (!layerElement) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "WmtsLayerCapabilities", "constructor", "missingDomElement"));
}
OwsDescription.call(this, layerElement);
/**... | javascript | function (layerElement, capabilities) {
if (!layerElement) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "WmtsLayerCapabilities", "constructor", "missingDomElement"));
}
OwsDescription.call(this, layerElement);
/**... | [
"function",
"(",
"layerElement",
",",
"capabilities",
")",
"{",
"if",
"(",
"!",
"layerElement",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WmtsLayerCapabilities\"",
",",
"\"constructor... | Constructs an WMTS Layer instance from an XML DOM.
@alias WmtsLayerCapabilities
@constructor
@classdesc Represents a WMTS layer description from a WMTS Capabilities document. This object holds all the
fields specified in the associated WMTS Capabilities document.
@param {{}} layerElement A WMTS Layer element describing... | [
"Constructs",
"an",
"WMTS",
"Layer",
"instance",
"from",
"an",
"XML",
"DOM",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/ogc/wmts/WmtsLayerCapabilities.js#L42-L158 | |
10,521 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (value, minimum, maximum) {
return value < minimum ? minimum : value > maximum ? maximum : value;
} | javascript | function (value, minimum, maximum) {
return value < minimum ? minimum : value > maximum ? maximum : value;
} | [
"function",
"(",
"value",
",",
"minimum",
",",
"maximum",
")",
"{",
"return",
"value",
"<",
"minimum",
"?",
"minimum",
":",
"value",
">",
"maximum",
"?",
"maximum",
":",
"value",
";",
"}"
] | Returns a number within the range of a specified minimum and maximum.
@param {Number} value The value to clamp.
@param {Number} minimum The minimum value to return.
@param {Number} maximum The maximum value to return.
@returns {Number} The minimum value if the specified value is less than the minimum, the maximum value... | [
"Returns",
"a",
"number",
"within",
"the",
"range",
"of",
"a",
"specified",
"minimum",
"and",
"maximum",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L46-L48 | |
10,522 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (line, equatorialRadius, polarRadius, result) {
if (!line) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath",
"computeEllipsoidalGlobeIntersection", "missingLine"));
}
if (!result) {
... | javascript | function (line, equatorialRadius, polarRadius, result) {
if (!line) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath",
"computeEllipsoidalGlobeIntersection", "missingLine"));
}
if (!result) {
... | [
"function",
"(",
"line",
",",
"equatorialRadius",
",",
"polarRadius",
",",
"result",
")",
"{",
"if",
"(",
"!",
"line",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WWMath\"",
",",
... | Computes the Cartesian intersection point of a specified line with an ellipsoid.
@param {Line} line The line for which to compute the intersection.
@param {Number} equatorialRadius The ellipsoid's major radius.
@param {Number} polarRadius The ellipsoid's minor radius.
@param {Vec3} result A pre-allocated Vec3 instance ... | [
"Computes",
"the",
"Cartesian",
"intersection",
"point",
"of",
"a",
"specified",
"line",
"with",
"an",
"ellipsoid",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L86-L127 | |
10,523 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (origin, globe, xAxisResult, yAxisResult, zAxisResult) {
if (!origin) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath",
"localCoordinateAxesAtPoint", "missingVector"));
}
if (!globe) {
... | javascript | function (origin, globe, xAxisResult, yAxisResult, zAxisResult) {
if (!origin) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath",
"localCoordinateAxesAtPoint", "missingVector"));
}
if (!globe) {
... | [
"function",
"(",
"origin",
",",
"globe",
",",
"xAxisResult",
",",
"yAxisResult",
",",
"zAxisResult",
")",
"{",
"if",
"(",
"!",
"origin",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
... | Computes the axes of a local coordinate system on the specified globe, placing the resultant axes in the specified
axis arguments.
Upon return the specified axis arguments contain three orthogonal axes identifying the X, Y, and Z axes. Each
axis has unit length.
The local coordinate system is defined such that the Z ... | [
"Computes",
"the",
"axes",
"of",
"a",
"local",
"coordinate",
"system",
"on",
"the",
"specified",
"globe",
"placing",
"the",
"resultant",
"axes",
"in",
"the",
"specified",
"axis",
"arguments",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L486-L525 | |
10,524 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (radius, altitude) {
if (radius < 0) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath",
"horizontalDistanceForGlobeRadius", "The specified globe radius is negative."));
}
return (radius > 0 && a... | javascript | function (radius, altitude) {
if (radius < 0) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath",
"horizontalDistanceForGlobeRadius", "The specified globe radius is negative."));
}
return (radius > 0 && a... | [
"function",
"(",
"radius",
",",
"altitude",
")",
"{",
"if",
"(",
"radius",
"<",
"0",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WWMath\"",
",",
"\"horizontalDistanceForGlobeRadius\""... | Computes the distance to a globe's horizon from a viewer at a given altitude.
Only the globe's ellipsoid is considered; terrain height is not incorporated. This returns zero if the radius is zero
or if the altitude is less than or equal to zero.
@param {Number} radius The globe's radius, in meters.
@param {Number} al... | [
"Computes",
"the",
"distance",
"to",
"a",
"globe",
"s",
"horizon",
"from",
"a",
"viewer",
"at",
"a",
"given",
"altitude",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L538-L545 | |
10,525 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (farDistance, farResolution, depthBits) {
if (farDistance < 0) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "perspectiveNearDistanceForFarDistance",
"The specified distance is negative."));
}
... | javascript | function (farDistance, farResolution, depthBits) {
if (farDistance < 0) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "perspectiveNearDistanceForFarDistance",
"The specified distance is negative."));
}
... | [
"function",
"(",
"farDistance",
",",
"farResolution",
",",
"depthBits",
")",
"{",
"if",
"(",
"farDistance",
"<",
"0",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WWMath\"",
",",
"... | Computes the near clip distance that corresponds to a specified far clip distance and resolution at the far clip
plane.
This computes a near clip distance appropriate for use in [perspectiveFrustumRect]{@link WWMath#perspectiveFrustumRectangle}
and [setToPerspectiveProjection]{@link Matrix#setToPerspectiveProjection}.... | [
"Computes",
"the",
"near",
"clip",
"distance",
"that",
"corresponds",
"to",
"a",
"specified",
"far",
"clip",
"distance",
"and",
"resolution",
"at",
"the",
"far",
"clip",
"plane",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L562-L581 | |
10,526 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (viewportWidth, viewportHeight, distance) {
if (viewportWidth <= 0) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "perspectiveFrustumRectangle",
"invalidWidth"));
}
if (viewportHeight <= 0)... | javascript | function (viewportWidth, viewportHeight, distance) {
if (viewportWidth <= 0) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "perspectiveFrustumRectangle",
"invalidWidth"));
}
if (viewportHeight <= 0)... | [
"function",
"(",
"viewportWidth",
",",
"viewportHeight",
",",
"distance",
")",
"{",
"if",
"(",
"viewportWidth",
"<=",
"0",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WWMath\"",
","... | Computes the coordinates of a rectangle carved out of a perspective projection's frustum at a given
distance in model coordinates. This returns an empty rectangle if the specified distance is zero.
@param {Number} viewportWidth The viewport width, in screen coordinates.
@param {Number} viewportHeight The viewport heig... | [
"Computes",
"the",
"coordinates",
"of",
"a",
"rectangle",
"carved",
"out",
"of",
"a",
"perspective",
"projection",
"s",
"frustum",
"at",
"a",
"given",
"distance",
"in",
"model",
"coordinates",
".",
"This",
"returns",
"an",
"empty",
"rectangle",
"if",
"the",
... | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L651-L672 | |
10,527 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (transformMatrix) {
if (!transformMatrix) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "boundingRectForUnitQuad",
"missingMatrix"));
}
var m = transformMatrix,
// transform... | javascript | function (transformMatrix) {
if (!transformMatrix) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "WWMath", "boundingRectForUnitQuad",
"missingMatrix"));
}
var m = transformMatrix,
// transform... | [
"function",
"(",
"transformMatrix",
")",
"{",
"if",
"(",
"!",
"transformMatrix",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WWMath\"",
",",
"\"boundingRectForUnitQuad\"",
",",
"\"missi... | Computes the bounding rectangle for a unit quadrilateral after applying a transformation matrix to that
quadrilateral.
@param {Matrix} transformMatrix The matrix to apply to the unit quadrilateral.
@returns {Rectangle} The computed bounding rectangle. | [
"Computes",
"the",
"bounding",
"rectangle",
"for",
"a",
"unit",
"quadrilateral",
"after",
"applying",
"a",
"transformation",
"matrix",
"to",
"that",
"quadrilateral",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L718-L743 | |
10,528 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (latitude) {
return Math.log(Math.tan(Math.PI / 4 + (latitude * Angle.DEGREES_TO_RADIANS) / 2)) / Math.PI;
} | javascript | function (latitude) {
return Math.log(Math.tan(Math.PI / 4 + (latitude * Angle.DEGREES_TO_RADIANS) / 2)) / Math.PI;
} | [
"function",
"(",
"latitude",
")",
"{",
"return",
"Math",
".",
"log",
"(",
"Math",
".",
"tan",
"(",
"Math",
".",
"PI",
"/",
"4",
"+",
"(",
"latitude",
"*",
"Angle",
".",
"DEGREES_TO_RADIANS",
")",
"/",
"2",
")",
")",
"/",
"Math",
".",
"PI",
";",
... | Calculates the Gudermannian inverse used to unproject Mercator projections.
@param {Number} latitude The latitude in degrees.
@returns {Number} The Gudermannian inverse for the specified latitude. | [
"Calculates",
"the",
"Gudermannian",
"inverse",
"used",
"to",
"unproject",
"Mercator",
"projections",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L769-L771 | |
10,529 | NASAWorldWind/WebWorldWind | src/util/WWMath.js | function (value) {
var power = Math.floor(Math.log(value) / Math.log(2));
return Math.pow(2, power);
} | javascript | function (value) {
var power = Math.floor(Math.log(value) / Math.log(2));
return Math.pow(2, power);
} | [
"function",
"(",
"value",
")",
"{",
"var",
"power",
"=",
"Math",
".",
"floor",
"(",
"Math",
".",
"log",
"(",
"value",
")",
"/",
"Math",
".",
"log",
"(",
"2",
")",
")",
";",
"return",
"Math",
".",
"pow",
"(",
"2",
",",
"power",
")",
";",
"}"
] | Returns the value that is the nearest power of 2 less than or equal to the given value.
@param {Number} value the reference value. The power of 2 returned is less than or equal to this value.
@returns {Number} the value that is the nearest power of 2 less than or equal to the reference value | [
"Returns",
"the",
"value",
"that",
"is",
"the",
"nearest",
"power",
"of",
"2",
"less",
"than",
"or",
"equal",
"to",
"the",
"given",
"value",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWMath.js#L789-L792 | |
10,530 | NASAWorldWind/WebWorldWind | src/layer/FrameStatisticsLayer.js | function (worldWindow) {
if (!worldWindow) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "FrameStatisticsLayer", "constructor", "missingWorldWindow"));
}
Layer.call(this, "Frame Statistics");
// No picking of this ... | javascript | function (worldWindow) {
if (!worldWindow) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "FrameStatisticsLayer", "constructor", "missingWorldWindow"));
}
Layer.call(this, "Frame Statistics");
// No picking of this ... | [
"function",
"(",
"worldWindow",
")",
"{",
"if",
"(",
"!",
"worldWindow",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"FrameStatisticsLayer\"",
",",
"\"constructor\"",
",",
"\"missingWorl... | Constructs a layer that displays the current performance statistics.
@alias FrameStatisticsLayer
@constructor
@augments Layer
@classDesc Displays the current performance statistics, which are collected each frame in the WorldWindow's
{@link FrameStatistics}. A frame statics layer cannot be shared among WorldWindows. Ea... | [
"Constructs",
"a",
"layer",
"that",
"displays",
"the",
"current",
"performance",
"statistics",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/FrameStatisticsLayer.js#L53-L85 | |
10,531 | NASAWorldWind/WebWorldWind | src/shapes/Compass.js | function (screenOffset, imagePath) {
var sOffset = screenOffset ? screenOffset
: new Offset(WorldWind.OFFSET_FRACTION, 1, WorldWind.OFFSET_FRACTION, 1), // upper-right placement
iPath = imagePath ? imagePath : WorldWind.configuration.baseUrl + "images/notched-compass.png";
... | javascript | function (screenOffset, imagePath) {
var sOffset = screenOffset ? screenOffset
: new Offset(WorldWind.OFFSET_FRACTION, 1, WorldWind.OFFSET_FRACTION, 1), // upper-right placement
iPath = imagePath ? imagePath : WorldWind.configuration.baseUrl + "images/notched-compass.png";
... | [
"function",
"(",
"screenOffset",
",",
"imagePath",
")",
"{",
"var",
"sOffset",
"=",
"screenOffset",
"?",
"screenOffset",
":",
"new",
"Offset",
"(",
"WorldWind",
".",
"OFFSET_FRACTION",
",",
"1",
",",
"WorldWind",
".",
"OFFSET_FRACTION",
",",
"1",
")",
",",
... | Constructs a compass.
@alias Compass
@constructor
@augments ScreenImage
@classdesc Displays a compass image at a specified location in the WorldWindow. The compass image rotates
and tilts to reflect the current navigator's heading and tilt.
@param {Offset} screenOffset The offset indicating the image's placement on the... | [
"Constructs",
"a",
"compass",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/shapes/Compass.js#L45-L66 | |
10,532 | NASAWorldWind/WebWorldWind | src/layer/heatmap/HeatMapLayer.js | function (displayName, measuredLocations, numLevels) {
this.tileWidth = 256;
this.tileHeight = 256;
TiledImageLayer.call(this, new Sector(-90, 90, -180, 180), new Location(45, 45), numLevels || 18, 'image/png', 'HeatMap' + WWUtil.guid(), this.tileWidth, this.tileHeight);
this.displayNa... | javascript | function (displayName, measuredLocations, numLevels) {
this.tileWidth = 256;
this.tileHeight = 256;
TiledImageLayer.call(this, new Sector(-90, 90, -180, 180), new Location(45, 45), numLevels || 18, 'image/png', 'HeatMap' + WWUtil.guid(), this.tileWidth, this.tileHeight);
this.displayNa... | [
"function",
"(",
"displayName",
",",
"measuredLocations",
",",
"numLevels",
")",
"{",
"this",
".",
"tileWidth",
"=",
"256",
";",
"this",
".",
"tileHeight",
"=",
"256",
";",
"TiledImageLayer",
".",
"call",
"(",
"this",
",",
"new",
"Sector",
"(",
"-",
"90"... | Constructs a HeatMap Layer.
The default implementation uses gradient circles to display measured locations. The measure of the locations
define the colors of the gradient.
@alias HeatMapLayer
@constructor
@augments TiledImageLayer
@classdesc A HeatMap layer for visualising an array of measured locations.
@param {Stri... | [
"Constructs",
"a",
"HeatMap",
"Layer",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/heatmap/HeatMapLayer.js#L57-L93 | |
10,533 | NASAWorldWind/WebWorldWind | src/gesture/PanRecognizer.js | function (target, callback) {
GestureRecognizer.call(this, target, callback);
/**
*
* @type {Number}
*/
this.minNumberOfTouches = 1;
/**
*
* @type {Number}
*/
this.maxNumberOfTouch... | javascript | function (target, callback) {
GestureRecognizer.call(this, target, callback);
/**
*
* @type {Number}
*/
this.minNumberOfTouches = 1;
/**
*
* @type {Number}
*/
this.maxNumberOfTouch... | [
"function",
"(",
"target",
",",
"callback",
")",
"{",
"GestureRecognizer",
".",
"call",
"(",
"this",
",",
"target",
",",
"callback",
")",
";",
"/**\n *\n * @type {Number}\n */",
"this",
".",
"minNumberOfTouches",
"=",
"1",
";",
"/... | Constructs a pan gesture recognizer.
@alias PanRecognizer
@constructor
@augments GestureRecognizer
@classdesc A concrete gesture recognizer subclass that looks for touch panning gestures.
@param {EventTarget} target The document element this gesture recognizer observes for mouse and touch events.
@param {Function} call... | [
"Constructs",
"a",
"pan",
"gesture",
"recognizer",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/gesture/PanRecognizer.js#L36-L53 | |
10,534 | NASAWorldWind/WebWorldWind | examples/MultiWindow.js | function () {
var pathAttributes = new WorldWind.ShapeAttributes(null);
pathAttributes.interiorColor = WorldWind.Color.CYAN;
pathAttributes.outlineColor= WorldWind.Color.BLUE;
var pathPositions = [
new WorldWind.Position(40, -100, 1e4),
new WorldWind.Position(45,... | javascript | function () {
var pathAttributes = new WorldWind.ShapeAttributes(null);
pathAttributes.interiorColor = WorldWind.Color.CYAN;
pathAttributes.outlineColor= WorldWind.Color.BLUE;
var pathPositions = [
new WorldWind.Position(40, -100, 1e4),
new WorldWind.Position(45,... | [
"function",
"(",
")",
"{",
"var",
"pathAttributes",
"=",
"new",
"WorldWind",
".",
"ShapeAttributes",
"(",
"null",
")",
";",
"pathAttributes",
".",
"interiorColor",
"=",
"WorldWind",
".",
"Color",
".",
"CYAN",
";",
"pathAttributes",
".",
"outlineColor",
"=",
... | Make a layer that shows a Path and is shared among the WorldWindows. | [
"Make",
"a",
"layer",
"that",
"shows",
"a",
"Path",
"and",
"is",
"shared",
"among",
"the",
"WorldWindows",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/examples/MultiWindow.js#L27-L46 | |
10,535 | NASAWorldWind/WebWorldWind | examples/ScreenImage.js | function (o) {
// The input argument is either an Event or a TapRecognizer. Both have the same properties for determining
// the mouse or tap location.
var x = o.clientX,
y = o.clientY;
// Perform the pick. Must first convert from window coordinates to ca... | javascript | function (o) {
// The input argument is either an Event or a TapRecognizer. Both have the same properties for determining
// the mouse or tap location.
var x = o.clientX,
y = o.clientY;
// Perform the pick. Must first convert from window coordinates to ca... | [
"function",
"(",
"o",
")",
"{",
"// The input argument is either an Event or a TapRecognizer. Both have the same properties for determining",
"// the mouse or tap location.",
"var",
"x",
"=",
"o",
".",
"clientX",
",",
"y",
"=",
"o",
".",
"clientY",
";",
"// Perform the pick. ... | Now set up to handle picking. The common pick-handling function. | [
"Now",
"set",
"up",
"to",
"handle",
"picking",
".",
"The",
"common",
"pick",
"-",
"handling",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/examples/ScreenImage.js#L90-L112 | |
10,536 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaScene.js | function (position, sceneData) {
if (!position) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ColladaScene", "constructor", "missingPosition"));
}
Renderable.call(this);
// Documented in defineProperties below.
... | javascript | function (position, sceneData) {
if (!position) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ColladaScene", "constructor", "missingPosition"));
}
Renderable.call(this);
// Documented in defineProperties below.
... | [
"function",
"(",
"position",
",",
"sceneData",
")",
"{",
"if",
"(",
"!",
"position",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"ColladaScene\"",
",",
"\"constructor\"",
",",
"\"mis... | Constructs a collada scene
@alias ColladaScene
@constructor
@augments Renderable
@classdesc Represents a scene. A scene is a collection of nodes with meshes, materials and textures.
@param {Position} position The scene's geographic position.
@param {Object} sceneData The scene's data containing the nodes, meshes, mater... | [
"Constructs",
"a",
"collada",
"scene"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaScene.js#L53-L125 | |
10,537 | NASAWorldWind/WebWorldWind | src/layer/LandsatRestLayer.js | function (serverAddress, pathToData, displayName) {
var cachePath = WWUtil.urlPath(serverAddress + "/" + pathToData);
TiledImageLayer.call(this, Sector.FULL_SPHERE, new Location(36, 36), 10, "image/png", cachePath, 512, 512);
this.displayName = displayName;
this.pickEna... | javascript | function (serverAddress, pathToData, displayName) {
var cachePath = WWUtil.urlPath(serverAddress + "/" + pathToData);
TiledImageLayer.call(this, Sector.FULL_SPHERE, new Location(36, 36), 10, "image/png", cachePath, 512, 512);
this.displayName = displayName;
this.pickEna... | [
"function",
"(",
"serverAddress",
",",
"pathToData",
",",
"displayName",
")",
"{",
"var",
"cachePath",
"=",
"WWUtil",
".",
"urlPath",
"(",
"serverAddress",
"+",
"\"/\"",
"+",
"pathToData",
")",
";",
"TiledImageLayer",
".",
"call",
"(",
"this",
",",
"Sector",... | Constructs a LandSat image layer that uses a REST interface to retrieve its imagery.
@alias LandsatRestLayer
@constructor
@augments TiledImageLayer
@classdesc Displays a LandSat image layer that spans the entire globe. The imagery is obtained from a
specified REST tile service.
See [LevelRowColumnUrlBuilder]{@link Leve... | [
"Constructs",
"a",
"LandSat",
"image",
"layer",
"that",
"uses",
"a",
"REST",
"interface",
"to",
"retrieve",
"its",
"imagery",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/LandsatRestLayer.js#L52-L60 | |
10,538 | NASAWorldWind/WebWorldWind | src/globe/Terrain.js | function (globe, tessellator, terrainTiles, verticalExaggeration) {
/**
* The globe associated with this terrain.
* @type {Globe}
*/
this.globe = globe;
/**
* The vertical exaggeration of this terrain.
* @type {Number... | javascript | function (globe, tessellator, terrainTiles, verticalExaggeration) {
/**
* The globe associated with this terrain.
* @type {Globe}
*/
this.globe = globe;
/**
* The vertical exaggeration of this terrain.
* @type {Number... | [
"function",
"(",
"globe",
",",
"tessellator",
",",
"terrainTiles",
",",
"verticalExaggeration",
")",
"{",
"/**\n * The globe associated with this terrain.\n * @type {Globe}\n */",
"this",
".",
"globe",
"=",
"globe",
";",
"/**\n * Th... | Constructs a Terrain object.
@alias Terrain
@constructor
@classdesc Represents terrain and provides functions for computing points on or relative to the terrain.
Applications do not typically interact directly with this class. | [
"Constructs",
"a",
"Terrain",
"object",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/globe/Terrain.js#L37-L77 | |
10,539 | NASAWorldWind/WebWorldWind | src/layer/AtmosphereLayer.js | function (nightImageSource) {
Layer.call(this, "Atmosphere");
// The atmosphere layer is not pickable.
this.pickEnabled = false;
//Documented in defineProperties below.
this._nightImageSource = nightImageSource ||
WorldWind.configuration.base... | javascript | function (nightImageSource) {
Layer.call(this, "Atmosphere");
// The atmosphere layer is not pickable.
this.pickEnabled = false;
//Documented in defineProperties below.
this._nightImageSource = nightImageSource ||
WorldWind.configuration.base... | [
"function",
"(",
"nightImageSource",
")",
"{",
"Layer",
".",
"call",
"(",
"this",
",",
"\"Atmosphere\"",
")",
";",
"// The atmosphere layer is not pickable.",
"this",
".",
"pickEnabled",
"=",
"false",
";",
"//Documented in defineProperties below.",
"this",
".",
"_nigh... | Constructs a layer showing the Earth's atmosphere.
@alias AtmosphereLayer
@constructor
@classdesc Provides a layer showing the Earth's atmosphere.
@param {URL} nightImageSource optional url for the night texture.
@augments Layer | [
"Constructs",
"a",
"layer",
"showing",
"the",
"Earth",
"s",
"atmosphere",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/AtmosphereLayer.js#L54-L87 | |
10,540 | NASAWorldWind/WebWorldWind | src/gesture/GestureRecognizer.js | function (target, callback) {
if (!target) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "GestureRecognizer", "constructor", "missingTarget"));
}
/**
* Indicates the document element this ge... | javascript | function (target, callback) {
if (!target) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "GestureRecognizer", "constructor", "missingTarget"));
}
/**
* Indicates the document element this ge... | [
"function",
"(",
"target",
",",
"callback",
")",
"{",
"if",
"(",
"!",
"target",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"GestureRecognizer\"",
",",
"\"constructor\"",
",",
"\"mis... | Constructs a base gesture recognizer. This is an abstract base class and not intended to be instantiated
directly.
@alias GestureRecognizer
@constructor
@classdesc Gesture recognizers translate user input event streams into higher level actions. A gesture
recognizer is associated with an event target, which dispatches ... | [
"Constructs",
"a",
"base",
"gesture",
"recognizer",
".",
"This",
"is",
"an",
"abstract",
"base",
"class",
"and",
"not",
"intended",
"to",
"be",
"instantiated",
"directly",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/gesture/GestureRecognizer.js#L47-L129 | |
10,541 | NASAWorldWind/WebWorldWind | src/geom/Sector.js | function (minLatitude, maxLatitude, minLongitude, maxLongitude) {
/**
* This sector's minimum latitude in degrees.
* @type {Number}
*/
this.minLatitude = minLatitude;
/**
* This sector's maximum latitude in degrees.
* @... | javascript | function (minLatitude, maxLatitude, minLongitude, maxLongitude) {
/**
* This sector's minimum latitude in degrees.
* @type {Number}
*/
this.minLatitude = minLatitude;
/**
* This sector's maximum latitude in degrees.
* @... | [
"function",
"(",
"minLatitude",
",",
"maxLatitude",
",",
"minLongitude",
",",
"maxLongitude",
")",
"{",
"/**\n * This sector's minimum latitude in degrees.\n * @type {Number}\n */",
"this",
".",
"minLatitude",
"=",
"minLatitude",
";",
"/**\n ... | Constructs a Sector from specified minimum and maximum latitudes and longitudes in degrees.
@alias Sector
@constructor
@classdesc Represents a rectangular region in geographic coordinates in degrees.
@param {Number} minLatitude The sector's minimum latitude in degrees.
@param {Number} maxLatitude The sector's maximum l... | [
"Constructs",
"a",
"Sector",
"from",
"specified",
"minimum",
"and",
"maximum",
"latitudes",
"and",
"longitudes",
"in",
"degrees",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/geom/Sector.js#L46-L67 | |
10,542 | NASAWorldWind/WebWorldWind | src/layer/heatmap/HeatMapColoredTile.js | function(data, options) {
HeatMapTile.call(this, data, options);
this._extendedWidth = options.extendedWidth;
this._extendedHeight = options.extendedHeight;
this._gradient = this.gradient(options.intensityGradient);
} | javascript | function(data, options) {
HeatMapTile.call(this, data, options);
this._extendedWidth = options.extendedWidth;
this._extendedHeight = options.extendedHeight;
this._gradient = this.gradient(options.intensityGradient);
} | [
"function",
"(",
"data",
",",
"options",
")",
"{",
"HeatMapTile",
".",
"call",
"(",
"this",
",",
"data",
",",
"options",
")",
";",
"this",
".",
"_extendedWidth",
"=",
"options",
".",
"extendedWidth",
";",
"this",
".",
"_extendedHeight",
"=",
"options",
"... | Constructs a HeatMapColoredTile.
The default implementation using the shades of gray to draw the information produced by the HeatMapTile is a source
for coloring. This class colours the provided canvas based on the information contained in the intensityGradient.
@inheritDoc
@alias HeatMapColoredTile
@constructor
@au... | [
"Constructs",
"a",
"HeatMapColoredTile",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/heatmap/HeatMapColoredTile.js#L37-L43 | |
10,543 | NASAWorldWind/WebWorldWind | src/shapes/SurfaceImage.js | function (sector, imageSource) {
if (!sector) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "SurfaceImage", "constructor",
"missingSector"));
}
if (!imageSource) {
throw new ArgumentError(Logger.logMessage(Logger... | javascript | function (sector, imageSource) {
if (!sector) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "SurfaceImage", "constructor",
"missingSector"));
}
if (!imageSource) {
throw new ArgumentError(Logger.logMessage(Logger... | [
"function",
"(",
"sector",
",",
"imageSource",
")",
"{",
"if",
"(",
"!",
"sector",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"SurfaceImage\"",
",",
"\"constructor\"",
",",
"\"missi... | Constructs a surface image shape for a specified sector and image path.
@alias SurfaceImage
@constructor
@augments SurfaceTile
@classdesc Represents an image drawn on the terrain.
@param {Sector} sector The sector spanned by this surface image.
@param {String|ImageSource} imageSource The image source of the image to dr... | [
"Constructs",
"a",
"surface",
"image",
"shape",
"for",
"a",
"specified",
"sector",
"and",
"image",
"path",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/shapes/SurfaceImage.js#L44-L96 | |
10,544 | NASAWorldWind/WebWorldWind | src/formats/aaigrid/AAIGridMetadata.js | function () {
// Documented in defineProperties below.
this._ncols = null;
// Documented in defineProperties below.
this._nrows = null;
// Documented in defineProperties below.
this._xllcorner = null;
// Documented in definePropertie... | javascript | function () {
// Documented in defineProperties below.
this._ncols = null;
// Documented in defineProperties below.
this._nrows = null;
// Documented in defineProperties below.
this._xllcorner = null;
// Documented in definePropertie... | [
"function",
"(",
")",
"{",
"// Documented in defineProperties below.",
"this",
".",
"_ncols",
"=",
"null",
";",
"// Documented in defineProperties below.",
"this",
".",
"_nrows",
"=",
"null",
";",
"// Documented in defineProperties below.",
"this",
".",
"_xllcorner",
"=",... | Constructs a new container for AAIGrid metadata.
@alias AAIGridMetadata
@constructor
@classdesc Contains the metadata for an AAIGrid file. | [
"Constructs",
"a",
"new",
"container",
"for",
"AAIGrid",
"metadata",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/aaigrid/AAIGridMetadata.js#L30-L48 | |
10,545 | NASAWorldWind/WebWorldWind | src/render/FramebufferTileController.js | function () {
/**
* The width in pixels of framebuffers associated with this controller's tiles.
* @type {Number}
* @readonly
*/
this.tileWidth = 256;
/**
* The height in pixels of framebuffers associated with this co... | javascript | function () {
/**
* The width in pixels of framebuffers associated with this controller's tiles.
* @type {Number}
* @readonly
*/
this.tileWidth = 256;
/**
* The height in pixels of framebuffers associated with this co... | [
"function",
"(",
")",
"{",
"/**\n * The width in pixels of framebuffers associated with this controller's tiles.\n * @type {Number}\n * @readonly\n */",
"this",
".",
"tileWidth",
"=",
"256",
";",
"/**\n * The height in pixels of frame... | Constructs a framebuffer tile controller.
@alias FramebufferTileController
@constructor
@classdesc Provides access to a multi-resolution WebGL framebuffer arranged as adjacent tiles in a pyramid.
WorldWind shapes use this class internally to draw on the terrain surface. Applications typically do not
interact with this ... | [
"Constructs",
"a",
"framebuffer",
"tile",
"controller",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/render/FramebufferTileController.js#L48-L92 | |
10,546 | NASAWorldWind/WebWorldWind | src/formats/kml/util/KmlNodeTransformers.js | getTextOfNode | function getTextOfNode(node) {
var result;
if (node != null && node.childNodes[0]) {
result = node.childNodes[0].nodeValue;
} else if (node != null) {
result = "";
}
return result;
} | javascript | function getTextOfNode(node) {
var result;
if (node != null && node.childNodes[0]) {
result = node.childNodes[0].nodeValue;
} else if (node != null) {
result = "";
}
return result;
} | [
"function",
"getTextOfNode",
"(",
"node",
")",
"{",
"var",
"result",
";",
"if",
"(",
"node",
"!=",
"null",
"&&",
"node",
".",
"childNodes",
"[",
"0",
"]",
")",
"{",
"result",
"=",
"node",
".",
"childNodes",
"[",
"0",
"]",
".",
"nodeValue",
";",
"}"... | This function retrieves the current value for node.
@param node {Node} Node for which we want to retrieve the value.
@returns {String} Text value of the node. | [
"This",
"function",
"retrieves",
"the",
"current",
"value",
"for",
"node",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/kml/util/KmlNodeTransformers.js#L74-L82 |
10,547 | NASAWorldWind/WebWorldWind | src/gesture/ClickRecognizer.js | function (target, callback) {
GestureRecognizer.call(this, target, callback);
/**
*
* @type {Number}
*/
this.numberOfClicks = 1;
/**
*
* @type {Number}
*/
this.button = 0;
... | javascript | function (target, callback) {
GestureRecognizer.call(this, target, callback);
/**
*
* @type {Number}
*/
this.numberOfClicks = 1;
/**
*
* @type {Number}
*/
this.button = 0;
... | [
"function",
"(",
"target",
",",
"callback",
")",
"{",
"GestureRecognizer",
".",
"call",
"(",
"this",
",",
"target",
",",
"callback",
")",
";",
"/**\n *\n * @type {Number}\n */",
"this",
".",
"numberOfClicks",
"=",
"1",
";",
"/**\n... | Constructs a mouse click gesture recognizer.
@alias ClickRecognizer
@constructor
@augments GestureRecognizer
@classdesc A concrete gesture recognizer subclass that looks for single or multiple mouse clicks.
@param {EventTarget} target The document element this gesture recognizer observes for mouse and touch events.
@pa... | [
"Constructs",
"a",
"mouse",
"click",
"gesture",
"recognizer",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/gesture/ClickRecognizer.js#L36-L65 | |
10,548 | NASAWorldWind/WebWorldWind | src/util/PeriodicTimeSequence.js | function (sequenceString) {
if (!sequenceString) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "PeriodicTimeSequence", "constructor", "missingString"));
}
var intervalParts = sequenceString.split("/");
if (intervalP... | javascript | function (sequenceString) {
if (!sequenceString) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "PeriodicTimeSequence", "constructor", "missingString"));
}
var intervalParts = sequenceString.split("/");
if (intervalP... | [
"function",
"(",
"sequenceString",
")",
"{",
"if",
"(",
"!",
"sequenceString",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"PeriodicTimeSequence\"",
",",
"\"constructor\"",
",",
"\"missi... | Constructs a time sequence from an ISO 8601 string.
@alias PeriodicTimeSequence
@constructor
@classdesc Represents a time sequence described as an ISO 8601 time-format string as required by WMS.
The string must be in the form start/end/period, where start and end are ISO 8601 time values and
period is an ISO 8601 perio... | [
"Constructs",
"a",
"time",
"sequence",
"from",
"an",
"ISO",
"8601",
"string",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PeriodicTimeSequence.js#L42-L92 | |
10,549 | NASAWorldWind/WebWorldWind | src/util/Offset.js | function (xUnits, x, yUnits, y) {
/**
* The offset in the X dimension, interpreted according to this instance's xUnits argument.
* @type {Number}
*/
this.x = x;
/**
* The offset in the Y dimension, interpreted according to this in... | javascript | function (xUnits, x, yUnits, y) {
/**
* The offset in the X dimension, interpreted according to this instance's xUnits argument.
* @type {Number}
*/
this.x = x;
/**
* The offset in the Y dimension, interpreted according to this in... | [
"function",
"(",
"xUnits",
",",
"x",
",",
"yUnits",
",",
"y",
")",
"{",
"/**\n * The offset in the X dimension, interpreted according to this instance's xUnits argument.\n * @type {Number}\n */",
"this",
".",
"x",
"=",
"x",
";",
"/**\n ... | Constructs an offset instance given specified units and offsets.
@alias Offset
@constructor
@classdesc Specifies an offset relative to a rectangle. Used by [Placemark]{@link Placemark} and
other shapes.
@param {String} xUnits The type of units specified for the X dimension. May be one of the following:
<ul>
<li>[WorldW... | [
"Constructs",
"an",
"offset",
"instance",
"given",
"specified",
"units",
"and",
"offsets",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/Offset.js#L47-L74 | |
10,550 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (xmlNode) {
if (!xmlNode) {
return null;
}
var text = xmlNode.textContent;
text = text.replace(/\n/gi, " ");
text = text.replace(/\s+/gi, " ");
text = text.trim();
if (text.length === 0) {
retu... | javascript | function (xmlNode) {
if (!xmlNode) {
return null;
}
var text = xmlNode.textContent;
text = text.replace(/\n/gi, " ");
text = text.replace(/\s+/gi, " ");
text = text.trim();
if (text.length === 0) {
retu... | [
"function",
"(",
"xmlNode",
")",
"{",
"if",
"(",
"!",
"xmlNode",
")",
"{",
"return",
"null",
";",
"}",
"var",
"text",
"=",
"xmlNode",
".",
"textContent",
";",
"text",
"=",
"text",
".",
"replace",
"(",
"/",
"\\n",
"/",
"gi",
",",
"\" \"",
")",
";"... | Packs data from a node in an array.
Internal. Applications should not call this function.
@param {Node} xmlNode A node from which to extract values. | [
"Packs",
"data",
"from",
"a",
"node",
"in",
"an",
"array",
".",
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L32-L47 | |
10,551 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (xmlNode) {
var rawValues = this.getRawValues(xmlNode);
if (!rawValues) {
return null;
}
var len = rawValues.length;
var bufferData = new Float32Array(len);
for (var i = 0; i < len; i++) {
bufferData[i] =... | javascript | function (xmlNode) {
var rawValues = this.getRawValues(xmlNode);
if (!rawValues) {
return null;
}
var len = rawValues.length;
var bufferData = new Float32Array(len);
for (var i = 0; i < len; i++) {
bufferData[i] =... | [
"function",
"(",
"xmlNode",
")",
"{",
"var",
"rawValues",
"=",
"this",
".",
"getRawValues",
"(",
"xmlNode",
")",
";",
"if",
"(",
"!",
"rawValues",
")",
"{",
"return",
"null",
";",
"}",
"var",
"len",
"=",
"rawValues",
".",
"length",
";",
"var",
"buffe... | Packs data from a node as a Float32Array.
Internal. Applications should not call this function.
@param {Node} xmlNode A node from which to extract values. | [
"Packs",
"data",
"from",
"a",
"node",
"as",
"a",
"Float32Array",
".",
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L54-L69 | |
10,552 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (xmlNode) {
var rawValues = this.getRawValues(xmlNode);
if (!rawValues) {
return null;
}
var len = rawValues.length;
var bufferData = new Uint32Array(len);
for (var i = 0; i < len; i++) {
bufferData[i] = ... | javascript | function (xmlNode) {
var rawValues = this.getRawValues(xmlNode);
if (!rawValues) {
return null;
}
var len = rawValues.length;
var bufferData = new Uint32Array(len);
for (var i = 0; i < len; i++) {
bufferData[i] = ... | [
"function",
"(",
"xmlNode",
")",
"{",
"var",
"rawValues",
"=",
"this",
".",
"getRawValues",
"(",
"xmlNode",
")",
";",
"if",
"(",
"!",
"rawValues",
")",
"{",
"return",
"null",
";",
"}",
"var",
"len",
"=",
"rawValues",
".",
"length",
";",
"var",
"buffe... | Packs data from a node as a UInt32Array.
Internal. Applications should not call this function.
@param {Node} xmlNode A node from which to extract values. | [
"Packs",
"data",
"from",
"a",
"node",
"as",
"a",
"UInt32Array",
".",
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L76-L91 | |
10,553 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (xmlNode, nodeName) {
var childs = xmlNode.childNodes;
for (var i = 0; i < childs.length; ++i) {
var item = childs.item(i);
if (item.nodeType !== 1) {
continue;
}
if ((item.nodeName && !nodeName) ||... | javascript | function (xmlNode, nodeName) {
var childs = xmlNode.childNodes;
for (var i = 0; i < childs.length; ++i) {
var item = childs.item(i);
if (item.nodeType !== 1) {
continue;
}
if ((item.nodeName && !nodeName) ||... | [
"function",
"(",
"xmlNode",
",",
"nodeName",
")",
"{",
"var",
"childs",
"=",
"xmlNode",
".",
"childNodes",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"childs",
".",
"length",
";",
"++",
"i",
")",
"{",
"var",
"item",
"=",
"childs",
".",... | Returns the first child of a node.
Internal. Applications should not call this function.
@param {Node} xmlNode The tag to look in.
@param {String} nodeName Optional parameter, the name of the child. | [
"Returns",
"the",
"first",
"child",
"of",
"a",
"node",
".",
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L99-L117 | |
10,554 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (filePath) {
var pos = filePath.lastIndexOf("\\");
if (pos !== -1) {
filePath = filePath.substr(pos + 1);
}
pos = filePath.lastIndexOf("/");
if (pos !== -1) {
filePath = filePath.substr(pos + 1);
}
... | javascript | function (filePath) {
var pos = filePath.lastIndexOf("\\");
if (pos !== -1) {
filePath = filePath.substr(pos + 1);
}
pos = filePath.lastIndexOf("/");
if (pos !== -1) {
filePath = filePath.substr(pos + 1);
}
... | [
"function",
"(",
"filePath",
")",
"{",
"var",
"pos",
"=",
"filePath",
".",
"lastIndexOf",
"(",
"\"\\\\\"",
")",
";",
"if",
"(",
"pos",
"!==",
"-",
"1",
")",
"{",
"filePath",
"=",
"filePath",
".",
"substr",
"(",
"pos",
"+",
"1",
")",
";",
"}",
"po... | Returns the filename without slashes.
Internal. Applications should not call this function.
@param {String} filePath | [
"Returns",
"the",
"filename",
"without",
"slashes",
".",
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L124-L137 | |
10,555 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (nodes, id) {
for (var i = 0; i < nodes.length; i++) {
var attrId = nodes.item(i).getAttribute("id");
if (!attrId) {
continue;
}
if (attrId.toString() === id) {
return nodes.item(i);
... | javascript | function (nodes, id) {
for (var i = 0; i < nodes.length; i++) {
var attrId = nodes.item(i).getAttribute("id");
if (!attrId) {
continue;
}
if (attrId.toString() === id) {
return nodes.item(i);
... | [
"function",
"(",
"nodes",
",",
"id",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"nodes",
".",
"length",
";",
"i",
"++",
")",
"{",
"var",
"attrId",
"=",
"nodes",
".",
"item",
"(",
"i",
")",
".",
"getAttribute",
"(",
"\"id\"",
"... | Finds a node by id.
Internal. Applications should not call this function.
@param {NodeList} nodes A list of nodes to look in.
@param {String} id The id of the node to search for. | [
"Finds",
"a",
"node",
"by",
"id",
".",
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L157-L168 | |
10,556 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (uvs) {
var clamp = true;
for (var i = 0, len = uvs.length; i < len; i++) {
if (uvs[i] < 0 || uvs[i] > 1) {
clamp = false;
break;
}
}
return clamp;
} | javascript | function (uvs) {
var clamp = true;
for (var i = 0, len = uvs.length; i < len; i++) {
if (uvs[i] < 0 || uvs[i] > 1) {
clamp = false;
break;
}
}
return clamp;
} | [
"function",
"(",
"uvs",
")",
"{",
"var",
"clamp",
"=",
"true",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"uvs",
".",
"length",
";",
"i",
"<",
"len",
";",
"i",
"++",
")",
"{",
"if",
"(",
"uvs",
"[",
"i",
"]",
"<",
"0",
"||",
... | Determines the rendering method for a texture.
The method can be CLAMP or REPEAT.
Internal. Applications should not call this function.
@param {Number[]} uvs The uvs array. | [
"Determines",
"the",
"rendering",
"method",
"for",
"a",
"texture",
".",
"The",
"method",
"can",
"be",
"CLAMP",
"or",
"REPEAT",
".",
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L176-L187 | |
10,557 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaUtils.js | function (url, cb) {
var request = new XMLHttpRequest();
request.onload = function () {
if (this.status >= 200 && this.status < 400) {
cb(this.response);
}
else {
Logger.log(Logger.LEVEL_SEVERE, "sever erro... | javascript | function (url, cb) {
var request = new XMLHttpRequest();
request.onload = function () {
if (this.status >= 200 && this.status < 400) {
cb(this.response);
}
else {
Logger.log(Logger.LEVEL_SEVERE, "sever erro... | [
"function",
"(",
"url",
",",
"cb",
")",
"{",
"var",
"request",
"=",
"new",
"XMLHttpRequest",
"(",
")",
";",
"request",
".",
"onload",
"=",
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"status",
">=",
"200",
"&&",
"this",
".",
"status",
"<",
... | Fetches a file.
@param {String} url The path to the collada file.
@param {Function} cb A callback function to call when the collada file loaded. | [
"Fetches",
"a",
"file",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaUtils.js#L194-L216 | |
10,558 | NASAWorldWind/WebWorldWind | src/layer/BMNGOneImageLayer.js | function () {
RenderableLayer.call(this, "Blue Marble Image");
var surfaceImage = new SurfaceImage(Sector.FULL_SPHERE,
WorldWind.configuration.baseUrl + "images/BMNG_world.topo.bathy.200405.3.2048x1024.jpg");
this.addRenderable(surfaceImage);
this.pickE... | javascript | function () {
RenderableLayer.call(this, "Blue Marble Image");
var surfaceImage = new SurfaceImage(Sector.FULL_SPHERE,
WorldWind.configuration.baseUrl + "images/BMNG_world.topo.bathy.200405.3.2048x1024.jpg");
this.addRenderable(surfaceImage);
this.pickE... | [
"function",
"(",
")",
"{",
"RenderableLayer",
".",
"call",
"(",
"this",
",",
"\"Blue Marble Image\"",
")",
";",
"var",
"surfaceImage",
"=",
"new",
"SurfaceImage",
"(",
"Sector",
".",
"FULL_SPHERE",
",",
"WorldWind",
".",
"configuration",
".",
"baseUrl",
"+",
... | Constructs a Blue Marble image layer that spans the entire globe.
@alias BMNGOneImageLayer
@constructor
@augments RenderableLayer
@classdesc Displays a Blue Marble image layer that spans the entire globe with a single image. | [
"Constructs",
"a",
"Blue",
"Marble",
"image",
"layer",
"that",
"spans",
"the",
"entire",
"globe",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/BMNGOneImageLayer.js#L39-L49 | |
10,559 | NASAWorldWind/WebWorldWind | examples/Shapefiles.js | function (attributes, record) {
var configuration = {};
configuration.name = attributes.values.name || attributes.values.Name || attributes.values.NAME;
if (record.isPointType()) { // Configure point-based features (cities, in this example)
configuration.name = attri... | javascript | function (attributes, record) {
var configuration = {};
configuration.name = attributes.values.name || attributes.values.Name || attributes.values.NAME;
if (record.isPointType()) { // Configure point-based features (cities, in this example)
configuration.name = attri... | [
"function",
"(",
"attributes",
",",
"record",
")",
"{",
"var",
"configuration",
"=",
"{",
"}",
";",
"configuration",
".",
"name",
"=",
"attributes",
".",
"values",
".",
"name",
"||",
"attributes",
".",
"values",
".",
"Name",
"||",
"attributes",
".",
"val... | Callback function for configuring shapefile visualization. | [
"Callback",
"function",
"for",
"configuring",
"shapefile",
"visualization",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/examples/Shapefiles.js#L60-L92 | |
10,560 | NASAWorldWind/WebWorldWind | src/cache/GpuResourceCache.js | function (capacity, lowWater) {
if (!capacity || capacity < 1) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "GpuResourceCache", "constructor",
"Specified cache capacity is undefined, 0 or negative."));
}
... | javascript | function (capacity, lowWater) {
if (!capacity || capacity < 1) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "GpuResourceCache", "constructor",
"Specified cache capacity is undefined, 0 or negative."));
}
... | [
"function",
"(",
"capacity",
",",
"lowWater",
")",
"{",
"if",
"(",
"!",
"capacity",
"||",
"capacity",
"<",
"1",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"GpuResourceCache\"",
",... | Constructs a GPU resource cache for a specified size and low-water value.
@alias GpuResourceCache
@constructor
@classdesc Maintains a cache of GPU resources such as textures and GLSL programs.
Applications typically do not interact with this class unless they create their own shapes.
@param {Number} capacity The cache ... | [
"Constructs",
"a",
"GPU",
"resource",
"cache",
"for",
"a",
"specified",
"size",
"and",
"low",
"-",
"water",
"value",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/cache/GpuResourceCache.js#L47-L71 | |
10,561 | NASAWorldWind/WebWorldWind | src/render/OrderedRenderable.js | function () {
/**
* This ordered renderable's display name.
* @type {String}
* @default Renderable
*/
this.displayName = "Renderable";
/**
* Indicates whether this ordered renderable is enabled.
* @type {... | javascript | function () {
/**
* This ordered renderable's display name.
* @type {String}
* @default Renderable
*/
this.displayName = "Renderable";
/**
* Indicates whether this ordered renderable is enabled.
* @type {... | [
"function",
"(",
")",
"{",
"/**\n * This ordered renderable's display name.\n * @type {String}\n * @default Renderable\n */",
"this",
".",
"displayName",
"=",
"\"Renderable\"",
";",
"/**\n * Indicates whether this ordered renderable i... | Applications must not call this constructor. It is an interface class and is not meant to be instantiated
directly.
@alias OrderedRenderable
@constructor
@classdesc Represents an ordered renderable.
This is an interface class and is not meant to be instantiated directly. | [
"Applications",
"must",
"not",
"call",
"this",
"constructor",
".",
"It",
"is",
"an",
"interface",
"class",
"and",
"is",
"not",
"meant",
"to",
"be",
"instantiated",
"directly",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/render/OrderedRenderable.js#L35-L67 | |
10,562 | NASAWorldWind/WebWorldWind | src/util/Font.js | function (size, style, variant, weight, family, horizontalAlignment) {
/*
* All properties of Font are intended to be private and must be accessed via public getters and setters.
*/
if (!size) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEV... | javascript | function (size, style, variant, weight, family, horizontalAlignment) {
/*
* All properties of Font are intended to be private and must be accessed via public getters and setters.
*/
if (!size) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEV... | [
"function",
"(",
"size",
",",
"style",
",",
"variant",
",",
"weight",
",",
"family",
",",
"horizontalAlignment",
")",
"{",
"/*\n * All properties of Font are intended to be private and must be accessed via public getters and setters.\n */",
"if",
"(",
"!",... | Construct a font descriptor. See the individual attribute descriptions below for possible parameter values.
@param {Number} size The size of font.
@param {String} style The style of the font.
@param {String} variant The variant of the font.
@param {String} weight The weight of the font.
@param {String} family The famil... | [
"Construct",
"a",
"font",
"descriptor",
".",
"See",
"the",
"individual",
"attribute",
"descriptions",
"below",
"for",
"possible",
"parameter",
"values",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/Font.js#L44-L66 | |
10,563 | NASAWorldWind/WebWorldWind | src/globe/ElevationImage.js | function (sector, imageWidth, imageHeight) {
if (!sector) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ElevationImage", "constructor", "missingSector"));
}
/**
* The sector spanned by this elevation image.
... | javascript | function (sector, imageWidth, imageHeight) {
if (!sector) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "ElevationImage", "constructor", "missingSector"));
}
/**
* The sector spanned by this elevation image.
... | [
"function",
"(",
"sector",
",",
"imageWidth",
",",
"imageHeight",
")",
"{",
"if",
"(",
"!",
"sector",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"ElevationImage\"",
",",
"\"construc... | Constructs an elevation image.
@alias ElevationImage
@constructor
@classdesc Holds elevation values for an elevation tile.
This class is typically not used directly by applications.
@param {Sector} sector The sector spanned by this elevation image.
@param {Number} imageWidth The number of longitudinal sample points in ... | [
"Constructs",
"an",
"elevation",
"image",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/globe/ElevationImage.js#L41-L88 | |
10,564 | NASAWorldWind/WebWorldWind | src/util/proj4-src.js | getLetter100kID | function getLetter100kID(column, row, parm) {
// colOrigin and rowOrigin are the letters at the origin of the set
var index = parm - 1;
var colOrigin = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(index);
var rowOrigin = SET_ORIGIN_ROW_LETTERS.charCodeAt(index);
// colInt and rowInt are... | javascript | function getLetter100kID(column, row, parm) {
// colOrigin and rowOrigin are the letters at the origin of the set
var index = parm - 1;
var colOrigin = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(index);
var rowOrigin = SET_ORIGIN_ROW_LETTERS.charCodeAt(index);
// colInt and rowInt are... | [
"function",
"getLetter100kID",
"(",
"column",
",",
"row",
",",
"parm",
")",
"{",
"// colOrigin and rowOrigin are the letters at the origin of the set",
"var",
"index",
"=",
"parm",
"-",
"1",
";",
"var",
"colOrigin",
"=",
"SET_ORIGIN_COLUMN_LETTERS",
".",
"charCodeAt",
... | Get the two-letter MGRS 100k designator given information
translated from the UTM northing, easting and zone number.
@private
@param {number} column the column index as it relates to the MGRS
100k set spreadsheet, created from the UTM easting.
Values are 1-8.
@param {number} row the row index as it relates to the MGRS... | [
"Get",
"the",
"two",
"-",
"letter",
"MGRS",
"100k",
"designator",
"given",
"information",
"translated",
"from",
"the",
"UTM",
"northing",
"easting",
"and",
"zone",
"number",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/proj4-src.js#L2303-L2361 |
10,565 | NASAWorldWind/WebWorldWind | src/util/proj4-src.js | decode | function decode(mgrsString) {
if (mgrsString && mgrsString.length === 0) {
throw ("MGRSPoint coverting from nothing");
}
var length = mgrsString.length;
var hunK = null;
var sb = "";
var testChar;
var i = 0;
// get Zone number
while... | javascript | function decode(mgrsString) {
if (mgrsString && mgrsString.length === 0) {
throw ("MGRSPoint coverting from nothing");
}
var length = mgrsString.length;
var hunK = null;
var sb = "";
var testChar;
var i = 0;
// get Zone number
while... | [
"function",
"decode",
"(",
"mgrsString",
")",
"{",
"if",
"(",
"mgrsString",
"&&",
"mgrsString",
".",
"length",
"===",
"0",
")",
"{",
"throw",
"(",
"\"MGRSPoint coverting from nothing\"",
")",
";",
"}",
"var",
"length",
"=",
"mgrsString",
".",
"length",
";",
... | Decode the UTM parameters from a MGRS string.
@private
@param {string} mgrsString an UPPERCASE coordinate string is expected.
@return {object} An object literal with easting, northing, zoneLetter,
zoneNumber and accuracy (in meters) properties. | [
"Decode",
"the",
"UTM",
"parameters",
"from",
"a",
"MGRS",
"string",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/proj4-src.js#L2371-L2453 |
10,566 | NASAWorldWind/WebWorldWind | src/util/proj4-src.js | getEastingFromChar | function getEastingFromChar(e, set) {
// colOrigin is the letter at the origin of the set for the
// column
var curCol = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(set - 1);
var eastingValue = 100000.0;
var rewindMarker = false;
while (curCol !== e.charCodeAt(0)) {
... | javascript | function getEastingFromChar(e, set) {
// colOrigin is the letter at the origin of the set for the
// column
var curCol = SET_ORIGIN_COLUMN_LETTERS.charCodeAt(set - 1);
var eastingValue = 100000.0;
var rewindMarker = false;
while (curCol !== e.charCodeAt(0)) {
... | [
"function",
"getEastingFromChar",
"(",
"e",
",",
"set",
")",
"{",
"// colOrigin is the letter at the origin of the set for the",
"// column",
"var",
"curCol",
"=",
"SET_ORIGIN_COLUMN_LETTERS",
".",
"charCodeAt",
"(",
"set",
"-",
"1",
")",
";",
"var",
"eastingValue",
"... | Given the first letter from a two-letter MGRS 100k zone, and given the
MGRS table set for the zone number, figure out the easting value that
should be added to the other, secondary easting value.
@private
@param {char} e The first letter from a two-letter MGRS 100´k zone.
@param {number} set The MGRS table set for the... | [
"Given",
"the",
"first",
"letter",
"from",
"a",
"two",
"-",
"letter",
"MGRS",
"100k",
"zone",
"and",
"given",
"the",
"MGRS",
"table",
"set",
"for",
"the",
"zone",
"number",
"figure",
"out",
"the",
"easting",
"value",
"that",
"should",
"be",
"added",
"to"... | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/proj4-src.js#L2465-L2491 |
10,567 | NASAWorldWind/WebWorldWind | src/util/BingImageryUrlBuilder.js | function (imagerySet, bingMapsKey) {
var wwBingMapsKey = "AkttWCS8p6qzxvx5RH3qUcCPgwG9nRJ7IwlpFGb14B0rBorB5DvmXr2Y_eCUNIxH";
// Use key specified for this layer
this.bingMapsKey = bingMapsKey;
// If none, fallback to key specified globally
if (!this.bingMaps... | javascript | function (imagerySet, bingMapsKey) {
var wwBingMapsKey = "AkttWCS8p6qzxvx5RH3qUcCPgwG9nRJ7IwlpFGb14B0rBorB5DvmXr2Y_eCUNIxH";
// Use key specified for this layer
this.bingMapsKey = bingMapsKey;
// If none, fallback to key specified globally
if (!this.bingMaps... | [
"function",
"(",
"imagerySet",
",",
"bingMapsKey",
")",
"{",
"var",
"wwBingMapsKey",
"=",
"\"AkttWCS8p6qzxvx5RH3qUcCPgwG9nRJ7IwlpFGb14B0rBorB5DvmXr2Y_eCUNIxH\"",
";",
"// Use key specified for this layer",
"this",
".",
"bingMapsKey",
"=",
"bingMapsKey",
";",
"// If none, fallba... | Constructs a URL builder for Bing imagery.
@alias BingImageryUrlBuilder
@constructor
@classdesc Provides a factory to create URLs for Bing image requests.
@param {String} imagerySet The name of the imagery set to display.
@param {String} bingMapsKey The Bing Maps key to use for the image requests. If null or undefined,... | [
"Constructs",
"a",
"URL",
"builder",
"for",
"Bing",
"imagery",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/BingImageryUrlBuilder.js#L45-L67 | |
10,568 | NASAWorldWind/WebWorldWind | src/formats/collada/ColladaNode.js | function () {
this.id = "";
this.name = "";
this.sid = "";
this.children = [];
this.materials = [];
this.mesh = "";
this.localMatrix = Matrix.fromIdentity();
this.worldMatrix = Matrix.fromIdentity();
} | javascript | function () {
this.id = "";
this.name = "";
this.sid = "";
this.children = [];
this.materials = [];
this.mesh = "";
this.localMatrix = Matrix.fromIdentity();
this.worldMatrix = Matrix.fromIdentity();
} | [
"function",
"(",
")",
"{",
"this",
".",
"id",
"=",
"\"\"",
";",
"this",
".",
"name",
"=",
"\"\"",
";",
"this",
".",
"sid",
"=",
"\"\"",
";",
"this",
".",
"children",
"=",
"[",
"]",
";",
"this",
".",
"materials",
"=",
"[",
"]",
";",
"this",
".... | Constructs a ColladaNode
@alias ColladaNode
@constructor
@classdesc Represents a collada node tag. | [
"Constructs",
"a",
"ColladaNode"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/collada/ColladaNode.js#L30-L39 | |
10,569 | NASAWorldWind/WebWorldWind | src/WorldWindowController.js | function (worldWindow) {
if (!worldWindow) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "WorldWindowController", "constructor", "missingWorldWindow"));
}
/**
* The WorldWindow associated with this controller.
... | javascript | function (worldWindow) {
if (!worldWindow) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "WorldWindowController", "constructor", "missingWorldWindow"));
}
/**
* The WorldWindow associated with this controller.
... | [
"function",
"(",
"worldWindow",
")",
"{",
"if",
"(",
"!",
"worldWindow",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WorldWindowController\"",
",",
"\"constructor\"",
",",
"\"missingWor... | Constructs a root window controller.
@alias WorldWindowController
@constructor
@abstract
@classDesc This class provides a base window controller with required properties and methods which sub-classes may
inherit from to create custom window controllers for controlling the globe via user interaction.
@param {WorldWindow... | [
"Constructs",
"a",
"root",
"window",
"controller",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/WorldWindowController.js#L40-L55 | |
10,570 | NASAWorldWind/WebWorldWind | src/geom/Line.js | function (origin, direction) {
if (!origin) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Line", "constructor",
"Origin is null or undefined."));
}
if (!direction) {
throw new ArgumentError(Logger.logMessage(Log... | javascript | function (origin, direction) {
if (!origin) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Line", "constructor",
"Origin is null or undefined."));
}
if (!direction) {
throw new ArgumentError(Logger.logMessage(Log... | [
"function",
"(",
"origin",
",",
"direction",
")",
"{",
"if",
"(",
"!",
"origin",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"Line\"",
",",
"\"constructor\"",
",",
"\"Origin is null ... | Constructs a line from a specified origin and direction.
@alias Line
@constructor
@classdesc Represents a line in Cartesian coordinates.
@param {Vec3} origin The line's origin.
@param {Vec3} direction The line's direction.
@throws {ArgumentError} If either the origin or the direction are null or undefined. | [
"Constructs",
"a",
"line",
"from",
"a",
"specified",
"origin",
"and",
"direction",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/geom/Line.js#L38-L60 | |
10,571 | NASAWorldWind/WebWorldWind | src/util/ImageSource.js | function (image) {
if (!image) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "ImageSource", "constructor",
"missingImage"));
}
/**
* This image source's image
* @type {Image}
* @readonly
... | javascript | function (image) {
if (!image) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "ImageSource", "constructor",
"missingImage"));
}
/**
* This image source's image
* @type {Image}
* @readonly
... | [
"function",
"(",
"image",
")",
"{",
"if",
"(",
"!",
"image",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"ImageSource\"",
",",
"\"constructor\"",
",",
"\"missingImage\"",
")",
")",
... | Constructs an image source.
@alias ImageSource
@constructor
@classdesc Holds an Image with an associated key that uniquely identifies that image. The key is
automatically generated but may be reassigned after construction. Instances of this class are used to
specify dynamically created image sources for {@link Placemar... | [
"Constructs",
"an",
"image",
"source",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/ImageSource.js#L41-L61 | |
10,572 | NASAWorldWind/WebWorldWind | src/layer/WmsTimeDimensionedLayer.js | function (config) {
if (!config) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "WmsTimeDimensionedLayer", "constructor",
"No configuration specified."));
}
Layer.call(this, "WMS Time Dimensioned Layer");... | javascript | function (config) {
if (!config) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "WmsTimeDimensionedLayer", "constructor",
"No configuration specified."));
}
Layer.call(this, "WMS Time Dimensioned Layer");... | [
"function",
"(",
"config",
")",
"{",
"if",
"(",
"!",
"config",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"WmsTimeDimensionedLayer\"",
",",
"\"constructor\"",
",",
"\"No configuration s... | Constructs a WMS time-dimensioned image layer.
@alias WmsTimeDimensionedLayer
@constructor
@augments Layer
@classdesc Displays a time-series WMS image layer. This layer contains a collection of {@link WmsLayer}s,
each representing a different time in a time sequence. Only the layer indicated by this layer's
[time]{@lin... | [
"Constructs",
"a",
"WMS",
"time",
"-",
"dimensioned",
"image",
"layer",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/WmsTimeDimensionedLayer.js#L44-L66 | |
10,573 | NASAWorldWind/WebWorldWind | src/geom/Angle.js | function (degrees) {
var sign,
temp,
d,
m,
s;
sign = degrees < 0 ? -1 : 1;
temp = sign * degrees;
d = Math.floor(temp);
temp = (temp - d) * 60;
m = Math.floor(temp);
temp ... | javascript | function (degrees) {
var sign,
temp,
d,
m,
s;
sign = degrees < 0 ? -1 : 1;
temp = sign * degrees;
d = Math.floor(temp);
temp = (temp - d) * 60;
m = Math.floor(temp);
temp ... | [
"function",
"(",
"degrees",
")",
"{",
"var",
"sign",
",",
"temp",
",",
"d",
",",
"m",
",",
"s",
";",
"sign",
"=",
"degrees",
"<",
"0",
"?",
"-",
"1",
":",
"1",
";",
"temp",
"=",
"sign",
"*",
"degrees",
";",
"d",
"=",
"Math",
".",
"floor",
"... | Returns a degrees-minutes-seconds string representation of a specified value in degrees.
@param {Number} degrees The value for which to compute the string.
@returns {String} The computed string in degrees, minutes and decimal seconds. | [
"Returns",
"a",
"degrees",
"-",
"minutes",
"-",
"seconds",
"string",
"representation",
"of",
"a",
"specified",
"value",
"in",
"degrees",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/geom/Angle.js#L153-L178 | |
10,574 | NASAWorldWind/WebWorldWind | src/ogc/ows/OwsOperationsMetadata.js | function (element) {
if (!element) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "OwsOperationsMetadata", "constructor", "missingDomElement"));
}
var children = element.children || element.childNodes;
for (var c = 0... | javascript | function (element) {
if (!element) {
throw new ArgumentError(
Logger.logMessage(Logger.LEVEL_SEVERE, "OwsOperationsMetadata", "constructor", "missingDomElement"));
}
var children = element.children || element.childNodes;
for (var c = 0... | [
"function",
"(",
"element",
")",
"{",
"if",
"(",
"!",
"element",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"OwsOperationsMetadata\"",
",",
"\"constructor\"",
",",
"\"missingDomElement\... | Constructs an OWS Operations Metadata instance from an XML DOM.
@alias OwsOperationsMetadata
@constructor
@classdesc Represents an OWS Operations Metadata section of an OGC capabilities document.
This object holds as properties all the fields specified in the OWS Operations Metadata section.
Most fields can be accessed... | [
"Constructs",
"an",
"OWS",
"Operations",
"Metadata",
"instance",
"from",
"an",
"XML",
"DOM",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/ogc/ows/OwsOperationsMetadata.js#L41-L57 | |
10,575 | NASAWorldWind/WebWorldWind | src/render/ScreenCreditController.js | function () {
Layer.call(this, "ScreenCreditController");
/**
* An {@link Offset} indicating where to place the attributions on the screen.
* @type {Offset}
* @default The lower left corner of the window with an 11px left margin and a 2px bottom margin.
... | javascript | function () {
Layer.call(this, "ScreenCreditController");
/**
* An {@link Offset} indicating where to place the attributions on the screen.
* @type {Offset}
* @default The lower left corner of the window with an 11px left margin and a 2px bottom margin.
... | [
"function",
"(",
")",
"{",
"Layer",
".",
"call",
"(",
"this",
",",
"\"ScreenCreditController\"",
")",
";",
"/**\n * An {@link Offset} indicating where to place the attributions on the screen.\n * @type {Offset}\n * @default The lower left corner of the w... | Constructs a screen credit controller.
@alias ScreenCreditController
@constructor
@augments Layer
@classdesc Collects and displays screen credits. | [
"Constructs",
"a",
"screen",
"credit",
"controller",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/render/ScreenCreditController.js#L45-L67 | |
10,576 | NASAWorldWind/WebWorldWind | src/util/WWUtil.js | function () {
var protocol = window.location.protocol,
host = window.location.host,
path = window.location.pathname,
pathParts = path.split("/"),
newPath = "";
for (var i = 0, len = pathParts.length; i < len... | javascript | function () {
var protocol = window.location.protocol,
host = window.location.host,
path = window.location.pathname,
pathParts = path.split("/"),
newPath = "";
for (var i = 0, len = pathParts.length; i < len... | [
"function",
"(",
")",
"{",
"var",
"protocol",
"=",
"window",
".",
"location",
".",
"protocol",
",",
"host",
"=",
"window",
".",
"location",
".",
"host",
",",
"path",
"=",
"window",
".",
"location",
".",
"pathname",
",",
"pathParts",
"=",
"path",
".",
... | Returns the current location URL as obtained from window.location with the last path component
removed.
@returns {String} The current location URL with the last path component removed. | [
"Returns",
"the",
"current",
"location",
"URL",
"as",
"obtained",
"from",
"window",
".",
"location",
"with",
"the",
"last",
"path",
"component",
"removed",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWUtil.js#L64-L78 | |
10,577 | NASAWorldWind/WebWorldWind | src/util/WWUtil.js | function () {
var scripts = document.getElementsByTagName("script"),
libraryName = "/worldwind.";
for (var i = 0; i < scripts.length; i++) {
var index = scripts[i].src.indexOf(libraryName);
if (index >= 0) {
... | javascript | function () {
var scripts = document.getElementsByTagName("script"),
libraryName = "/worldwind.";
for (var i = 0; i < scripts.length; i++) {
var index = scripts[i].src.indexOf(libraryName);
if (index >= 0) {
... | [
"function",
"(",
")",
"{",
"var",
"scripts",
"=",
"document",
".",
"getElementsByTagName",
"(",
"\"script\"",
")",
",",
"libraryName",
"=",
"\"/worldwind.\"",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"scripts",
".",
"length",
";",
"i",
"++... | Returns the URL of the directory containing the WorldWind library.
@returns {String} The URL of the directory containing the WorldWind library, or null if that directory
cannot be determined. | [
"Returns",
"the",
"URL",
"of",
"the",
"directory",
"containing",
"the",
"WorldWind",
"library",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWUtil.js#L85-L97 | |
10,578 | NASAWorldWind/WebWorldWind | src/util/WWUtil.js | function (url) {
if (!url)
return "";
var urlParts = url.split("/"),
newPath = "";
for (var i = 0, len = urlParts.length; i < len; i++) {
var part = urlParts[i];
if (!part || part.length ==... | javascript | function (url) {
if (!url)
return "";
var urlParts = url.split("/"),
newPath = "";
for (var i = 0, len = urlParts.length; i < len; i++) {
var part = urlParts[i];
if (!part || part.length ==... | [
"function",
"(",
"url",
")",
"{",
"if",
"(",
"!",
"url",
")",
"return",
"\"\"",
";",
"var",
"urlParts",
"=",
"url",
".",
"split",
"(",
"\"/\"",
")",
",",
"newPath",
"=",
"\"\"",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"urlParts"... | Returns the path component of a specified URL.
@param {String} url The URL from which to determine the path component.
@returns {String} The path component, or the empty string if the specified URL is null, undefined
or empty. | [
"Returns",
"the",
"path",
"component",
"of",
"a",
"specified",
"URL",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWUtil.js#L105-L132 | |
10,579 | NASAWorldWind/WebWorldWind | src/util/WWUtil.js | function (url, parameterName, callback) {
// Generate a unique function name for the JSONP callback.
var functionName = "gov_nasa_worldwind_jsonp_" + WWUtil.jsonpCounter++;
// Define a JSONP callback function. Assign it to global scope the browser can find it.
... | javascript | function (url, parameterName, callback) {
// Generate a unique function name for the JSONP callback.
var functionName = "gov_nasa_worldwind_jsonp_" + WWUtil.jsonpCounter++;
// Define a JSONP callback function. Assign it to global scope the browser can find it.
... | [
"function",
"(",
"url",
",",
"parameterName",
",",
"callback",
")",
"{",
"// Generate a unique function name for the JSONP callback.",
"var",
"functionName",
"=",
"\"gov_nasa_worldwind_jsonp_\"",
"+",
"WWUtil",
".",
"jsonpCounter",
"++",
";",
"// Define a JSONP callback funct... | Request a resource using JSONP.
@param {String} url The url to receive the request.
@param {String} parameterName The JSONP callback function key required by the server. Typically
"jsonp" or "callback".
@param {Function} callback The function to invoke when the request succeeds. The function receives
one argument, the ... | [
"Request",
"a",
"resource",
"using",
"JSONP",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWUtil.js#L178-L216 | |
10,580 | NASAWorldWind/WebWorldWind | src/util/WWUtil.js | function (original) {
var clone = {};
var i, keys = Object.keys(original);
for (i = 0; i < keys.length; i++) {
// copy each property into the clone
clone[keys[i]] = original[keys[i]];
}
return clone... | javascript | function (original) {
var clone = {};
var i, keys = Object.keys(original);
for (i = 0; i < keys.length; i++) {
// copy each property into the clone
clone[keys[i]] = original[keys[i]];
}
return clone... | [
"function",
"(",
"original",
")",
"{",
"var",
"clone",
"=",
"{",
"}",
";",
"var",
"i",
",",
"keys",
"=",
"Object",
".",
"keys",
"(",
"original",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"keys",
".",
"length",
";",
"i",
"++",
")",
... | It clones original object into the new one. It is necessary to retain the options information valid
for all nodes.
@param original Object to clone
@returns {Object} Cloned object | [
"It",
"clones",
"original",
"object",
"into",
"the",
"new",
"one",
".",
"It",
"is",
"necessary",
"to",
"retain",
"the",
"options",
"information",
"valid",
"for",
"all",
"nodes",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWUtil.js#L244-L254 | |
10,581 | NASAWorldWind/WebWorldWind | src/util/WWUtil.js | function(subjectString, searchString, position) {
position = position || 0;
return subjectString.substr(position, searchString.length) === searchString;
} | javascript | function(subjectString, searchString, position) {
position = position || 0;
return subjectString.substr(position, searchString.length) === searchString;
} | [
"function",
"(",
"subjectString",
",",
"searchString",
",",
"position",
")",
"{",
"position",
"=",
"position",
"||",
"0",
";",
"return",
"subjectString",
".",
"substr",
"(",
"position",
",",
"searchString",
".",
"length",
")",
"===",
"searchString",
";",
"}"... | Determines whether subjectString begins with the characters of searchString.
@param {String} subjectString The string to analyse.
@param {String} searchString The characters to be searched for at the start of subjectString.
@param {Number} position The position in subjectString at which to begin searching for searchStr... | [
"Determines",
"whether",
"subjectString",
"begins",
"with",
"the",
"characters",
"of",
"searchString",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWUtil.js#L287-L290 | |
10,582 | NASAWorldWind/WebWorldWind | src/util/WWUtil.js | function(subjectString, searchString, length) {
if (typeof length !== 'number' || !isFinite(length) || Math.floor(length) !== length || length > subjectString.length) {
length = subjectString.length;
}
length -= searchString.length;
var... | javascript | function(subjectString, searchString, length) {
if (typeof length !== 'number' || !isFinite(length) || Math.floor(length) !== length || length > subjectString.length) {
length = subjectString.length;
}
length -= searchString.length;
var... | [
"function",
"(",
"subjectString",
",",
"searchString",
",",
"length",
")",
"{",
"if",
"(",
"typeof",
"length",
"!==",
"'number'",
"||",
"!",
"isFinite",
"(",
"length",
")",
"||",
"Math",
".",
"floor",
"(",
"length",
")",
"!==",
"length",
"||",
"length",
... | Determines whether subjectString ends with the characters of searchString.
@param {String} subjectString The string to analyse.
@param {String} searchString The characters to be searched for at the end of subjectString.
@param {Number} length Optional. If provided overwrites the considered length of the string to searc... | [
"Determines",
"whether",
"subjectString",
"ends",
"with",
"the",
"characters",
"of",
"searchString",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/WWUtil.js#L299-L306 | |
10,583 | NASAWorldWind/WebWorldWind | src/globe/WcsEarthElevationCoverage.js | function () {
TiledElevationCoverage.call(this, {
coverageSector: Sector.FULL_SPHERE,
resolution: 0.008333333333333,
retrievalImageFormat: "image/tiff",
minElevation: -11000,
maxElevation: 8850,
urlBuilder: new W... | javascript | function () {
TiledElevationCoverage.call(this, {
coverageSector: Sector.FULL_SPHERE,
resolution: 0.008333333333333,
retrievalImageFormat: "image/tiff",
minElevation: -11000,
maxElevation: 8850,
urlBuilder: new W... | [
"function",
"(",
")",
"{",
"TiledElevationCoverage",
".",
"call",
"(",
"this",
",",
"{",
"coverageSector",
":",
"Sector",
".",
"FULL_SPHERE",
",",
"resolution",
":",
"0.008333333333333",
",",
"retrievalImageFormat",
":",
"\"image/tiff\"",
",",
"minElevation",
":",... | Constructs an Earth elevation model.
@alias WcsEarthElevationCoverage
@constructor
@augments TiledElevationCoverage
@classdesc Provides elevations for Earth. Elevations are drawn from the NASA WorldWind elevation service.
@deprecated | [
"Constructs",
"an",
"Earth",
"elevation",
"model",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/globe/WcsEarthElevationCoverage.js#L40-L52 | |
10,584 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (contours, resultContours) {
var doesCross = false;
for (var i = 0, len = contours.length; i < len; i++) {
var contourInfo = this.splitContour(contours[i]);
if (contourInfo.polygons.length > 1) {
doesCross = true;
... | javascript | function (contours, resultContours) {
var doesCross = false;
for (var i = 0, len = contours.length; i < len; i++) {
var contourInfo = this.splitContour(contours[i]);
if (contourInfo.polygons.length > 1) {
doesCross = true;
... | [
"function",
"(",
"contours",
",",
"resultContours",
")",
"{",
"var",
"doesCross",
"=",
"false",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"contours",
".",
"length",
";",
"i",
"<",
"len",
";",
"i",
"++",
")",
"{",
"var",
"contourInfo",... | Splits an array of polygons that cross the anti-meridian or contain a pole.
@param {Array} contours an array of arrays of Locations or Positions
Each array entry defines one of this polygon's boundaries.
@param {Array} resultContours an empty array to put the result of the split. Each element will have the
shape of Po... | [
"Splits",
"an",
"array",
"of",
"polygons",
"that",
"cross",
"the",
"anti",
"-",
"meridian",
"or",
"contain",
"a",
"pole",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L54-L66 | |
10,585 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (points) {
var iMap = new HashMap();
var newPoints = [];
var intersections = [];
var polygons = [];
var iMaps = [];
var poleIndex = -1;
var pole = this.findIntersectionAndPole(points, newPoints, int... | javascript | function (points) {
var iMap = new HashMap();
var newPoints = [];
var intersections = [];
var polygons = [];
var iMaps = [];
var poleIndex = -1;
var pole = this.findIntersectionAndPole(points, newPoints, int... | [
"function",
"(",
"points",
")",
"{",
"var",
"iMap",
"=",
"new",
"HashMap",
"(",
")",
";",
"var",
"newPoints",
"=",
"[",
"]",
";",
"var",
"intersections",
"=",
"[",
"]",
";",
"var",
"polygons",
"=",
"[",
"]",
";",
"var",
"iMaps",
"=",
"[",
"]",
... | Splits a polygon that cross the anti-meridian or contain a pole.
@param {Location[] | Position[]} points an array of Locations or Positions that define a polygon
@returns {Object} @see PolygonSplitter.formatContourOutput | [
"Splits",
"a",
"polygon",
"that",
"cross",
"the",
"anti",
"-",
"meridian",
"or",
"contain",
"a",
"pole",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L74-L112 | |
10,586 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (points, newPoints, intersections, iMap) {
var containsPole = false;
var minLatitude = 90.0;
var maxLatitude = -90.0;
this.addedIndex = -1;
for (var i = 0, lenC = points.length; i < lenC; i++) {
var pt1 = point... | javascript | function (points, newPoints, intersections, iMap) {
var containsPole = false;
var minLatitude = 90.0;
var maxLatitude = -90.0;
this.addedIndex = -1;
for (var i = 0, lenC = points.length; i < lenC; i++) {
var pt1 = point... | [
"function",
"(",
"points",
",",
"newPoints",
",",
"intersections",
",",
"iMap",
")",
"{",
"var",
"containsPole",
"=",
"false",
";",
"var",
"minLatitude",
"=",
"90.0",
";",
"var",
"maxLatitude",
"=",
"-",
"90.0",
";",
"this",
".",
"addedIndex",
"=",
"-",
... | Internal. Applications should not call this method.
Finds the intersections with the anti-meridian and if the polygon contains one of the poles.
A new polygon is constructed with the intersections and pole points and stored in newPoints
@param {Location[] | Position[]} points An array of Locations or Positions that de... | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"Finds",
"the",
"intersections",
"with",
"the",
"anti",
"-",
"meridian",
"and",
"if",
"the",
"polygon",
"contains",
"one",
"of",
"the",
"poles",
".",
"A",
"new",
"polygon",
"i... | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L126-L180 | |
10,587 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (minLatitude, maxLatitude) {
var pole;
if (minLatitude > 0) {
pole = Location.poles.NORTH; // Entirely in Northern Hemisphere.
}
else if (maxLatitude < 0) {
pole = Location.poles.SOUTH; // Entirely in Southe... | javascript | function (minLatitude, maxLatitude) {
var pole;
if (minLatitude > 0) {
pole = Location.poles.NORTH; // Entirely in Northern Hemisphere.
}
else if (maxLatitude < 0) {
pole = Location.poles.SOUTH; // Entirely in Southe... | [
"function",
"(",
"minLatitude",
",",
"maxLatitude",
")",
"{",
"var",
"pole",
";",
"if",
"(",
"minLatitude",
">",
"0",
")",
"{",
"pole",
"=",
"Location",
".",
"poles",
".",
"NORTH",
";",
"// Entirely in Northern Hemisphere.",
"}",
"else",
"if",
"(",
"maxLat... | Internal. Applications should not call this method.
Determine which pole is enclosed. If the shape is entirely in one hemisphere, then assume that it encloses
the pole in that hemisphere. Otherwise, assume that it encloses the pole that is closest to the shape's
extreme latitude.
@param {Number} minLatitude The minimum... | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"Determine",
"which",
"pole",
"is",
"enclosed",
".",
"If",
"the",
"shape",
"is",
"entirely",
"in",
"one",
"hemisphere",
"then",
"assume",
"that",
"it",
"encloses",
"the",
"pole"... | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L191-L206 | |
10,588 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (points, intersections, iMap, pole) {
var pointsClone;
if (pole === Location.poles.NORTH) {
var intersection = intersections.shift();
var poleLat = 90;
}
else if (pole === Location.poles.SOUTH) {
... | javascript | function (points, intersections, iMap, pole) {
var pointsClone;
if (pole === Location.poles.NORTH) {
var intersection = intersections.shift();
var poleLat = 90;
}
else if (pole === Location.poles.SOUTH) {
... | [
"function",
"(",
"points",
",",
"intersections",
",",
"iMap",
",",
"pole",
")",
"{",
"var",
"pointsClone",
";",
"if",
"(",
"pole",
"===",
"Location",
".",
"poles",
".",
"NORTH",
")",
"{",
"var",
"intersection",
"=",
"intersections",
".",
"shift",
"(",
... | Internal. Applications should not call this method.
Creates a new array of points containing the two pole locations on both sides of the anti-meridian
@param {Location[] | Position[]} points
@param {Array} intersections
@param {HashMap} iMap
@param {Number} pole
@return {Object} an object containing the new points and... | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"Creates",
"a",
"new",
"array",
"of",
"points",
"containing",
"the",
"two",
"pole",
"locations",
"on",
"both",
"sides",
"of",
"the",
"anti",
"-",
"meridian"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L218-L244 | |
10,589 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (intersections, iMap) {
for (var i = 0; i < intersections.length - 1; i += 2) {
var i0 = intersections[i];
var i1 = intersections[i + 1];
var iEnd0 = iMap.get(i0.indexEnd);
var iStart0 = iMap.get(i0.indexStart);
... | javascript | function (intersections, iMap) {
for (var i = 0; i < intersections.length - 1; i += 2) {
var i0 = intersections[i];
var i1 = intersections[i + 1];
var iEnd0 = iMap.get(i0.indexEnd);
var iStart0 = iMap.get(i0.indexStart);
... | [
"function",
"(",
"intersections",
",",
"iMap",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"intersections",
".",
"length",
"-",
"1",
";",
"i",
"+=",
"2",
")",
"{",
"var",
"i0",
"=",
"intersections",
"[",
"i",
"]",
";",
"var",
"i1... | Internal. Applications should not call this method.
Links adjacents pairs of intersection by index
@param {Array} intersections
@param {HashMap} iMap | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"Links",
"adjacents",
"pairs",
"of",
"intersection",
"by",
"index"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L252-L267 | |
10,590 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (intersections, iMap, indexOffset) {
iMap = HashMap.reIndex(iMap, indexOffset, 2);
for (var i = 0, len = intersections.length; i < len; i++) {
if (intersections[i].indexEnd >= indexOffset) {
intersections[i].indexEnd += 2;
... | javascript | function (intersections, iMap, indexOffset) {
iMap = HashMap.reIndex(iMap, indexOffset, 2);
for (var i = 0, len = intersections.length; i < len; i++) {
if (intersections[i].indexEnd >= indexOffset) {
intersections[i].indexEnd += 2;
... | [
"function",
"(",
"intersections",
",",
"iMap",
",",
"indexOffset",
")",
"{",
"iMap",
"=",
"HashMap",
".",
"reIndex",
"(",
"iMap",
",",
"indexOffset",
",",
"2",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"intersections",
".",
"length... | Internal. Applications should not call this method.
ReIndexes the intersections due to the poles being added to the array of points
@param {Array} intersections
@param {HashMap} iMap
@param {Number} indexOffset the index from which to start reIndexing
@returns {HashMap} a new hash map with the correct indices | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"ReIndexes",
"the",
"intersections",
"due",
"to",
"the",
"poles",
"being",
"added",
"to",
"the",
"array",
"of",
"points"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L277-L290 | |
10,591 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (start, end, points, iMap, resultPolygon, polygonHashMap) {
var pass = false;
var len = points.length;
var containsPole = false;
if (end < start) {
end += len;
}
for (var i = start; i <= end; i... | javascript | function (start, end, points, iMap, resultPolygon, polygonHashMap) {
var pass = false;
var len = points.length;
var containsPole = false;
if (end < start) {
end += len;
}
for (var i = start; i <= end; i... | [
"function",
"(",
"start",
",",
"end",
",",
"points",
",",
"iMap",
",",
"resultPolygon",
",",
"polygonHashMap",
")",
"{",
"var",
"pass",
"=",
"false",
";",
"var",
"len",
"=",
"points",
".",
"length",
";",
"var",
"containsPole",
"=",
"false",
";",
"if",
... | Internal. Applications should not call this method.
Paths from a start intersection index to an end intersection index and makes a polygon and a hashMap
with the intersection indices
@param {Number} start the index of a start type intersection
@param {Number} end the index of an end type intersection
@param {Location[]... | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"Paths",
"from",
"a",
"start",
"intersection",
"index",
"to",
"an",
"end",
"intersection",
"index",
"and",
"makes",
"a",
"polygon",
"and",
"a",
"hashMap",
"with",
"the",
"inters... | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L349-L391 | |
10,592 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (points, point, index, len) {
if (this.addedIndex < index && this.addedIndex < len - 1) {
points.push(point);
this.addedIndex = index;
}
} | javascript | function (points, point, index, len) {
if (this.addedIndex < index && this.addedIndex < len - 1) {
points.push(point);
this.addedIndex = index;
}
} | [
"function",
"(",
"points",
",",
"point",
",",
"index",
",",
"len",
")",
"{",
"if",
"(",
"this",
".",
"addedIndex",
"<",
"index",
"&&",
"this",
".",
"addedIndex",
"<",
"len",
"-",
"1",
")",
"{",
"points",
".",
"push",
"(",
"point",
")",
";",
"this... | Internal. Applications should not call this method.
Adds an element to an array preventing duplication
@param {Location[] | Position[]} points
@param {Location | Position} point
@param {Number} index The index of the Point from the source array
@param {Number} len The length of the source array | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"Adds",
"an",
"element",
"to",
"an",
"array",
"preventing",
"duplication"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L401-L406 | |
10,593 | NASAWorldWind/WebWorldWind | src/util/PolygonSplitter.js | function (latitude, longitude, altitude) {
if (altitude == null) {
return new Location(latitude, longitude);
}
return new Position(latitude, longitude, altitude);
} | javascript | function (latitude, longitude, altitude) {
if (altitude == null) {
return new Location(latitude, longitude);
}
return new Position(latitude, longitude, altitude);
} | [
"function",
"(",
"latitude",
",",
"longitude",
",",
"altitude",
")",
"{",
"if",
"(",
"altitude",
"==",
"null",
")",
"{",
"return",
"new",
"Location",
"(",
"latitude",
",",
"longitude",
")",
";",
"}",
"return",
"new",
"Position",
"(",
"latitude",
",",
"... | Internal. Applications should not call this method.
Creates a Location or a Position
@param {Number} latitude
@param {Number} longitude
@param {Number} altitude
@returns Location | Position | [
"Internal",
".",
"Applications",
"should",
"not",
"call",
"this",
"method",
".",
"Creates",
"a",
"Location",
"or",
"a",
"Position"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/PolygonSplitter.js#L416-L421 | |
10,594 | NASAWorldWind/WebWorldWind | src/formats/wkt/geom/WktObject.js | function (type) {
/**
* Type of this object.
* @type {WKTType}
*/
this.type = type;
/**
* It is possible for the WKT object to be displayed not in 2D but in 3D.
* @type {Boolean}
* @private
*/
this._is3d = false;
/*... | javascript | function (type) {
/**
* Type of this object.
* @type {WKTType}
*/
this.type = type;
/**
* It is possible for the WKT object to be displayed not in 2D but in 3D.
* @type {Boolean}
* @private
*/
this._is3d = false;
/*... | [
"function",
"(",
"type",
")",
"{",
"/**\n * Type of this object.\n * @type {WKTType}\n */",
"this",
".",
"type",
"=",
"type",
";",
"/**\n * It is possible for the WKT object to be displayed not in 2D but in 3D.\n * @type {Boolean}\n * @private\... | THis shouldn't be initiated from outside. It is only for internal use. Every other WKT Objects are themselves
WktObject
@alias WktObject
@param type {String} Textual representation of the type of current object.
@constructor | [
"THis",
"shouldn",
"t",
"be",
"initiated",
"from",
"outside",
".",
"It",
"is",
"only",
"for",
"internal",
"use",
".",
"Every",
"other",
"WKT",
"Objects",
"are",
"themselves",
"WktObject"
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/formats/wkt/geom/WktObject.js#L36-L74 | |
10,595 | NASAWorldWind/WebWorldWind | examples/GoToLocation.js | function (recognizer) {
// Obtain the event location.
var x = recognizer.clientX,
y = recognizer.clientY;
// Perform the pick. Must first convert from window coordinates to canvas coordinates, which are
// relative to the upper left corner of the canvas r... | javascript | function (recognizer) {
// Obtain the event location.
var x = recognizer.clientX,
y = recognizer.clientY;
// Perform the pick. Must first convert from window coordinates to canvas coordinates, which are
// relative to the upper left corner of the canvas r... | [
"function",
"(",
"recognizer",
")",
"{",
"// Obtain the event location.",
"var",
"x",
"=",
"recognizer",
".",
"clientX",
",",
"y",
"=",
"recognizer",
".",
"clientY",
";",
"// Perform the pick. Must first convert from window coordinates to canvas coordinates, which are",
"// r... | Now set up to handle clicks and taps. The common gesture-handling function. | [
"Now",
"set",
"up",
"to",
"handle",
"clicks",
"and",
"taps",
".",
"The",
"common",
"gesture",
"-",
"handling",
"function",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/examples/GoToLocation.js#L54-L68 | |
10,596 | NASAWorldWind/WebWorldWind | src/layer/Layer.js | function (displayName) {
/**
* This layer's display name.
* @type {String}
* @default "Layer"
*/
this.displayName = displayName ? displayName : "Layer";
/**
* Indicates whether to display this layer.
* @t... | javascript | function (displayName) {
/**
* This layer's display name.
* @type {String}
* @default "Layer"
*/
this.displayName = displayName ? displayName : "Layer";
/**
* Indicates whether to display this layer.
* @t... | [
"function",
"(",
"displayName",
")",
"{",
"/**\n * This layer's display name.\n * @type {String}\n * @default \"Layer\"\n */",
"this",
".",
"displayName",
"=",
"displayName",
"?",
"displayName",
":",
"\"Layer\"",
";",
"/**\n ... | Constructs a layer. This constructor is meant to be called by subclasses and not directly by an application.
@alias Layer
@constructor
@classdesc Provides an abstract base class for layer implementations. This class is not meant to be instantiated
directly. | [
"Constructs",
"a",
"layer",
".",
"This",
"constructor",
"is",
"meant",
"to",
"be",
"called",
"by",
"subclasses",
"and",
"not",
"directly",
"by",
"an",
"application",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/layer/Layer.js#L33-L91 | |
10,597 | NASAWorldWind/WebWorldWind | src/util/GoToAnimator.js | function (worldWindow) {
if (!worldWindow) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "GoToAnimator", "constructor",
"missingWorldWindow"));
}
/**
* The WorldWindow associated with this animator.
* @... | javascript | function (worldWindow) {
if (!worldWindow) {
throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "GoToAnimator", "constructor",
"missingWorldWindow"));
}
/**
* The WorldWindow associated with this animator.
* @... | [
"function",
"(",
"worldWindow",
")",
"{",
"if",
"(",
"!",
"worldWindow",
")",
"{",
"throw",
"new",
"ArgumentError",
"(",
"Logger",
".",
"logMessage",
"(",
"Logger",
".",
"LEVEL_SEVERE",
",",
"\"GoToAnimator\"",
",",
"\"constructor\"",
",",
"\"missingWorldWindow\... | Constructs a GoTo animator.
@alias GoToAnimator
@constructor
@classdesc Incrementally and smoothly moves a {@link Navigator} to a specified position.
@param {WorldWindow} worldWindow The WorldWindow in which to perform the animation.
@throws {ArgumentError} If the specified WorldWindow is null or undefined. | [
"Constructs",
"a",
"GoTo",
"animator",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/util/GoToAnimator.js#L39-L76 | |
10,598 | NASAWorldWind/WebWorldWind | src/projections/GeographicProjection.js | function (displayName, continuous, projectionLimits) {
/**
* This projection's display name.
* @type {string}
*/
this.displayName = displayName || "Geographic Projection";
/**
* Indicates whether this projection should be treated ... | javascript | function (displayName, continuous, projectionLimits) {
/**
* This projection's display name.
* @type {string}
*/
this.displayName = displayName || "Geographic Projection";
/**
* Indicates whether this projection should be treated ... | [
"function",
"(",
"displayName",
",",
"continuous",
",",
"projectionLimits",
")",
"{",
"/**\n * This projection's display name.\n * @type {string}\n */",
"this",
".",
"displayName",
"=",
"displayName",
"||",
"\"Geographic Projection\"",
";",
"/*... | Constructs a base geographic projection.
@alias GeographicProjection
@constructor
@classdesc Represents a geographic projection.
This is an abstract class and is meant to be instantiated only by subclasses.
See the following projections:
<ul>
<li>{@link ProjectionEquirectangular}</li>
<li>{@link ProjectionMercator}</li... | [
"Constructs",
"a",
"base",
"geographic",
"projection",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/projections/GeographicProjection.js#L50-L79 | |
10,599 | NASAWorldWind/WebWorldWind | src/projections/ProjectionPolarEquidistant.js | function (pole) {
GeographicProjection.call(this, "Polar Equidistant", false, null);
// Internal. Intentionally not documented. See "pole" property accessor below for public interface.
this._pole = pole;
// Internal. Intentionally not documented.
this.north... | javascript | function (pole) {
GeographicProjection.call(this, "Polar Equidistant", false, null);
// Internal. Intentionally not documented. See "pole" property accessor below for public interface.
this._pole = pole;
// Internal. Intentionally not documented.
this.north... | [
"function",
"(",
"pole",
")",
"{",
"GeographicProjection",
".",
"call",
"(",
"this",
",",
"\"Polar Equidistant\"",
",",
"false",
",",
"null",
")",
";",
"// Internal. Intentionally not documented. See \"pole\" property accessor below for public interface.",
"this",
".",
"_po... | Constructs a polar equidistant geographic projection.
@alias ProjectionPolarEquidistant
@constructor
@augments GeographicProjection
@classdesc Represents a polar equidistant geographic projection.
@param {String} pole Indicates the north or south aspect. Specify "North" for the north aspect or "South"
for the south asp... | [
"Constructs",
"a",
"polar",
"equidistant",
"geographic",
"projection",
"."
] | 399daee66deded581a2d1067a2ac04232c954b8f | https://github.com/NASAWorldWind/WebWorldWind/blob/399daee66deded581a2d1067a2ac04232c954b8f/src/projections/ProjectionPolarEquidistant.js#L41-L56 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.