summaryrefslogtreecommitdiff
path: root/includes/js/dojox/gfx3d/tests/test_drawer.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/gfx3d/tests/test_drawer.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/gfx3d/tests/test_drawer.html')
-rw-r--r--includes/js/dojox/gfx3d/tests/test_drawer.html92
1 files changed, 0 insertions, 92 deletions
diff --git a/includes/js/dojox/gfx3d/tests/test_drawer.html b/includes/js/dojox/gfx3d/tests/test_drawer.html
deleted file mode 100644
index 3a9af1f..0000000
--- a/includes/js/dojox/gfx3d/tests/test_drawer.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" >
-<head>
-<title>Pilot test of dojox.gfx3d.</title>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<style type="text/css">
- @import "../../../dojo/resources/dojo.css";
- @import "../../../dijit/tests/css/dijitTests.css";
- @import "../../../dijit/themes/tundra/tundra.css";
-</style>
-<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug: true"></script>
-<script type="text/javascript">
-
-dojo.require("dojox.gfx3d");
-
-var angles = {x: 0, y: 0, z: 0};
-var view = null;
-var cube = null;
-
-function moveMe(){
- var p = dojo.byId("action");
- var m = dojox.gfx3d.matrix;
- if(p.value == "Move to Back!"){
- console.debug(p.value);
- p.value = "Move to Front!";
- cube.setTransform(m.translate(20, 0, -120))
- }else{
- p.value = "Move to Back!";
- cube.setTransform(m.translate(50, 0, 150))
- }
- cube.invalidate();
- view.render();
-};
-
-makeObjects = function(){
- var surface = dojox.gfx.createSurface("test", 500, 500);
- view = surface.createViewport();
- var c = { bottom: {x: 0, y: 0, z: 0}, top :{x: 100, y: 100, z: 100} };
- var xaxis = [{x: 0, y: 0, z: 0}, {x: 200, y: 0, z: 0}];
- var yaxis = [{x: 0, y: 0, z: 0}, {x: 0, y: 200, z: 0}];
- var zaxis = [{x: 0, y: 0, z: 0}, {x: 0, y: 0, z: 200}];
-
- var m = dojox.gfx3d.matrix;
-
- view.createEdges(xaxis).setStroke({color: "red", width: 1});
- view.createEdges(yaxis).setStroke({color: "green", width: 1});
- view.createEdges(zaxis).setStroke({color: "blue", width: 1});
-
- view.createCube(c)
- .setFill({type: "plastic", finish: dojox.gfx3d.lighting.finish.dull, color: "blue"})
- .setStroke({color: "black", width: 1});
-
- cube = view.createCube(c)
- .setTransform(m.translate(50, 50, 150))
- .setFill({type: "plastic", finish: dojox.gfx3d.lighting.finish.dull, color: "lime"})
- .setStroke({color: "black", width: 1});
-
- var camera = dojox.gfx3d.matrix.normalize([
- m.cameraRotateXg(60),
- m.cameraRotateYg(30),
- m.cameraTranslate(-200, -300, 0)
- ]);
-
- view.applyCameraTransform(camera);
- view.setLights([{direction: {x: 10, y: 7, z: 5}, color: "white"}],
- {color:"white", intensity: 2}, "white");
- view.render();
-
- // add the click event handler
- dojo.connect(dojo.byId("action"), "onclick", moveMe);
-};
-
-mdebug = function(matrix){
- var m = dojox.gfx3d.matrix.normalize(matrix);
- console.debug("xx: " + m.xx + ", xy: " + m.xy + " | xz:" + m.xz + " | dx:" + m.dx);
- console.debug("yx: " + m.yx + ", yy: " + m.yy + " | yz:" + m.yz + " | dy:" + m.dy);
- console.debug("zx: " + m.zx + ", zy: " + m.zy + " | zz:" + m.zz + " | dz:" + m.dz);
-};
-
-dojo.addOnLoad(makeObjects);
-
-</script>
-</head>
-<body class="tundra">
- <h1>Pilot Test</h1>
- <p> The color of X, Y, Z axes are red, green, blue. One cube is in the center (0, 0, 0), click the button to move the other one back
- and forth, using this to test <em>dojox.gfx3d.drawer.conservative</em></p>
- <input id="action" type="button" value="Move to Back!"/>
-
-<div id="test" style="width: 500px; height: 500px;"></div>
-<p>That's all Folks!</p>
-</body>
-</html>