UNPKG

@nodert-win10-cu/windows.perception.spatial.surfaces

Version:

Use the Windows.Perception.Spatial.Surfaces UWP API directly from Node.js

161 lines (123 loc) 4.69 kB
SpatialBoundingOrientedBox = (function () { var cls = function SpatialBoundingOrientedBox() { this.center = new Vector3(); this.extents = new Vector3(); this.orientation = new Quaternion(); }; return cls; }) (); exports.SpatialBoundingOrientedBox = SpatialBoundingOrientedBox; Vector3 = (function () { var cls = function Vector3() { this.x = new Number(); this.y = new Number(); this.z = new Number(); }; return cls; }) (); exports.Vector3 = Vector3; SpatialSurfaceInfo = (function () { var cls = function SpatialSurfaceInfo() { this.id = new String(); this.updateTime = new Date(); }; cls.prototype.tryComputeLatestMeshAsync = function tryComputeLatestMeshAsync(maxTrianglesPerCubicMeter, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="maxTrianglesPerCubicMeter" type="Number">A param.</param> /// </signature> } cls.prototype.tryComputeLatestMeshAsync = function tryComputeLatestMeshAsync(maxTrianglesPerCubicMeter, options, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="maxTrianglesPerCubicMeter" type="Number">A param.</param> /// <param name="options" type="SpatialSurfaceMeshOptions">A param.</param> /// </signature> } cls.prototype.tryGetBounds = function tryGetBounds(coordinateSystem) { /// <signature> /// <summary>Function summary.</summary> /// <param name="coordinateSystem" type="Object">A param.</param> /// <returns type="SpatialBoundingOrientedBox" /> /// </signature> return new SpatialBoundingOrientedBox(); } return cls; }) (); exports.SpatialSurfaceInfo = SpatialSurfaceInfo; SpatialSurfaceMeshBuffer = (function () { var cls = function SpatialSurfaceMeshBuffer() { this.data = new Object(); this.elementCount = new Number(); this.format = new Number(); this.stride = new Number(); }; return cls; }) (); exports.SpatialSurfaceMeshBuffer = SpatialSurfaceMeshBuffer; SpatialSurfaceMesh = (function () { var cls = function SpatialSurfaceMesh() { this.coordinateSystem = new Object(); this.surfaceInfo = new SpatialSurfaceInfo(); this.triangleIndices = new SpatialSurfaceMeshBuffer(); this.vertexNormals = new SpatialSurfaceMeshBuffer(); this.vertexPositionScale = new Vector3(); this.vertexPositions = new SpatialSurfaceMeshBuffer(); }; return cls; }) (); exports.SpatialSurfaceMesh = SpatialSurfaceMesh; SpatialSurfaceMeshOptions = (function () { var cls = function SpatialSurfaceMeshOptions() { this.vertexPositionFormat = new Number(); this.vertexNormalFormat = new Number(); this.triangleIndexFormat = new Number(); this.includeVertexNormals = new Boolean(); }; cls.supportedTriangleIndexFormats = new Object(); cls.supportedVertexNormalFormats = new Object(); cls.supportedVertexPositionFormats = new Object(); return cls; }) (); exports.SpatialSurfaceMeshOptions = SpatialSurfaceMeshOptions; SpatialSurfaceObserver = (function () { var cls = function SpatialSurfaceObserver() { }; cls.prototype.getObservedSurfaces = function getObservedSurfaces() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Object" /> /// </signature> return new Object(); } cls.prototype.setBoundingVolume = function setBoundingVolume(bounds) { /// <signature> /// <summary>Function summary.</summary> /// <param name="bounds" type="Object">A param.</param> /// </signature> } cls.prototype.setBoundingVolumes = function setBoundingVolumes(bounds) { /// <signature> /// <summary>Function summary.</summary> /// <param name="bounds" type="Object">A param.</param> /// </signature> } cls.requestAccessAsync = function requestAccessAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.isSupported = function isSupported() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.SpatialSurfaceObserver = SpatialSurfaceObserver;