Skip to content

Commit

Permalink
Merge pull request #1132 from AnalyticalGraphicsInc/dynamicScene-es5-…
Browse files Browse the repository at this point in the history
…properties

DynamicScene ES5 properties
  • Loading branch information
shunter committed Sep 20, 2013
2 parents 5a82370 + 85d55c3 commit 119b26c
Show file tree
Hide file tree
Showing 61 changed files with 4,169 additions and 2,686 deletions.
2 changes: 1 addition & 1 deletion Apps/CesiumViewer/CesiumViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ define([
viewer.dataSources.add(source);

if (defined(endUserOptions.lookAt)) {
var dynamicObject = source.getDynamicObjectCollection().getObject(endUserOptions.lookAt);
var dynamicObject = source.getDynamicObjectCollection().getById(endUserOptions.lookAt);
if (defined(dynamicObject)) {
viewer.trackedObject = dynamicObject;
} else {
Expand Down
15 changes: 11 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ if (defined(p) && defined(p.primitive)) {
* From `Quaternion`: `conjugate`, `magnitudeSquared`, `magnitude`, `normalize`, `inverse`, `add`, `subtract`, `negate`, `dot`, `multiply`, `multiplyByScalar`, `divideByScalar`, `getAxis`, `getAngle`, `lerp`, `slerp`, `equals`, `equalsEpsilon`

Code that previously looked like `quaternion.magnitude();` should now look like `Quaternion.magnitude(quaternion);`.
* `DynamicObjectCollection` and `CompositeDynamicObjectCollection` have been largely re-written, see the documentation for complete details. Highlights include:
* `getObject` has been renamed `getById`
* `removeObject` has been renamed `removeById`
* `collectionChanged` event added for notification of objects being added or removed.
* `DynamicScene` graphics object (`DynamicBillboard`, etc...) have had their static `mergeProperties` and `clean` functions removed.
* Added `CorridorOutlineGeometry`.
* Added `PolylineGeometry`, `PolylineColorAppearance`, and `PolylineMaterialAppearance`.
* Added `colors` option to `SimplePolylineGeometry` for per vertex or per segment colors.
Expand All @@ -44,8 +49,10 @@ if (defined(p) && defined(p.primitive)) {
* Added `Scene.sunBloom` to enable/disable the bloom filter on the sun. The bloom filter should be disabled for better frame rates on mobile devices.
* Fix geometries not closing completely. [#1093](https://github.com/AnalyticalGraphicsInc/cesium/issues/1093)
* Improved graphics performance. For example, an Everest terrain view went from 135-140 to over 150 frames per second.
* Added `propertyChanged` event to `DynamicScene` graphics objects for receiving change notifications.
* Fix `EllipsoidTangentPlane.projectPointOntoPlane` for tangent planes on an ellipsoid other than the unit sphere.

* Added prototype `clone` and `merge` functions to `DynamicScene` graphics objects .

### b20 - 2013-09-03

_This releases fixes 2D and other issues with Chrome 29.0.1547.57 ([#1002](https://github.com/AnalyticalGraphicsInc/cesium/issues/1002) and [#1047](https://github.com/AnalyticalGraphicsInc/cesium/issues/1047))._
Expand All @@ -56,7 +63,7 @@ _This releases fixes 2D and other issues with Chrome 29.0.1547.57 ([#1002](https
* Completely refactored the `DynamicScene` property system to vastly improve the API. See [#1080](https://github.com/AnalyticalGraphicsInc/cesium/pull/1080) for complete details.
* Removed `CzmlBoolean`, `CzmlCartesian2`, `CzmlCartesian3`, `CzmlColor`, `CzmlDefaults`, `CzmlDirection`, `CzmlHorizontalOrigin`, `CzmlImage`, `CzmlLabelStyle`, `CzmlNumber`, `CzmlPosition`, `CzmlString`, `CzmlUnitCartesian3`, `CzmlUnitQuaternion`, `CzmlUnitSpherical`, and `CzmlVerticalOrigin` since they are no longer needed.
* Removed `DynamicProperty`, `DynamicMaterialProperty`, `DynamicDirectionsProperty`, and `DynamicVertexPositionsProperty`; replacing them with an all new system of properties.
* `Property` - base interface for all properties.
* `Property` - base interface for all properties.
* `CompositeProperty` - a property composed of other properties.
* `ConstantProperty` - a property whose value never changes.
* `SampledProperty` - a property whose value is interpolated from a set of samples.
Expand Down Expand Up @@ -110,9 +117,9 @@ var geometry = BoxGeometry.createGeometry(box);
* Added the ability to specify a `minimumTerrainLevel` and `maximumTerrainLevel` when constructing an `ImageryLayer`. The layer will only be shown for terrain tiles within the specified range.
* Added `Math.setRandomNumberSeed` and `Math.nextRandomNumber` for generating repeatable random numbers.
* Added `Color.fromRandom` to generate random and partially random colors.
* Added an `onCancel` callback to `CameraFlightPath` functions that will be executed if the flight is canceled.
* Added an `onCancel` callback to `CameraFlightPath` functions that will be executed if the flight is canceled.
* Added `Scene.debugShowFrustums` and `Scene.debugFrustumStatistics` for rendering debugging.
* Added `Packable` and `PackableForInterpolation` interfaces to aid interpolation and in-memory data storage. Also made most core Cesium types implement them.
* Added `Packable` and `PackableForInterpolation` interfaces to aid interpolation and in-memory data storage. Also made most core Cesium types implement them.
* Added `InterpolationAlgorithm` interface to codify the base interface already being used by `LagrangePolynomialApproximation`, `LinearApproximation`, and `HermitePolynomialApproximation`.
* Improved the performance of polygon triangulation using an O(n log n) algorithm.
* Improved geometry batching performance by moving work to a web worker.
Expand Down
Loading

0 comments on commit 119b26c

Please sign in to comment.