Commit 8fdfda69 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

models index.html

parent 401fc593
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>x3d models index</title>
<script type='text/javascript' src='js/jquery/jquery-3.1.1.js'></script>
<script type='text/javascript' src='js/index.js'></script>
<link rel='stylesheet' type='text/css' href='js/index.css'></link>
</head>
<body>
<table id='model_table'>
<tr>
<th>Model</th>
<th>Versions</th>
<th>Comments</th>
</tr>
</table>
</body>
</html>
<?php
$base = "models";
$models = selective_scandir($base);
$res = "";
foreach($models as $model){
$model_path = "$base/$model";
$res .= "<model name='$model'>\n";
//$res .= "\t<name>$model</name>\n";
$versions = selective_scandir($model_path);
foreach($versions as $version){
$res .= "\t\t<version name='$version'></version>";
}
$res .= "</model>\n";
return_xml($res);
}
//functions
function selective_scandir($path){
$results = Array();
$contents = scandir($path);
foreach($contents as $item){
if ($item!='.'&&$item!='..'&&is_dir("$path/$item")){
array_push($results,$item);
}
}
return $results;
}
function return_xml($str){
$str = "<?xml version='1.0' standalone='yes'?>\n<Document>\n$str</Document>";
header("Content-Type: text/xml");
header("Content-Length: ".strlen($str)."\n");
header("Pragma: no-cache\n");
printf($str);
}
?>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<altitude>1305.1</altitude> <altitude>1305.1</altitude>
<heading>65</heading> <heading>65</heading>
<tilt>90</tilt> <tilt>90</tilt>
<roll>0</roll> <roll>00</roll>
</Camera> </Camera>
<Icon> <Icon>
<href>x3d/1487451413_967079.x3d</href> <href>x3d/1487451413_967079.x3d</href>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<link rel='stylesheet' type='text/css' href='js/leaflet/leaflet.css'></link> <link rel='stylesheet' type='text/css' href='js/leaflet/leaflet.css'></link>
<link rel='stylesheet' type='text/css' href='js/x3dom/x3dom.css'></link> <link rel='stylesheet' type='text/css' href='js/x3dom/x3dom.css'></link>
<link rel='stylesheet' type='text/css' href='js/index.css'></link> <link rel='stylesheet' type='text/css' href='js/ui.css'></link>
</head> </head>
<body> <body>
...@@ -36,12 +36,9 @@ ...@@ -36,12 +36,9 @@
<scene> <scene>
<navigationInfo id="navInfo" type='"examine"' speed='0.01'></navigationInfo> <navigationInfo id="navInfo" type='"examine"' speed='0.01'></navigationInfo>
<Viewpoint fieldOfView='1' position='0 0 0' orientation='0 0 1 0'></Viewpoint> <Viewpoint fieldOfView='1' position='0 0 0' orientation='0 0 1 0'></Viewpoint>
<group> <!-- <group>
<inline name="mymodel" namespacename="mymodel" url="x3d/1487451413_967079.x3d"/> <inline name="back" namespacename="back" url="models/m1/v1/background.x3d"/>
</group> </group>-->
<group>
<inline name="back" namespacename="back" url="x3d/background.x3d"/>
</group>
</scene> </scene>
</x3d> </x3d>
</div> </div>
...@@ -101,7 +98,7 @@ ...@@ -101,7 +98,7 @@
<div id='help-content'> <div id='help-content'>
<div> <div>
<h2>3D Scene + Map</h2> <h2>3D Scene + Map</h2>
<h3 style='color:rgba(200,200,255,1);'>Comparing 3D model and Map (satellite imagery) measurements</h3> <h3 style='color:rgba(200,200,255,1);'>Comparing 3D model and Map (satellite imagery) measurements</h3
<ul> <ul>
<li>Place a marker in the 3D scene near the feature of interest. Drag the marker closer if needed.<br/>This will set the 3D model distance.</li> <li>Place a marker in the 3D scene near the feature of interest. Drag the marker closer if needed.<br/>This will set the 3D model distance.</li>
<li>Drag the corresponding marker over the map to what looks like the feature of interest to set the map distance.<br/>If the <b>show marker info</b> is enabled the distances and the difference will be displayed.</li> <li>Drag the corresponding marker over the map to what looks like the feature of interest to set the map distance.<br/>If the <b>show marker info</b> is enabled the distances and the difference will be displayed.</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment