printrun-src/testfiles/belt_pulley3.skeinforge.small.svg

Sat, 04 Jun 2016 12:41:32 +0200

author
mbayer
date
Sat, 04 Jun 2016 12:41:32 +0200
changeset 22
4c9bb8f93ae8
parent 15
0bbb006204fc
permissions
-rw-r--r--

Added the Lasercut settings to the pronterface options dialog
(default settings when used without pronterwindow)

15
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
1 <?xml version='1.0' standalone='no'?>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
2 <!--Written in KDevelop (http://www.kdevelop.org/)-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
3 <svg baseProfile='full' contentScriptType='text/ecmascript' contentStyleType='text/css' height='4003.518px' onload='init()' preserveAspectRatio='xMidYMid meet' version='1.0' width='516.0px' xmlns='http://www.w3.org/2000/svg' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:slice='http://www.reprap.org/slice' xmlns:xlink='http://www.w3.org/1999/xlink' zoomAndPan='magnify'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
4 <metadata>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
5 <slice:layers id='sliceData' controlBoxHeight='720' controlBoxWidth='240' decimalPlacesCarried='4' edgeWidth='0.72' layerHeight='0.4' margin='20' marginTop='60' maxX='11.919' maxY='11.919' maxZ='10.0' minX='-11.919' minY='-11.919' minZ='-2.0' procedureName='carve' svgMinWidth='516' template='svg_layer' textHeight='22.5' unitScale='3.7' version='0.1' yAxisPointingUpward='true' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
6 </metadata>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
7 <script type='text/ecmascript'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
8 <![CDATA[
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
9 globalMetadata = document.getElementsByTagNameNS('http://www.reprap.org/slice', 'layers')[0];
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
10 globalSliceMinX = globalMetadata.getAttribute('minX') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
11 globalSliceMaxX = globalMetadata.getAttribute('maxX') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
12 globalSliceMinY = globalMetadata.getAttribute('minY') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
13 globalSliceMaxY = globalMetadata.getAttribute('maxY') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
14 globalSliceMinZ = globalMetadata.getAttribute('minZ') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
15 globalSliceMaxZ = globalMetadata.getAttribute('maxZ') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
16
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
17 //Control var's
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
18 globalLayerIndex = 0; //Number of currently viewed layer (zero index)
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
19 globalLatitude = 60.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
20 globalLongitude = 45.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
21 globalControlBoxHeight = globalMetadata.getAttribute('controlBoxHeight') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
22 globalControlBoxWidth = globalMetadata.getAttribute('controlBoxWidth') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
23 globalSliding = false;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
24 globalObserving = false
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
25
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
26 //Display var's
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
27 globalMargin = globalMetadata.getAttribute('margin') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
28 globalMarginTop = globalMetadata.getAttribute('marginTop') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
29 globalDimensionX = globalSliceMaxX - globalSliceMinX;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
30 globalDimensionY = globalSliceMaxY - globalSliceMinY;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
31 globalDimensionZ = globalSliceMaxZ - globalSliceMinZ;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
32 magnitudeXYSquared = globalDimensionX * globalDimensionX + globalDimensionY * globalDimensionY;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
33 globalDimensionMagnitude = Math.sqrt(magnitudeXYSquared + globalDimensionZ * globalDimensionZ);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
34 globalGlobeTravelRadian = 0.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
35 globalGlobeInnerObserverRadius = 0.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
36 globalTextHeight = globalMetadata.getAttribute('textHeight') * 1.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
37 globalUnitScale = globalMetadata.getAttribute('unitScale') * 1.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
38 globalXOffset = globalControlBoxWidth + globalMargin + globalMargin;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
39 globalYOffset = globalMargin + globalMarginTop;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
40 globalZoomScale = 1.0; //Default 1:1 may need smaller scale for large objects
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
41 globalScale = globalUnitScale * globalZoomScale;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
42
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
43 //Globals to be set in init
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
44 globalLayers = [];
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
45 globalSlider = 0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
46 globalThumb = 0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
47 globalThumbRadius = 0.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
48 globalSliderWidthMinusDiameter = 0.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
49
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
50
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
51 function changeScale(newScale) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
52 globalZoomScale = newScale;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
53 globalScale = globalUnitScale * globalZoomScale;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
54 if (globalZoomScale >=1) { //dont scale line thickness for large display scale
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
55 document.getElementById('layerData').setAttributeNS(null, 'stroke-width', 2.0 / (globalScale));
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
56 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
57 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
58
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
59 function changeScaleIso(newScale) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
60 changeScale(newScale);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
61 viewIso();
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
62 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
63
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
64 function changeScaleLayer(newScale) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
65 changeScale(newScale);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
66 viewLayer();
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
67 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
68
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
69 function changeScaleScroll(newScale) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
70 changeScale(newScale);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
71 viewScroll();
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
72 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
73
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
74 function displayIso(latitude, longitude) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
75 latitude = Math.max(0.0, latitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
76 latitude = Math.min(89.0, latitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
77 globalLatitude = Math.round(latitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
78 globalLongitude = Math.round((longitude + 540.0) % 360.0) - 180.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
79 latitudeRadians = getRadians(globalLatitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
80 longitudeWiddershinsRadians = getRadians(90.0 - globalLongitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
81 unitX = Math.cos(longitudeWiddershinsRadians);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
82 unitY = Math.sin(longitudeWiddershinsRadians);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
83 latitudeOverLayers = globalDimensionZ / globalLayers.length;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
84 globalOneOverUnitScaleString = (1.0 / globalUnitScale).toString();
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
85 yScale = -1.0 * globalScale * Math.cos(latitudeRadians);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
86 scaleRotateCenterString = ' scale(' + globalScale + ', ' + yScale + ')';
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
87 scaleRotateCenterString += ' rotate(' + (-1.0 * globalLongitude).toString() + ')';
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
88 centerX = (-0.5 * globalDimensionX - globalSliceMinX).toString();
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
89 centerY = (-0.5 * globalDimensionY - globalSliceMinY).toString();
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
90 scaleRotateCenterString += ' translate(' + centerX + ', ' + centerY + ')';
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
91 x = 0.5 * globalDimensionMagnitude * globalScale + globalXOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
92 halfLengthMinusOne = 0.5 * (globalLayers.length - 1);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
93 for (var i in globalLayers) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
94 latitudeZSin = Math.sin(latitudeRadians) * (i - halfLengthMinusOne) * latitudeOverLayers
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
95 y = globalScale * (0.5 * globalDimensionMagnitude - latitudeZSin) + globalYOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
96 // y = globalDimensionY * globalScale + globalYOffset - i * unitY * latitudeOverLayers;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
97 transformString = ' translate(' + x + ', ' + y + ')';
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
98 globalLayers[i].setAttributeNS(null, 'transform', transformString + scaleRotateCenterString);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
99 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
100 setText('latitudeIso', 'Latitude: ' + globalLatitude.toString() + '°');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
101 setText('longitudeIso', 'Longitude: ' + globalLongitude.toString() + '°');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
102 globeMoveableRadius = globalGlobeTravelRadian * latitudeRadians + globalGlobeInnerObserverRadius;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
103 globalObserver.setAttribute('cx', globalGlobeCenterX + unitX * globeMoveableRadius);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
104 globalObserver.setAttribute('cy', globalGlobeCenterY - unitY * globeMoveableRadius);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
105 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
106
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
107 function displayIsoByLatitude(latitude) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
108 displayIso(latitude, globalLongitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
109 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
110
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
111 function displayIsoByLongitude(longitude) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
112 displayIso(globalLatitude, longitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
113 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
114
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
115 function displayLayer(layerNum) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
116 if (globalLayers.length <= 1) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
117 document.getElementById('maxIndexLayer').setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
118 document.getElementById('minIndexLayer').setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
119 globalSlider.setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
120 globalThumb.setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
121 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
122 if (layerNum <= 0) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
123 document.getElementById('decreaseLayerIndex').setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
124 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
125 else {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
126 document.getElementById('decreaseLayerIndex').setAttributeNS(null, 'visibility', 'visible');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
127 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
128 if (layerNum >= globalLayers.length - 1) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
129 document.getElementById('increaseLayerIndex').setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
130 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
131 else {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
132 document.getElementById('increaseLayerIndex').setAttributeNS(null, 'visibility', 'visible');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
133 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
134 if (layerNum < 0 || layerNum >= globalLayers.length) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
135 return
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
136 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
137 globalLayers[globalLayerIndex].setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
138 currentLayerElement = globalLayers[layerNum]
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
139 currentLayerElement.setAttributeNS(null, 'visibility', 'visible');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
140 globalLayerIndex = layerNum;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
141 setText('currentIndexLayer', 'Layer: ' + globalLayerIndex.toString() + ', ' + currentLayerElement.getAttribute('id'));
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
142 //Slider
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
143 if (!globalSliding) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
144 placeThumb(globalSliderWidthMinusDiameter / (globalLayers.length - 1) * globalLayerIndex + globalThumbRadius);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
145 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
146 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
147
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
148 function getDegrees(radians) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
149 return radians / Math.PI * 180.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
150 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
151
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
152 function getRadians(degrees) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
153 return degrees / 180.0 * Math.PI;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
154 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
155
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
156 function getScaleTransformString(scale) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
157 scaleTransformString = 'scale(' + scale + ' ' + (scale * - 1)
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
158 return scaleTransformString + ') translate(' + (globalSliceMinX * - 1) + ' ' + (globalSliceMinY * - 1) + ')';
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
159 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
160
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
161 function getWidth() {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
162 return (globalDimensionX * globalScale) + globalXOffset
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
163 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
164
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
165 function hideElements(elementNames) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
166 for (var elementNameIndex in elementNames) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
167 document.getElementById(elementNames[elementNameIndex]).setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
168 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
169 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
170
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
171 function init() {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
172 //Find only layer groups
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
173 globe = document.getElementById('globe');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
174 globalGlobeCenterX = globe.getAttribute('cx') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
175 globalGlobeCenterXWindow = globalGlobeCenterX + globalMargin;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
176 globalGlobeCenterY = globe.getAttribute('cy') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
177 globalGlobeCenterYWindow = globalGlobeCenterX + globalMarginTop;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
178 globalObserver = document.getElementById('observer');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
179 globeRadius = globe.getAttribute('r') * 1.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
180 observerRadius = globalObserver.getAttribute('r') * 1.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
181 globalGlobeInnerObserverRadius = document.getElementById('cover').getAttribute('r') * 1.0 + observerRadius;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
182 globalGlobeTravelRadian = getDegrees(globeRadius - globalGlobeInnerObserverRadius - observerRadius) / 89.0;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
183 globalSlider = document.getElementById('slider');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
184 globalSliderX = globalSlider.getAttribute('x') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
185 globalSliderXWindow = globalSliderX + globalMargin
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
186 globalThumb = document.getElementById('thumb');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
187 globalThumbRadius = globalThumb.getAttribute('r') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
188 globalSliderWidthMinusRadius = globalSlider.getAttribute('width') * 1 - globalThumbRadius;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
189 globalSliderWidthMinusDiameter = globalSliderWidthMinusRadius - globalThumbRadius;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
190 var allGroups = document.getElementsByTagName('g');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
191 for (var i = 0; i < allGroups.length; i++) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
192 if (allGroups[i].id.indexOf('z:') == 0) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
193 globalLayers.push(allGroups[i]);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
194 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
195 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
196
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
197 //Slider
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
198 layerControlBox = document.getElementById('layerControlBox');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
199 layerControlBox.addEventListener('mouseup', sliderUp, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
200 layerControlBox.addEventListener('mousemove', sliderMove, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
201 globalSlider.addEventListener('mousedown', sliderDownMove, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
202 globalThumb.addEventListener('mousedown', sliderDownMove, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
203 //Observer
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
204 isoControlBox = document.getElementById('isoControlBox');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
205 isoControlBox.addEventListener('mouseup', observerUp, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
206 isoControlBox.addEventListener('mousemove', observerMove, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
207 globe.addEventListener('mousedown', observerDownMove, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
208 globalObserver.addEventListener('mousedown', observerDownMove, false);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
209
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
210 //Control box data
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
211 setText('maxIndexLayer', globalLayers.length - 1);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
212 changeScaleLayer(globalZoomScale);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
213 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
214
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
215 function observerDown(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
216 globalObserving = true;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
217 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
218
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
219 function observerDownMove(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
220 globalObserving = true;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
221 observerMove(event);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
222 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
223
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
224 function observerMove(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
225 if (!globalObserving) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
226 return;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
227 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
228 observerX = event.clientX - globalGlobeCenterXWindow + window.pageXOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
229 observerY = event.clientY - globalGlobeCenterYWindow + window.pageYOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
230 distanceFromCenter = Math.sqrt(observerX * observerX + observerY * observerY);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
231 latitudeRadians = (distanceFromCenter - globalGlobeInnerObserverRadius) / globalGlobeTravelRadian;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
232 longitudeRadians = Math.atan2(observerX, -observerY);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
233 displayIso(getDegrees(latitudeRadians), getDegrees(longitudeRadians));
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
234 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
235
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
236 function observerUp(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
237 globalObserving = false;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
238 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
239
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
240 function placeThumb(value) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
241 if (globalLayers.length > 1) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
242 globalThumb.setAttribute('cx', globalSliderX + value);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
243 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
244 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
245
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
246 function setScaleText(scaleID) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
247 setText(scaleID, ': ' + globalZoomScale);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
248 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
249
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
250 function setSVG(width, height) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
251 rootSVG = document.getElementsByTagName('svg')[0];
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
252 svgMinWidth = globalMetadata.getAttribute('svgMinWidth') * 1;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
253 height = Math.max(globalControlBoxHeight + globalMargin + globalMarginTop, height);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
254 width = Math.max(svgMinWidth, width);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
255 rootSVG.setAttributeNS(null, 'width', width + 'px')
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
256 rootSVG.setAttributeNS(null, 'height', height + 'px')
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
257 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
258
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
259 function setText(id, str) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
260 e = document.getElementById(id)
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
261 if (e != null)
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
262 e.firstChild.nodeValue = str;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
263 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
264
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
265 function showElements(elementNames) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
266 for (var elementNameIndex in elementNames) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
267 document.getElementById(elementNames[elementNameIndex]).setAttributeNS(null, 'visibility', 'visible');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
268 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
269 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
270
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
271 function sliderDown(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
272 globalSliding = true;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
273 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
274
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
275 function sliderDownMove(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
276 globalSliding = true;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
277 sliderMove(event);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
278 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
279
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
280 function sliderMove(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
281 if (!globalSliding) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
282 return;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
283 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
284 value = event.clientX - globalSliderXWindow + window.pageXOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
285 if (value >= globalThumbRadius && value <= globalSliderWidthMinusRadius) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
286 placeThumb(value);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
287 zoneWidth = globalSliderWidthMinusDiameter / (globalLayers.length);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
288 newLayer = Math.round((value - globalThumbRadius - 0.5 * zoneWidth) / zoneWidth)
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
289 if (newLayer != globalLayerIndex) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
290 displayLayer(newLayer)
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
291 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
292 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
293 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
294
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
295 function sliderUp(event) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
296 globalSliding = false;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
297 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
298
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
299 function viewIso() {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
300 height = (globalDimensionMagnitude * globalScale) + globalYOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
301 setSVG((globalDimensionMagnitude * globalScale) + globalXOffset, height);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
302 for (var i in globalLayers) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
303 // globalLayers[i].setAttributeNS(null, 'transform', 'translate(' + globalMargin + ' ' + height + ')');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
304 globalLayers[i].setAttributeNS(null, 'visibility', 'visible');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
305 globalLayers[i].getElementsByTagName('text')[0].setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
306 pathElements = globalLayers[i].getElementsByTagName('path');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
307 for (var pathElementIndex = 0; pathElementIndex < pathElements.length; pathElementIndex++) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
308 pathElements[pathElementIndex].setAttributeNS(null, 'transform', '');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
309 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
310 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
311 //show control box
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
312 hideElements(['decreaseLayerIndex', 'increaseLayerIndex', 'isoViewButton', 'layerControlBox', 'layerViewLabel', 'scrollControlBox', 'scrollViewLabel']);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
313 showElements(['isoControlBox', 'isoViewLabel', 'layerViewButton', 'scrollViewButton']);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
314 displayIso(globalLatitude, globalLongitude);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
315 setScaleText('scaleIso');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
316 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
317
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
318 function viewLayer() {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
319 //Set svg size and view port
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
320 height = (globalDimensionY * globalScale) + globalYOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
321 setSVG(getWidth(), height);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
322 //move and hide all layers
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
323 for (var i in globalLayers) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
324 globalLayers[i].setAttributeNS(null, 'transform', 'translate(' + globalXOffset + ' ' + height + ')');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
325 globalLayers[i].setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
326 globalLayers[i].getElementsByTagName('text')[0].setAttributeNS(null, 'visibility', 'hidden');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
327 transform = getScaleTransformString(globalScale);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
328 pathElements = globalLayers[i].getElementsByTagName('path');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
329 for (var pathElementIndex = 0; pathElementIndex < pathElements.length; pathElementIndex++) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
330 pathElements[pathElementIndex].setAttributeNS(null, 'transform', transform);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
331 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
332 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
333
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
334 //show control box
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
335 hideElements(['isoControlBox', 'isoViewLabel', 'layerViewButton', 'scrollControlBox', 'scrollViewLabel'])
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
336 showElements(['isoViewButton', 'layerControlBox', 'layerViewLabel', 'scrollViewButton'])
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
337
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
338 //show current layer
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
339 displayLayer(globalLayerIndex);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
340 setScaleText('scaleLayer');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
341 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
342
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
343 function viewScroll() {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
344 //Set svg size and view port
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
345 yDimensionScale = globalDimensionY * globalScale
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
346 singleHeight = (globalMargin + yDimensionScale + globalTextHeight)
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
347 height = globalLayers.length * singleHeight + globalMargin + globalMargin + globalYOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
348 setSVG(getWidth(), height);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
349
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
350 //move and show all layers
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
351 for (var i in globalLayers) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
352 x = globalXOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
353 y = i * singleHeight + yDimensionScale + globalYOffset;
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
354 transform = getScaleTransformString(globalScale);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
355 globalLayers[i].setAttributeNS(null, 'transform', 'translate(' + x + ', ' + y + ')');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
356 pathElements = globalLayers[i].getElementsByTagName('path');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
357 for (var pathElementIndex = 0; pathElementIndex < pathElements.length; pathElementIndex++) {
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
358 pathElements[pathElementIndex].setAttributeNS(null, 'transform', transform);
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
359 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
360 globalLayers[i].setAttributeNS(null, 'visibility', 'visible');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
361 globalLayers[i].getElementsByTagName('text')[0].setAttributeNS(null, 'visibility', 'visible');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
362 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
363
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
364 //show control box
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
365 hideElements(['isoControlBox', 'isoViewLabel', 'layerControlBox', 'layerViewLabel', 'scrollViewButton'])
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
366 showElements(['isoViewButton', 'layerViewButton', 'scrollControlBox', 'scrollViewLabel'])
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
367 setScaleText('scaleScroll');
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
368 }
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
369 ]]>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
370 </script>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
371 <title >belt_pulley3.stl - Slice Layers</title>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
372 <!--Begin Layer Data -->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
373 <g id='layerData' fill='#556B2F' fill-rule='evenodd' font-family='Arial' font-size='15px' font-weight='bold' inkscape:groupmode='layer' inkscape:label='Slice Layers' stroke='#00F' stroke-width='0.54px'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
374 <!--id='sliceElementTemplate' must be there or else the slice template will not be found-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
375 <g id='z:-1.8' inkscape:groupmode='layer' inkscape:label='Layer 0, z:-1.8' transform='translate(280.0, 168.2006)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
376 <!--id='layerTextTemplate' must be there so that the text could be removed if necessary-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
377 <text id='layerTextTemplate-1.8' fill='#000' stroke='none' y='15' >Layer 0, z:-1.8</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
378 <path d='M -11.6336 1.4126 L -11.719 0.0 L -11.6336 -1.4126 L -11.3785 -2.8045 L -10.9575 -4.1556 L -10.3766 -5.4461 L -9.6445 -6.6571 L -8.7718 -7.7711 L -7.7711 -8.7718 L -6.6571 -9.6445 L -5.4461 -10.3766 L -4.1556 -10.9575 L -2.8045 -11.3785 L -1.4126 -11.6336 L 0.0 -11.719 L 1.4126 -11.6336 L 2.8045 -11.3785 L 4.1556 -10.9575 L 5.4461 -10.3766 L 6.6571 -9.6445 L 7.7711 -8.7718 L 8.7718 -7.7711 L 9.6445 -6.6571 L 10.3766 -5.4461 L 10.9575 -4.1556 L 11.3785 -2.8045 L 11.6336 -1.4126 L 11.719 0.0 L 11.6336 1.4126 L 11.3785 2.8045 L 10.9575 4.1556 L 10.3766 5.4461 L 9.6445 6.6571 L 8.7718 7.7711 L 7.7711 8.7718 L 6.6571 9.6445 L 5.4461 10.3766 L 4.1556 10.9575 L 2.8045 11.3785 L 1.4126 11.6336 L 0.0 11.719 L -1.4126 11.6336 L -2.8045 11.3785 L -4.1556 10.9575 L -5.4461 10.3766 L -6.6571 9.6445 L -7.7711 8.7718 L -8.7718 7.7711 L -9.6445 6.6571 L -10.3766 5.4461 L -10.9575 4.1556 L -11.3785 2.8045 z M -4.0 -1.5 L -4.0 1.5 L -6.8343 1.5 L -6.6072 2.3119 L -6.3068 3.0372 L -5.9271 3.7242 L -5.4728 4.3644 L -4.9497 4.9497 L -4.3644 5.4728 L -3.7242 5.9271 L -3.0372 6.3068 L -2.3119 6.6072 L -1.5 6.8343 L -1.5 4.0 L 1.5 4.0 L 1.5 6.8343 L 2.3119 6.6072 L 3.0372 6.3068 L 3.7242 5.9271 L 4.3644 5.4728 L 4.9497 4.9497 L 5.4728 4.3644 L 5.9271 3.7242 L 6.3068 3.0372 L 6.6072 2.3119 L 6.8343 1.5 L 4.0 1.5 L 4.0 -1.5 L 6.8343 -1.5 L 6.6072 -2.3119 L 6.3068 -3.0372 L 5.9271 -3.7242 L 5.4728 -4.3644 L 4.9497 -4.9497 L 4.3644 -5.4728 L 3.7242 -5.9271 L 3.0372 -6.3068 L 2.3119 -6.6072 L 1.5 -6.8343 L 1.5 -4.0 L -1.5 -4.0 L -1.5 -6.8343 L -2.3119 -6.6072 L -3.0372 -6.3068 L -3.7242 -5.9271 L -4.3644 -5.4728 L -4.9497 -4.9497 L -5.4728 -4.3644 L -5.9271 -3.7242 L -6.3068 -3.0372 L -6.6072 -2.3119 L -6.8343 -1.5 z' transform='scale(3.7, -3.7) translate(11.919, 11.919)' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
379 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
380 <g id='z:-1.4' inkscape:groupmode='layer' inkscape:label='Layer 1, z:-1.4' transform='translate(280.0, 298.9012)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
381 <!--id='layerTextTemplate' must be there so that the text could be removed if necessary-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
382 <text id='layerTextTemplate-1.4' fill='#000' stroke='none' y='15' >Layer 1, z:-1.4</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
383 <path d='M -11.2365 1.3644 L -11.319 0.0 L -11.2365 -1.3644 L -10.9901 -2.7088 L -10.5835 -4.0138 L -10.0224 -5.2602 L -9.3154 -6.4299 L -8.4724 -7.5059 L -7.5059 -8.4724 L -6.4299 -9.3154 L -5.2602 -10.0224 L -4.0138 -10.5835 L -2.7088 -10.9901 L -1.3644 -11.2365 L 0.0 -11.319 L 1.3644 -11.2365 L 2.7088 -10.9901 L 4.0138 -10.5835 L 5.2602 -10.0224 L 6.4299 -9.3154 L 7.5059 -8.4724 L 8.4724 -7.5059 L 9.3154 -6.4299 L 10.0224 -5.2602 L 10.5835 -4.0138 L 10.9901 -2.7088 L 11.2365 -1.3644 L 11.319 0.0 L 11.2365 1.3644 L 10.9901 2.7088 L 10.5835 4.0138 L 10.0224 5.2602 L 9.3154 6.4299 L 8.4724 7.5059 L 7.5059 8.4724 L 6.4299 9.3154 L 5.2602 10.0224 L 4.0138 10.5835 L 2.7088 10.9901 L 1.3644 11.2365 L 0.0 11.319 L -1.3644 11.2365 L -2.7088 10.9901 L -4.0138 10.5835 L -5.2602 10.0224 L -6.4299 9.3154 L -7.5059 8.4724 L -8.4724 7.5059 L -9.3154 6.4299 L -10.0224 5.2602 L -10.5835 4.0138 L -10.9901 2.7088 z M -4.0 -1.5 L -4.0 1.5 L -6.8343 1.5 L -6.6072 2.3119 L -6.3068 3.0372 L -5.9271 3.7242 L -5.4728 4.3644 L -4.9497 4.9497 L -4.3644 5.4728 L -3.7242 5.9271 L -3.0372 6.3068 L -2.3119 6.6072 L -1.5 6.8343 L -1.5 4.0 L 1.5 4.0 L 1.5 6.8343 L 2.3119 6.6072 L 3.0372 6.3068 L 3.7242 5.9271 L 4.3644 5.4728 L 4.9497 4.9497 L 5.4728 4.3644 L 5.9271 3.7242 L 6.3068 3.0372 L 6.6072 2.3119 L 6.8343 1.5 L 4.0 1.5 L 4.0 -1.5 L 6.8343 -1.5 L 6.6072 -2.3119 L 6.3068 -3.0372 L 5.9271 -3.7242 L 5.4728 -4.3644 L 4.9497 -4.9497 L 4.3644 -5.4728 L 3.7242 -5.9271 L 3.0372 -6.3068 L 2.3119 -6.6072 L 1.5 -6.8343 L 1.5 -4.0 L -1.5 -4.0 L -1.5 -6.8343 L -2.3119 -6.6072 L -3.0372 -6.3068 L -3.7242 -5.9271 L -4.3644 -5.4728 L -4.9497 -4.9497 L -5.4728 -4.3644 L -5.9271 -3.7242 L -6.3068 -3.0372 L -6.6072 -2.3119 L -6.8343 -1.5 z' transform='scale(3.7, -3.7) translate(11.919, 11.919)' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
384 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
385 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
386 <!--End Layer Data-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
387 <!--beginningOfControlSection='true' must be there or else the control boxes will be carved-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
388 <g id='controls' beginningOfControlSection='true' inkscape:groupmode='layer' inkscape:label='Controls'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
389 <!--id='isoControlBox' must be there so that the controls could be removed if necessary-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
390 <g id='isoControlBox' fill='#000' font-family='Arial' font-size='15px' font-weight='bold' transform='translate(20, 60)' visibility='hidden'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
391 <rect fill='silver' height='720' stroke='gray' stroke-width='4px' width='240' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
392 <circle id='globe' cx='120' cy='120' fill='gray' r='100' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
393 <circle id='cover' cx='120' cy='120' fill='silver' r='33' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
394 <circle id='observer' fill='darkslateblue' r='12' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
395 <text id='latitudeIso' x='20' y='260' >Latitude</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
396 <text fill='darkslateblue' onclick='displayIsoByLatitude(globalLatitude-1.0)' x='198' y='260' >&lt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
397 <text fill='darkslateblue' onclick='displayIsoByLatitude(globalLatitude+1.0)' x='213' y='260' >&gt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
398 <text id='longitudeIso' x='20' y='280' >Longitude</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
399 <text fill='darkslateblue' onclick='displayIsoByLongitude(globalLongitude-1.0)' x='198' y='280' >&lt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
400 <text fill='darkslateblue' onclick='displayIsoByLongitude(globalLongitude+1.0)' x='213' y='280' >&gt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
401 <text x='20' y='300' >Scale</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
402 <text id='scaleIso' x='65' y='300' >1</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
403 <text fill='darkslateblue' onclick='changeScaleIso(globalZoomScale/2)' x='198' y='300' >&lt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
404 <text fill='darkslateblue' onclick='changeScaleIso(globalZoomScale*2)' x='213' y='300' >&gt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
405 <g transform='translate(20, 340)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
406 <text >Min</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
407 <text id='minXIso' y='20' >X: -11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
408 <text id='minYIso' y='40' >Y: -11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
409 <text id='minZIso' y='60' >Z: -2.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
410 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
411 <g transform='translate(20, 440)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
412 <text >Max</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
413 <text id='maxXIso' y='20' >X: 11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
414 <text id='maxYIso' y='40' >Y: 11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
415 <text id='maxZIso' y='60' >Z: 10.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
416 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
417 <g transform='translate(20, 540)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
418 <text >Dimension</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
419 <text id='dimXIso' y='20' >X: 23.838 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
420 <text id='dimYIso' y='40' >Y: 23.838 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
421 <text id='dimZIso' y='60' >Z: 12.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
422 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
423 <g transform='translate(20, 640)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
424 <text >Statistics</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
425 <text id='layerHeightIso' y='20' >Layer Height: 0.4 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
426 <text id='numberOfLayersIso' y='40' >Number of Layers: 30</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
427 <text id='volumeIso' y='60' >Volume: 1.8836 cm3</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
428 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
429 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
430 <!--id='layerControlBox' must be there so that the controls could be removed if necessary-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
431 <g id='layerControlBox' fill='#000' font-family='Arial' font-size='15px' font-weight='bold' transform='translate(20, 60)' visibility='hidden'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
432 <rect fill='silver' height='720' stroke='gray' stroke-width='4px' width='240' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
433 <path d='M 66 164 h76 v6 l18 -9 l-18 -9 v6 h-70 v-70 h6 l-9 -18 l-9 18 h6 z' stroke-width='0' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
434 <!--<path stroke='#000' stroke-width='3' d='M 20 20 h5 l-5 -10 l-5 10 h5 v35 h35 v-5 l10 5 l-10 5 v-5 h-35 z'/>-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
435 <text text-anchor='middle' x='68' y='64' >Y</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
436 <text x='165' y='166' >X</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
437 <text id='minIndexLayer' x='20' y='245' >0</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
438 <rect id='slider' fill='gray' height='24' width='170' x='32' y='230' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
439 <circle id='thumb' cx='42' cy='242' fill='darkslateblue' r='12' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
440 <text id='maxIndexLayer' x='203' y='245' >1</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
441 <text id='currentIndexLayer' x='20' y='280' >Layer</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
442 <text id='decreaseLayerIndex' fill='darkslateblue' onclick='displayLayer(globalLayerIndex-1)' x='198' y='280' >&lt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
443 <text id='increaseLayerIndex' fill='darkslateblue' onclick='displayLayer(globalLayerIndex+1)' x='213' y='280' >&gt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
444 <text x='20' y='300' >Scale</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
445 <text id='scaleLayer' x='65' y='300' >1</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
446 <text fill='darkslateblue' onclick='changeScaleLayer(globalZoomScale/2)' x='198' y='300' >&lt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
447 <text fill='darkslateblue' onclick='changeScaleLayer(globalZoomScale*2)' x='213' y='300' >&gt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
448 <g transform='translate(20, 340)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
449 <text >Min</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
450 <text id='minXLayer' y='20' >X: -11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
451 <text id='minYLayer' y='40' >Y: -11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
452 <text id='minZLayer' y='60' >Z: -2.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
453 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
454 <g transform='translate(20, 440)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
455 <text >Max</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
456 <text id='maxXLayer' y='20' >X: 11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
457 <text id='maxYLayer' y='40' >Y: 11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
458 <text id='maxZLayer' y='60' >Z: 10.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
459 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
460 <g transform='translate(20, 540)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
461 <text >Dimension</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
462 <text id='dimXLayer' y='20' >X: 23.838 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
463 <text id='dimYLayer' y='40' >Y: 23.838 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
464 <text id='dimZLayer' y='60' >Z: 12.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
465 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
466 <g transform='translate(20, 640)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
467 <text >Statistics</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
468 <text id='layerHeightLayer' y='20' >Layer Height: 0.4 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
469 <text id='numberOfLayersLayer' y='40' >Number of Layers: 30</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
470 <text id='volumeLayer' y='60' >Volume: 1.8836 cm3</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
471 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
472 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
473 <!--id='scrollControlBox' must be there so that the controls could be removed if necessary-->
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
474 <g id='scrollControlBox' fill='#000' font-family='Arial' font-size='15px' font-weight='bold' transform='translate(20, 60)' visibility='visible'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
475 <rect fill='silver' height='720' stroke='gray' stroke-width='4px' width='240' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
476 <path d='M 66 164 h76 v6 l18 -9 l-18 -9 v6 h-70 v-70 h6 l-9 -18 l-9 18 h6 z' stroke-width='0' />
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
477 <text text-anchor='middle' x='68' y='64' >Y</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
478 <text x='165' y='166' >X</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
479 <text x='20' y='300' >Scale</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
480 <text id='scaleScroll' x='65' y='300' >: 1</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
481 <text fill='darkslateblue' onclick='changeScaleScroll(globalZoomScale/2)' x='198' y='300' >&lt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
482 <text fill='darkslateblue' onclick='changeScaleScroll(globalZoomScale*2)' x='213' y='300' >&gt;</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
483 <g transform='translate(20, 340)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
484 <text >Min</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
485 <text id='minXScroll' y='20' >X: -11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
486 <text id='minYScroll' y='40' >Y: -11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
487 <text id='minZScroll' y='60' >Z: -2.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
488 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
489 <g transform='translate(20, 440)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
490 <text >Max</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
491 <text id='maxXScroll' y='20' >X: 11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
492 <text id='maxYScroll' y='40' >Y: 11.919 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
493 <text id='maxZScroll' y='60' >Z: 10.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
494 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
495 <g transform='translate(20, 540)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
496 <text >Dimension</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
497 <text id='dimXScroll' y='20' >X: 23.838 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
498 <text id='dimYScroll' y='40' >Y: 23.838 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
499 <text id='dimZScroll' y='60' >Z: 12.0 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
500 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
501 <g transform='translate(20, 640)'>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
502 <text >Statistics</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
503 <text id='layerHeightScroll' y='20' >Layer Height: 0.4 mm</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
504 <text id='numberOfLayersScroll' y='40' >Number of Layers: 30</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
505 <text id='volumeScroll' y='60' >Volume: 1.8836 cm3</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
506 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
507 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
508 <text id='isoViewButton' fill='darkslateblue' font-size='18px' font-weight='normal' onclick='viewIso()' text-anchor='middle' visibility='visible' x='80' y='30' >[Iso View]</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
509 <text id='isoViewLabel' fill='darkslateblue' font-size='24px' font-weight='bold' text-anchor='middle' visibility='hidden' x='76' y='30' >Iso View</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
510 <text id='layerViewButton' fill='darkslateblue' font-size='18px' font-weight='normal' onclick='viewLayer()' text-anchor='middle' visibility='visible' x='240' y='30' >[Layer View]</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
511 <text id='layerViewLabel' fill='darkslateblue' font-size='24px' font-weight='bold' text-anchor='middle' visibility='hidden' x='236' y='30' >Layer View</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
512 <text id='scrollViewButton' fill='darkslateblue' font-size='18px' font-weight='normal' onclick='viewScroll()' text-anchor='middle' visibility='hidden' x='400' y='30' >[Scroll View]</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
513 <text id='scrollViewLabel' fill='darkslateblue' font-size='24px' font-weight='bold' text-anchor='middle' visibility='visible' x='396' y='30' >Scroll View</text>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
514 </g>
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
515 </svg>

mercurial