⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pvlaunch.js

📁 proe5.0野火版下载(中文版免费下载)
💻 JS
📖 第 1 页 / 共 4 页
字号:
///// javascript functions to support thumbnail viewer from property pages//// 31-Mar-09 L-03-29 $$1 GHJ Created// 05-May-09 L-03-32 $$2 rmi Updated// 21-May-09 L-03-32+$$3 rmi Viewer not starting up on some machines. Added//                           version string.// 25-May-09 L-03-33 $$4 GHJ Updated for Mozilla browser fixes// //////////////////////////////////////////////////////////////// determine which browser we are running in - this global// value _isIE is used elsewhere in the pvcadview scripts// //////////////////////////////////////////////////////////////var _isIE = false;var _is64bitIE = false;var _isNS6 = false;var _isEcad = false;var ver = navigator.appVersion;if (ver.indexOf("MSIE") != -1){    _isIE=true;    if (ver.indexOf("Win64") != -1)    {        _is64bitIE = true;    }}if (ver.indexOf("5.0") == 0)_isNS6=true;// //////////////////////////////////////////////////////////////// document-specific functions// //////////////////////////////////////////////////////////////var s_docType="application/x-pvlite9-ed";var s_docPluginVersion = "9.1.20.18";	  // version string of the form '1.2.3.4'var s_downloadDir = ""; // If set should end with a /var s_basePvUrl = ""var _visNavEvents = null;var g_verCheckInstall = false;var _local_UpgradeTitle = "A new version of ProductView Lite is available for download";var _local_UpgradeContinue = "Use currently installed viewer";var _local_UpgradeInstall = "Upgrade viewer";var _local_Reinstall = "ProductView requires repair or resintall";var _local_Install="Install ProductView Lite";var _local_Enable_SoftwareUpdate = "You must enable Software Update to install this plugin";var _local_Install_Failed = "ProductView Lite installation failed";var _local_Unsupported_Browser = "Unsupported browser platform";var _local_InitialisePlugin_Error = "An error occured initialising the ProductView Lite plugin";var _local_Restart_Needed = "You need to restart your browser to complete the ProductView Lite installation"var _local_nocheck= "Stop Checking for new versions"var g_docLoadedAction=0;var g_installingVerCheck=false;var g_pvlaunchInitialised=false;var g_username="";var g_useremail="";var g_usertelno="";var g_heading=null;if(!g_pvliteInstanceArray){    var g_pvliteInstance=0;    var g_pvliteInstanceArray = new Array();}function POINT3D(x, y, z){    this.x=x;    this.y=y;    this.z=z;}function SetupPvLite(){    // Disable F1 Help provided by the browser when running in full screen mode(onhelp is ie only and ignored by Firefox).    document.body.onhelp=function keyhit(){ event.returnValue=false;};    document.body.onmousewheel=function mousewheel(){event.returnValue=false;};         var browser_platform = "";    if (navigator.platform == "Win32")    {        if (_is64bitIE)        {            browser_platform = "x86e_win64";        }        else        {            browser_platform = "i486_nt";        }    }    else if (navigator.platform == "Win64")    {        browser_platform = "x86e_win64";    }    if (browser_platform == "")    {        if (typeof _pvliteString_Unsupported_Browser != "undefined")        {            _local_Unsupported_Browser = _pvliteString_Unsupported_Browser;        }        window.alert(_local_Unsupported_Browser +"\n" + navigator.platform);        return;    }        if (navigator.appName == "Netscape")    {        var s = unescape(document.URL);        var p = s.lastIndexOf("/");        s_downloadDir = s.substring(0,p+1);        g_docPluginURL = s_basePvUrl + browser_platform + "_ns/npvverck.xpi";    }     else    {        var s = document.URL;        if(s.indexOf("http") == 0)        {            var p = s.lastIndexOf("/");            s_downloadDir = document.URL.substring(0,p+1);            g_docPluginURL = s_basePvUrl + browser_platform + "_ie\\pvvercheck_ie.cab";        }        else        {            var p = s.lastIndexOf("\\");            s_downloadDir = document.URL.substring(0,p+1);            g_docPluginURL = s_basePvUrl + browser_platform + "_ie\\pvvercheck_ie.cab";        }    }         {        if (typeof _pvliteString_Unsupported_Browser != "undefined")        {            _local_Unsupported_Browser = _pvliteString_Unsupported_Browser;        }                if(browser_platform == "")        {            window.alert(_local_Unsupported_Browser +"\n" + navigator.platform);            return;        }    }        if(s_downloadDir.indexOf("file:///") == 0)    {        // Check so it can be ignored.    }    else if(s_downloadDir.indexOf("file://") == 0)    {        s_downloadDir = s_downloadDir.substring(7,s_downloadDir.length);        s_downloadDir = "file:///" + s_downloadDir;    }        // version numbers in ie are comma seperated    if(_isIE)    {        s_docPluginVersion = s_docPluginVersion.replace(/\./g,",");    }}function isRelativeUrl(inputUrl){    if(inputUrl.indexOf("http") == 0)    {        return false;    }    else if(inputUrl.indexOf("__pvbnfs") == 0)    {        return false;    }    else if(inputUrl.indexOf("file") == 0)    {        return false;    }    else if(inputUrl.indexOf(":") == 1)    {        return false;    }    else    {        return true;    }}function LoadModel(sourceUrl, markupUrl, modifymarkupurl, uiconfigUrl){    document.getElementById(this.pvCtl).renderannotation="";    document.getElementById(this.pvCtl).renderviewable="";     var baseUrl;    var newSourceUrl = fixPath(sourceUrl);    loc = newSourceUrl.lastIndexOf('/');    if(loc != -1)    {        baseUrl = newSourceUrl.substring(0,loc+1);    }       baseUrl = checkFileURL(baseUrl);    newSourceUrl = checkFileURL(newSourceUrl);    document.getElementById(this.pvCtl).urlbase=baseUrl;            if(this.thumbnail)    {        if(isRelativeUrl(newSourceUrl))        {            document.getElementById(this.pvCtl).pvt=newSourceUrl;        }        else        {            document.getElementById(this.pvCtl).modifymarkupurl=modifymarkupurl;            document.getElementById(this.pvCtl).pvt=sourceUrl;                    }    }    else    {        if(isRelativeUrl(newSourceUrl))        {            document.getElementById(this.pvCtl).modifymarkupurl=modifymarkupurl;            document.getElementById(this.pvCtl).edurl=newSourceUrl;        }        else        {            document.getElementById(this.pvCtl).modifymarkupurl=modifymarkupurl;            document.getElementById(this.pvCtl).edurl=sourceUrl;        }    }}function SetBackgroundColor(pBgColor){    document.getElementById(this.pvCtl).backgroundcolor=pBgColor;}function SetPvBaseUrl(baseUrl){    s_basePvUrl = baseUrl;}function SetViewingMode(pViewMode){    document.getElementById(this.pvCtl).SetViewOrientation(pViewMode);}function HideInstance(id){    document.getElementById(this.pvCtl).HideInstance(id);}function ShowInstance(id){    document.getElementById(this.pvCtl).ShowInstance(id);}function CaptureScreen(imageType, width, height){    if(!width)  { width = -1; }    if(!height) { height= -1; }        document.getElementById(this.pvCtl).CaptureScreen(imageType, width, height);}function GetPropertyValue(id,group,property){    return document.getElementById(this.pvCtl).GetPropertyValue(id,group,property);   }function ListPropertyGroups(){    document.getElementById(this.pvCtl).ListPropertyGroups();}function LoadPropertyGroup(group){    document.getElementById(this.pvCtl).LoadPropertyGroup(group);}function FindInstancesWithProperty(group, property, value){    document.getElementById(this.pvCtl).FindInstancesWithProperty(group, property, value);}function SetInstanceColor(instance, instanceColor){    document.getElementById(this.pvCtl).SetInstanceColor(instance, instanceColor);}function SetInstanceTransparency(componentName, transparency){    document.getElementById(this.pvCtl).SetInstanceTransparency(componentName, Number(transparency));}function LoadInstance(instance){    document.getElementById(this.pvCtl).LoadInstance(instance);}function UnloadInstance(instance){    document.getElementById(this.pvCtl).UnloadInstance(instance);}function GetInstanceColor(componentName, componentColor){    document.getElementById(this.pvCtl).GetInstanceColor(componentName, componentColor);}function ListInstances(){    document.getElementById(this.pvCtl).ListInstances();        }function GetNumOfAnnotations(){    return document.getElementById(this.pvCtl).GetNumOfAnnotations();}function GetNumOfViewables(){    return document.getElementById(this.pvCtl).GetNumOfViewables();}function GetViewableName(theIndex){    return document.getElementById(this.pvCtl).GetViewableName(Number(theIndex));}function LoadViewable(theIndex){    return document.getElementById(this.pvCtl).LoadViewable(Number(theIndex));}function LoadAnnotation(annoName){    return document.getElementById(this.pvCtl).LoadAnnotation(annoName);}function GetAnnotationName(name){    return document.getElementById(this.pvCtl).GetAnnotationName(Number(name));}function ZoomToAllTime(zoomDelay){    return document.getElementById(this.pvCtl).ZoomToAllTime(Number(zoomDelay));}function ZoomToAll(zoomDelay){    if(zoomDelay == null)        zoomDelay = 0;    return document.getElementById(this.pvCtl).ZoomToAll(Number(zoomDelay));}function ZoomToSelected(zoomDelay){    if(zoomDelay == null)        zoomDelay = 0;    return document.getElementById(this.pvCtl).ZoomToSelected(Number(zoomDelay));}function ZoomToSelectedTime(zoomDelay){    return document.getElementById(this.pvCtl).ZoomToSelectedTime(Number(zoomDelay));}function SelectAll(){    return document.getElementById(this.pvCtl).SelectAll();}function DeSelectAll(){    return document.getElementById(this.pvCtl).DeSelectAll();}function AddAnnotation(annotype){    document.getElementById(this.pvCtl).AddAnnotation(annotype, "");}function AddAnnotationNote(annovalue, fontSize, fontColor, bgColor){    document.getElementById(this.pvCtl).AddAnnotationLabel(annovalue, Number(fontSize), fontColor, bgColor);}function DeleteAnnotation(annoName){    document.getElementById(this.pvCtl).DeleteAnnotation(annoName);}function DeleteSelectedAnnotations(){    document.getElementById(this.pvCtl).DeleteSelectedAnnotations();}function CreateAnnotation(annoName,author,telephone,email,comment){    document.getElementById(this.pvCtl).CreateAnnotation(annoName,author,telephone,email,comment);}function RenameAnnotation(currentName, newName){    document.getElementById(this.pvCtl).RenameAnnotation(currentName, newName);}function SaveAnnotation(annoName){    document.getElementById(this.pvCtl).SaveAnnotation(annoName);}function SelectInstance(instance){    document.getElementById(this.pvCtl).SelectInstance(instance);}function DeSelectInstance(instance){    document.getElementById(this.pvCtl).DeSelectInstance(instance);    }function ShowAll(){    document.getElementById(this.pvCtl).ShowAll();  }function CopyToClipboard(){    document.getElementById(this.pvCtl).CopyToClipboard();  }function GetInstanceLocation(instance){    return document.getElementById(this.pvCtl).GetInstanceLocation(instance);  }function GetInstanceName(instance){    return document.getElementById(this.pvCtl).GetInstanceName(instance);  }function GetOrthographicWidth(){    return document.getElementById(this.pvCtl).GetOrthographicWidth();}function GetPerspectiveHFOV(){    return document.getElementById(this.pvCtl).GetPerspectiveHFOV();}function SetOrthographicWidth(orthoWidth){    document.getElementById(this.pvCtl).SetOrthographicWidth(Number(orthoWidth));}function SetPerspectiveHFOV(hfov){    document.getElementById(this.pvCtl).SetPerspectiveHFOV(Number(hfov));}function GetViewLocation(){    return document.getElementById(this.pvCtl).GetViewLocation();}function SetViewLocation(location){    document.getElementById(this.pvCtl).SetViewLocation(location);}function SetSpinCenter(point){   document.getElementById(this.pvCtl).SetSpinCenter(Number(point.x), Number(point.y), Number(point.z));}function GetSpinCenter(){    var spinCenter = document.getElementById(this.pvCtl).GetSpinCenter();        var index1 = spinCenter.indexOf(" ");    var index2 = spinCenter.indexOf(" ",index1+1);    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -