Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into sampledProperty-ext…
Browse files Browse the repository at this point in the history
…rapolation

Conflicts:
	CHANGES.md
  • Loading branch information
mramato committed Jul 17, 2014
2 parents 3eb8283 + 1ab0f9d commit 8e0a2b0
Show file tree
Hide file tree
Showing 25 changed files with 695 additions and 130 deletions.
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ Change Log
* Removed the following from the Cesium API: `Transforms.earthOrientationParameters`, `EarthOrientationParameters`, `EarthOrientationParametersSample`, `Transforms.iau2006XysData`, `Iau2006XysData`, `Iau2006XysSample`, `IauOrientationAxes`, `TimeConstants`, `Scene.frameState`, `FrameState`, `EncodedCartesian3`, `EllipsoidalOccluder`, and `FAR`. These are still available but are not part of the official API and may change in future versions.
* Removed `DynamicObject.vertexPositions`. Use `DynamicWall.positions`, `DynamicPolygon.positions`, and `DynamicPolyline.positions` instead.
* Removed `Primitive.allow3DOnly`, set the `Scene` level option, `scene3DOnly`, instead.
* Refactored the following methods into a properties:
* `TerrainProvider.hasWaterMask`
* `CesiumTerrainProvider.hasWaterMask`
* `ArcGisImageServerTerrainProvider.hasWaterMask`
* `EllipsoidTerrainProvider.hasWaterMask`
* `VRTheWorldTerrainProvider.hasWaterMask`
* Renamed preprocessor define, `ENABLE_LIGHTING` used by `Globe` shaders to `ENABLE_DAYNIGHT_SHADING`
* `SampledProperty` and `SampledPositionProperty` no longer extrapolate outside of their sample data time range by default.
* The `DynamicScene` layer has been renamed to `DataSources` additionally, the following objects have all been renamed.
* `DynamicBillboard` -> `BillboardGraphics`
Expand Down Expand Up @@ -73,6 +80,10 @@ Change Log
* Replaced `PerspectiveFrustum.fovy` with `PerspectiveFrustum.fov` which will change the field of view angle in either the x or y direction depending on the aspect ratio.
* Added northUpEast transform to help support display of glTF models because Y is their up axis.
* Cesium can now render an unlimited number of imagery layers, no matter how few texture units are supported by the hardware.
* Added `czm_octDecode` and `czm_signNotZero` builtin functions.
* Added `CesiumTerrainProvider.requestVertexNormals` to request per vertex normals from the provider, if they are available.
* Added new property to all terrain providers: `TerrainProvider.hasVertexNormals`, `CesiumTerrainProvider.hasVertexNormals`, `ArcGisImageServerTerrainProvider.hasVertexNormals`, `EllipsoidTerrainProvider.hasVertexNormals`, `VRTheWorldTerrainProvider.hasVertexNormals`. This property indicates whether or not vertex normals will be included in the terrain tile responses.
* Added support for rendering the globe with oct-encoded per vertex normals .
* Added `Primitive.ready`.
* Prevent primitives from flashing off and on when modifying static DataSources.
* Added `scene3DOnly` options to `Viewer`, `CesiumWidget`, and `Scene` constructors. This setting optimizes memory usage and performance for 3D mode at the cost of losing the ability to use 2D or Columbus View.
Expand Down
37 changes: 26 additions & 11 deletions Source/Core/ArcGisImageServerTerrainProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,32 @@ define([
get : function() {
return true;
}
},

/**
* Gets a value indicating whether or not the provider includes a water mask. The water mask
* indicates which areas of the globe are water rather than land, so they can be rendered
* as a reflective surface with animated waves. This function should not be
* called before {@link ArcGisImageServerTerrainProvider#ready} returns true.
* @memberof ArcGisImageServerTerrainProvider.prototype
* @type {Boolean}
*/
hasWaterMask : {
get : function() {
return false;
}
},

/**
* Gets a value indicating whether or not the requested tiles includes vertex normals.
* This function should not be called before {@link ArcGisImageServerTerrainProvider#ready} returns true.
* @memberof ArcGisImageServerTerrainProvider.prototype
* @type {Boolean}
*/
hasVertexNormals : {
get : function() {
return false;
}
}
});

Expand Down Expand Up @@ -218,16 +244,5 @@ define([
return this._levelZeroMaximumGeometricError / (1 << level);
};

/**
* Gets a value indicating whether or not the provider includes a water mask. The water mask
* indicates which areas of the globe are water rather than land, so they can be rendered
* as a reflective surface with animated waves.
*
* @returns {Boolean} True if the provider has a water mask; otherwise, false.
*/
ArcGisImageServerTerrainProvider.prototype.hasWaterMask = function() {
return false;
};

return ArcGisImageServerTerrainProvider;
});
Loading

0 comments on commit 8e0a2b0

Please sign in to comment.