-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
175,176 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2,389 changes: 2,389 additions & 0 deletions
2,389
docs/ast/source/XKTModel/lib/toArraybuffer.js.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
138,769 changes: 138,769 additions & 0 deletions
138,769
docs/ast/source/parsers/parseGLTFJSONIntoXKTModel.js.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,194 changes: 1,194 additions & 0 deletions
1,194
docs/class/src/XKTModel/XKTTexture.js~XKTTexture.html
Large diffs are not rendered by default.
Oops, something went wrong.
890 changes: 890 additions & 0 deletions
890
docs/class/src/XKTModel/XKTTextureSet.js~XKTTextureSet.html
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<base data-ice="baseUrl" href="../../../"> | ||
<title data-ice="title">src/XKTModel/XKTTextureSet.js | xeokit-convert</title> | ||
<link type="text/css" rel="stylesheet" href="css/style.css"> | ||
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css"> | ||
<script src="script/prettify/prettify.js"></script> | ||
<script src="script/manual.js"></script> | ||
<meta name="description" content="JavaScript utilities to create .XKT files"><meta property="og:type" content="website"><meta property="og:url" content="http://xeokit.io"><meta property="og:site_name" content="xeokit-convert"><meta property="og:title" content="xeokit-convert"><meta property="og:image" content="./images/logo.jpg"><meta property="og:description" content="JavaScript utilities to create .XKT files"><meta property="og:author" content="http://xeolabs.com"><meta property="twitter:card" content="summary"><meta property="twitter:title" content="xeokit-convert"><meta property="twitter:description" content="JavaScript utilities to create .XKT files"><meta property="twitter:image" content="./images/logo.jpg"></head> | ||
<body class="layout-container" data-ice="rootContainer"> | ||
|
||
<header> | ||
<a href="./" style="display: flex; align-items: center;"><img src="./image/brand_logo.jpg" style="width:34px;"></a> | ||
|
||
<a href="identifiers.html">Reference</a> | ||
<a href="source.html">Source</a> | ||
|
||
<div class="search-box"> | ||
<span> | ||
<img src="./image/search.png"> | ||
<span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span> | ||
</span> | ||
<ul class="search-result"></ul> | ||
</div> | ||
<a style="position:relative; top:3px;" href="https://github.com/xeokit/xeokit-convert"><img width="20px" src="./image/github.png"></a></header> | ||
|
||
<nav class="navigation" data-ice="nav"><div> | ||
<ul> | ||
|
||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-convert2xkt">convert2xkt</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-XKT_INFO">XKT_INFO</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-ClampToEdgeWrapping">ClampToEdgeWrapping</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-GIFMediaType">GIFMediaType</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-JPEGMediaType">JPEGMediaType</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-LinearFilter">LinearFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-LinearMipMapLinearFilter">LinearMipMapLinearFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-LinearMipMapNearestFilter">LinearMipMapNearestFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-LinearMipmapLinearFilter">LinearMipmapLinearFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-LinearMipmapNearestFilter">LinearMipmapNearestFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-MirroredRepeatWrapping">MirroredRepeatWrapping</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-NearestFilter">NearestFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-NearestMipMapLinearFilter">NearestMipMapLinearFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-NearestMipMapNearestFilter">NearestMipMapNearestFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-NearestMipmapLinearFilter">NearestMipmapLinearFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-NearestMipmapNearestFilter">NearestMipmapNearestFilter</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-PNGMediaType">PNGMediaType</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-RepeatWrapping">RepeatWrapping</a></span></span></li> | ||
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#xktmodel">XKTModel</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTEntity.js~XKTEntity.html">XKTEntity</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTGeometry.js~XKTGeometry.html">XKTGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTMesh.js~XKTMesh.html">XKTMesh</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTMetaObject.js~XKTMetaObject.html">XKTMetaObject</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTModel.js~XKTModel.html">XKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTPropertySet.js~XKTPropertySet.html">XKTPropertySet</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTTexture.js~XKTTexture.html">XKTTexture</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTTextureSet.js~XKTTextureSet.html">XKTTextureSet</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/XKTModel/XKTTile.js~XKTTile.html">XKTTile</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-writeXKTModelToArrayBuffer">writeXKTModelToArrayBuffer</a></span></span></li> | ||
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#geometrybuilders">geometryBuilders</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildBoxGeometry">buildBoxGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildBoxLinesGeometry">buildBoxLinesGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildCylinderGeometry">buildCylinderGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildGridGeometry">buildGridGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildPlaneGeometry">buildPlaneGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildSphereGeometry">buildSphereGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildTorusGeometry">buildTorusGeometry</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-buildVectorTextGeometry">buildVectorTextGeometry</a></span></span></li> | ||
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#parsers">parsers</a><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseCityJSONIntoXKTModel">parseCityJSONIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseGLTFIntoXKTModel">parseGLTFIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseGLTFJSONIntoXKTModel">parseGLTFJSONIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseIFCIntoXKTModel">parseIFCIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseLASIntoXKTModel">parseLASIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseMetaModelIntoXKTModel">parseMetaModelIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parsePCDIntoXKTModel">parsePCDIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parsePLYIntoXKTModel">parsePLYIntoXKTModel</a></span></span></li> | ||
<li data-ice="doc"><span data-ice="kind" class="kind-function">F</span><span data-ice="name"><span><a href="function/index.html#static-function-parseSTLIntoXKTModel">parseSTLIntoXKTModel</a></span></span></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
<div class="content" data-ice="content"><h1 data-ice="title">src/XKTModel/XKTTextureSet.js</h1> | ||
<pre class="source-code line-number raw-source-code"><code class="prettyprint linenums" data-ice="content">/** | ||
* A set of textures shared by {@link XKTMesh}es. | ||
* | ||
* * Created by {@link XKTModel#createTextureSet} | ||
* * Registered in {@link XKTMesh#material}, {@link XKTModel#materials} and {@link XKTModel#.textureSetsList} | ||
* | ||
* @class XKTMetalRoughMaterial | ||
*/ | ||
class XKTTextureSet { | ||
|
||
/** | ||
* @private | ||
*/ | ||
constructor(cfg) { | ||
|
||
/** | ||
* Unique ID of this XKTTextureSet in {@link XKTModel#materials}. | ||
* | ||
* @type {Number} | ||
*/ | ||
this.textureSetId = cfg.textureSetId; | ||
|
||
/** | ||
* Index of this XKTTexture in {@link XKTModel#texturesList}; | ||
* | ||
* @type {Number} | ||
*/ | ||
this.textureSetIndex = cfg.textureSetIndex; | ||
|
||
/** | ||
* Identifies the material type. | ||
* | ||
* @type {Number} | ||
*/ | ||
this.materialType = cfg.materialType; | ||
|
||
/** | ||
* Index of this XKTTextureSet in {@link XKTModel#meshesList}; | ||
* | ||
* @type {Number} | ||
*/ | ||
this.materialIndex = cfg.materialIndex; | ||
|
||
/** | ||
* The number of {@link XKTMesh}s that reference this XKTTextureSet. | ||
* | ||
* @type {Number} | ||
*/ | ||
this.numInstances = 0; | ||
|
||
/** | ||
* RGBA {@link XKTTexture} containing base color in RGB and opacity in A. | ||
* | ||
* @type {XKTTexture} | ||
*/ | ||
this.colorTexture = cfg.colorTexture; | ||
|
||
/** | ||
* RGBA {@link XKTTexture} containing metallic and roughness factors in R and G. | ||
* | ||
* @type {XKTTexture} | ||
*/ | ||
this.metallicRoughnessTexture = cfg.metallicRoughnessTexture; | ||
|
||
/** | ||
* RGBA {@link XKTTexture} with surface normals in RGB. | ||
* | ||
* @type {XKTTexture} | ||
*/ | ||
this.normalsTexture = cfg.normalsTexture; | ||
|
||
/** | ||
* RGBA {@link XKTTexture} with emissive color in RGB. | ||
* | ||
* @type {XKTTexture} | ||
*/ | ||
this.emissiveTexture = cfg.emissiveTexture; | ||
|
||
/** | ||
* RGBA {@link XKTTexture} with ambient occlusion factors in RGB. | ||
* | ||
* @type {XKTTexture} | ||
*/ | ||
this.occlusionTexture = cfg.occlusionTexture; | ||
} | ||
} | ||
|
||
export {XKTTextureSet};</code></pre> | ||
|
||
</div> | ||
|
||
<footer class="footer"> | ||
Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(1.1.0)</span><img src="./image/esdoc-logo-mini-black.png"></a> | ||
</footer> | ||
|
||
<script src="script/search_index.js"></script> | ||
<script src="script/search.js"></script> | ||
<script src="script/pretty-print.js"></script> | ||
<script src="script/inherited-summary.js"></script> | ||
<script src="script/test-summary.js"></script> | ||
<script src="script/inner-link.js"></script> | ||
<script src="script/patch-for-local.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.