Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to work with Cesium 1.59 #1

Open
wants to merge 77 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
094541b
Updating sensor visualizers to work with entity.show/entity.isShowing…
jlouns Apr 5, 2015
28f33a2
Updating plugin to work with Cesium 1.15
jlouns Nov 7, 2015
d47c9cc
Removing third party libs in preparation for bower
jlouns Nov 7, 2015
3e35a19
Moving to bower for dependency management
jlouns Nov 7, 2015
6b1d242
Updating README
jlouns Nov 7, 2015
082b943
Upgrading build process to gulp
jlouns Apr 24, 2016
beb8d47
Renaming directories
jlouns Apr 24, 2016
db3032c
Fixing use of minified shader files in build
jlouns Apr 24, 2016
3c32584
Fixing inclusion of license comments in minified dist
jlouns Apr 24, 2016
cb8cc9c
Changing test file naming convention
jlouns Apr 24, 2016
65a8292
Changing script naming convention
jlouns Apr 24, 2016
1dae9e6
Creating module structure
jlouns Apr 24, 2016
32a8820
Adding ability to skip webgl tests for CI builds
jlouns Apr 24, 2016
7b25702
Adding travis-ci integration
jlouns Apr 24, 2016
e1fcf4d
Adding custom chrome config for travis build
jlouns Apr 24, 2016
bdcab74
Fixing camelcase issue
jlouns Apr 24, 2016
c34c753
Moving to electron for ci builds
jlouns Apr 24, 2016
ad9e445
Adding npmignore
jlouns Apr 24, 2016
cdf9291
Renaming to cesium-sensor-volumes to avoid confusion with original pl…
jlouns Apr 24, 2016
0e96531
Updating readme and links
jlouns Apr 24, 2016
0692ae5
Adding keywords
jlouns Apr 24, 2016
ba5cc62
1.16.1
jlouns Apr 24, 2016
0c60263
Adding version and dependency badges
jlouns Apr 24, 2016
1cdd9a0
Updating to cesium 1.17
jlouns Apr 24, 2016
3387fab
1.17.0
jlouns Apr 24, 2016
8a3658a
Upgrading to cesium 1.18
jlouns Apr 24, 2016
d18bf92
1.18.0
jlouns Apr 24, 2016
75d2239
Upgrading to cesium 1.19
jlouns Apr 24, 2016
bf901f5
1.19.0
jlouns Apr 24, 2016
130bec0
Upgrading to cesium 1.20 and requirejs 2.2.0
jlouns Apr 24, 2016
5873775
1.20.0
jlouns Apr 24, 2016
583104b
Upgrading to cesium 1.21
jlouns Dec 15, 2016
37ddc6f
1.21.0
jlouns Dec 15, 2016
5ca1fd2
Upgrading to cesium 1.22
jlouns Dec 15, 2016
ad94d12
1.22.0
jlouns Dec 15, 2016
2700484
Upgrading to cesium 1.23
jlouns Dec 15, 2016
207c689
1.23.0
jlouns Dec 15, 2016
baf450f
Upgrading to cesium 1.24
jlouns Dec 15, 2016
e68111a
1.24.0
jlouns Dec 15, 2016
ba97705
Upgrading to cesium 1.25
jlouns Dec 15, 2016
6907b62
1.25.0
jlouns Dec 15, 2016
c8044cc
Upgrading to cesium 1.26
jlouns Dec 16, 2016
4500181
1.26.0
jlouns Dec 16, 2016
e59c111
Upgrading to cesium 1.27
jlouns Dec 16, 2016
e64d410
1.27.0
jlouns Dec 16, 2016
4cda8ce
Upgrading to cesium 1.28
jlouns Dec 16, 2016
7573d77
1.28.0
jlouns Dec 16, 2016
59ecb75
Identifying initialize test as requiring webgl to fix CI build
jlouns Dec 16, 2016
b1c2347
Updating dependencies
jlouns Feb 5, 2017
fcf6f8b
Upgrading to cesium 1.29
jlouns Feb 5, 2017
23b4dac
1.29.0
jlouns Feb 5, 2017
321f4c3
Upgrading to cesium 1.30
jlouns Feb 5, 2017
f5f66a9
1.30.0
jlouns Feb 5, 2017
15cf9d2
updating to cesium 1.31
jlouns Mar 27, 2017
efceee6
1.31.0
jlouns Mar 27, 2017
1266523
Updating dependencies
jlouns Apr 22, 2017
313c109
Updating requirejs
jlouns Apr 22, 2017
1ff0fef
Upgrading to cesium 1.32.1
jlouns Apr 22, 2017
85421f4
1.32.0
jlouns Apr 22, 2017
73bd90e
Updating node version in CI config
jlouns Apr 22, 2017
10d30fc
Update to work with Cesium 1.59
Flowm Jul 4, 2019
0181b71
Convert file eol from crlf to lf (unix style)
damiendt Apr 10, 2020
a758bbe
Updated to support Cesium 1.68
damiendt Apr 10, 2020
00fa22c
Merge pull request #1 from damiendt/cesium-sensor-volumes
Flowm Jan 7, 2021
2473539
Upgrade to gulp 4
Flowm Jan 5, 2021
587ca3d
Update to Cesium 1.77
Flowm Jan 6, 2021
532fdd3
Add ConicSensor example
Flowm Jan 6, 2021
c3b5604
Fix lint warnings
Flowm Jan 7, 2021
94d7b95
Transform codebase to es6
Flowm Jan 9, 2021
f298616
Refactor build system and add es6 module build
Flowm Jan 9, 2021
42e9d21
Update readme
Flowm Jan 10, 2021
2e98dd9
Add dist files
Flowm Jan 10, 2021
5d9aef5
Upgrade dev dependencies
Flowm Dec 25, 2022
02b4d90
Upgrade to Cesium 1.99
Flowm Dec 25, 2022
b019548
Upgrade to Cesium 1.100
Flowm Dec 25, 2022
e692a9f
Port shaders to WebGL2
Flowm Feb 26, 2023
64361cd
Upgrade to Cesium 1.102
Flowm Feb 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add ConicSensor example
Flowm committed Jan 7, 2021
commit 532fdd390b92b90def37a2a3013f59cdc158ffe1
26 changes: 26 additions & 0 deletions examples/api.html
Original file line number Diff line number Diff line change
@@ -101,6 +101,31 @@
viewer.scene.primitives.add(customSensor);
}

