Skip to content

Commit

Permalink
Eliminate Images folder.
Browse files Browse the repository at this point in the history
Earth imagery is now in a new package Resources.  Images used by Sandcastle examples are now in the Sandcastle folder.  Images used by the Widgets are now self-contained in the Widgets package.

Also clean up the build file a bit, and create Eclipse launches for all of the build.xml targets.
  • Loading branch information
shunter committed Nov 7, 2012
1 parent 53842a8 commit 00bcc4a
Show file tree
Hide file tree
Showing 61 changed files with 153 additions and 91 deletions.
15 changes: 9 additions & 6 deletions Apps/CesiumViewer/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ require({
}, {
name : 'Core',
location : 'Source/Core'
}, {
name : 'Widgets',
location : 'Source/Widgets'
}, {
name : 'Workers',
location : 'Source/Workers'
}, {
name : 'DynamicScene',
location : 'Source/DynamicScene'
}, {
name : 'Renderer',
location : 'Source/Renderer'
}, {
name : 'Resources',
location : 'Source/Resources'
}, {
name : 'Scene',
location : 'Source/Scene'
Expand All @@ -31,6 +28,12 @@ require({
}, {
name : 'ThirdParty',
location : 'Source/ThirdParty'
}, {
name : 'Widgets',
location : 'Source/Widgets'
}, {
name : 'Workers',
location : 'Source/Workers'
}, {
name : 'CesiumViewer',
location : 'Apps/CesiumViewer'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Apps/CesiumViewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">

<title>Cesium Viewer</title>
<link rel="shortcut icon" href="../../Images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="CesiumViewer.css" media="screen">

<script data-dojo-config="async: 1, tlmSiblingOfDojo: 0" src="../../ThirdParty/dojo-release-1.7.2-src/dojo/dojo.js"></script>
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Animations.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
15 changes: 8 additions & 7 deletions Apps/Sandcastle/gallery/Billboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down Expand Up @@ -84,7 +85,7 @@
});
scene.getPrimitives().add(billboards);
};
image.src = '../../../Images/Cesium_Logo_overlay.png';
image.src = '../images/Cesium_Logo_overlay.png';
}

function setBillboardPropertiesAtCreation(scene, ellipsoid) {
Expand All @@ -107,7 +108,7 @@
});
scene.getPrimitives().add(billboards);
};
image.src = '../../../Images/Cesium_Logo_overlay.png';
image.src = '../images/Cesium_Logo_overlay.png';
}

function setBillboardProperties(scene, ellipsoid) {
Expand All @@ -130,14 +131,14 @@

scene.getPrimitives().add(billboards);
};
image.src = '../../../Images/Cesium_Logo_overlay.png';
image.src = '../images/Cesium_Logo_overlay.png';
}

function addMultipleBillboards(scene, ellipsoid) {
Sandcastle.declare(addMultipleBillboards); // For highlighting in Sandcastle.
Cesium.when.all([
Cesium.loadImage('../../../Images/Cesium_Logo_overlay.png'),
Cesium.loadImage('../../../Images/facility.gif')
Cesium.loadImage('../images/Cesium_Logo_overlay.png'),
Cesium.loadImage('../images/facility.gif')
])
.then(function(images) {
// Once both images are downloaded, they are combined into one image,
Expand Down Expand Up @@ -306,7 +307,7 @@
});
scene.getPrimitives().add(billboards);
};
image.src = '../../../Images/whiteShapes.png';
image.src = '../images/whiteShapes.png';
}

function addBillboardsInReferenceframe(scene, ellipsoid) {
Expand All @@ -326,7 +327,7 @@
billboards.add({ imageIndex : 0, position : new Cesium.Cartesian3(0.0, 0.0, 1000000.0) }); // up
scene.getPrimitives().add(billboards);
};
image.src = '../../../Images/facility.gif';
image.src = '../images/facility.gif';
}

function createButtons(widget) {
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Camera Reference Frames.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Cesium Viewer Widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Cesium Widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Circles and Ellipses.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Custom Rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
10 changes: 6 additions & 4 deletions Apps/Sandcastle/gallery/Hello World.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@

var cb = new Cesium.CentralBody(ellipsoid);
cb.getImageryLayers().addImageryProvider(bing);
cb.nightImageSource = '../../../Images/land_ocean_ice_lights_2048.jpg';
cb.specularMapSource = '../../../Images/earthspec1k.jpg';

var resourcesUrl = '../../../Source/Resources/';
cb.nightImageSource = resourcesUrl + 'land_ocean_ice_lights_2048.jpg';
cb.specularMapSource = resourcesUrl + 'earthspec1k.jpg';
if (scene.getContext().getMaximumTextureSize() > 2048) {
cb.cloudsMapSource = '../../../Images/earthcloudmaptrans.jpg';
cb.bumpMapSource = '../../../Images/earthbump1k.jpg';
cb.cloudsMapSource = resourcesUrl + 'earthcloudmaptrans.jpg';
cb.bumpMapSource = resourcesUrl + 'earthbump1k.jpg';
}
cb.showSkyAtmosphere = true;
cb.showGroundAtmosphere = true;
Expand Down
15 changes: 10 additions & 5 deletions Apps/Sandcastle/gallery/Imagery Layers.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down Expand Up @@ -61,15 +62,15 @@
}

.upArrow {
background-image: url("../../../Images/UpArrow.png");
background-image: url("../images/UpArrow.png");
background-repeat: no-repeat;
width: 16px;
height: 16px;
text-align: center;
}

.downArrow {
background-image: url("../../../Images/DownArrow.png");
background-image: url("../images/DownArrow.png");
background-repeat: no-repeat;
width: 16px;
height: 16px;
Expand Down Expand Up @@ -153,8 +154,12 @@
proxy: new Cesium.DefaultProxy('/proxy/'),
credit: 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'
}));
addBaseLayerOption('Single Image', new Cesium.SingleTileImageryProvider({url : '../../../Images/NE2_50M_SR_W_4096.jpg'}));

addBaseLayerOption(
'Single Image',
new Cesium.SingleTileImageryProvider({
url : require.toUrl('Resources/NE2_50M_SR_W_4096.jpg')
}));

// Create the additional layers
addAdditionalLayerOption(
'United States GOES infrared',
Expand Down Expand Up @@ -183,7 +188,7 @@
addAdditionalLayerOption(
'Single image',
new Cesium.SingleTileImageryProvider({
url : '../../../Images/Cesium_Logo_overlay.png',
url : '../images/Cesium_Logo_overlay.png',
extent : new Cesium.Extent(
Cesium.Math.toRadians(-115.0),
Cesium.Math.toRadians(38.0),
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Labels.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
1 change: 1 addition & 0 deletions Apps/Sandcastle/gallery/Map Projections.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{ name: 'Core', location: 'Source/Core' },
{ name: 'DynamicScene', location: 'Source/DynamicScene' },
{ name: 'Renderer', location: 'Source/Renderer' },
{ name: 'Resources', location: 'Source/Resources' },
{ name: 'Scene', location: 'Source/Scene' },
{ name: 'Shaders', location: 'Source/Shaders' },
{ name: 'ThirdParty', location: 'Source/ThirdParty' },
Expand Down
Loading

0 comments on commit 00bcc4a

Please sign in to comment.