function addConicSensor() {
viewer.scene.primitives.removeAll();
var position = Cesium.Cartesian3.fromDegrees(0, 0, 1000000);
var heading = Cesium.Math.toRadians(0);
var pitch = Cesium.Math.toRadians(90);
var roll = Cesium.Math.toRadians(0);
var hpr = new Cesium.HeadingPitchRoll(heading, pitch, roll);
var orientation = Cesium.Transforms.headingPitchRollQuaternion(position, hpr);
const entity = new Cesium.Entity({
name: "Test",
position,
orientation,
});
entity.addProperty("conicSensor");
entity.conicSensor = new CesiumSensorVolumes.ConicSensorGraphics({
radius: 10000000,
innerHalfAngle: Cesium.Math.toRadians(0),
outerHalfAngle: Cesium.Math.toRadians(15),
lateralSurfaceMaterial: Cesium.Color.GOLD.withAlpha(0.15),
intersectionColor: Cesium.Color.GOLD.withAlpha(0.3),
intersectionWidth: 1,
});
viewer.entities.add(entity);
}

function addToolbarButton(text, onclick) {
var button = document.createElement('button');
button.type = 'button';
@@ -112,6 +137,7 @@

addToolbarButton('Rectangular', addRectangularSensor);
addToolbarButton('Custom', addCustomSensor);
addToolbarButton('Conic', addConicSensor);

addRectangularSensor();
</script>