@vertexvis/stream-api 0.15.2-testing.3 → 0.15.2-testing.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs.js +488 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +488 -2
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -5649,6 +5649,458 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
5649
5649
|
return PointQuery;
|
|
5650
5650
|
})();
|
|
5651
5651
|
|
|
5652
|
+
stream.FrustumByRectangle = (function() {
|
|
5653
|
+
|
|
5654
|
+
/**
|
|
5655
|
+
* Properties of a FrustumByRectangle.
|
|
5656
|
+
* @memberof vertexvis.protobuf.stream
|
|
5657
|
+
* @interface IFrustumByRectangle
|
|
5658
|
+
* @property {vertexvis.protobuf.stream.IRectangle|null} [rectangle] FrustumByRectangle rectangle
|
|
5659
|
+
*/
|
|
5660
|
+
|
|
5661
|
+
/**
|
|
5662
|
+
* Constructs a new FrustumByRectangle.
|
|
5663
|
+
* @memberof vertexvis.protobuf.stream
|
|
5664
|
+
* @classdesc Represents a FrustumByRectangle.
|
|
5665
|
+
* @implements IFrustumByRectangle
|
|
5666
|
+
* @constructor
|
|
5667
|
+
* @param {vertexvis.protobuf.stream.IFrustumByRectangle=} [properties] Properties to set
|
|
5668
|
+
*/
|
|
5669
|
+
function FrustumByRectangle(properties) {
|
|
5670
|
+
if (properties)
|
|
5671
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5672
|
+
if (properties[keys[i]] != null)
|
|
5673
|
+
this[keys[i]] = properties[keys[i]];
|
|
5674
|
+
}
|
|
5675
|
+
|
|
5676
|
+
/**
|
|
5677
|
+
* FrustumByRectangle rectangle.
|
|
5678
|
+
* @member {vertexvis.protobuf.stream.IRectangle|null|undefined} rectangle
|
|
5679
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5680
|
+
* @instance
|
|
5681
|
+
*/
|
|
5682
|
+
FrustumByRectangle.prototype.rectangle = null;
|
|
5683
|
+
|
|
5684
|
+
/**
|
|
5685
|
+
* Creates a new FrustumByRectangle instance using the specified properties.
|
|
5686
|
+
* @function create
|
|
5687
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5688
|
+
* @static
|
|
5689
|
+
* @param {vertexvis.protobuf.stream.IFrustumByRectangle=} [properties] Properties to set
|
|
5690
|
+
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle instance
|
|
5691
|
+
*/
|
|
5692
|
+
FrustumByRectangle.create = function create(properties) {
|
|
5693
|
+
return new FrustumByRectangle(properties);
|
|
5694
|
+
};
|
|
5695
|
+
|
|
5696
|
+
/**
|
|
5697
|
+
* Encodes the specified FrustumByRectangle message. Does not implicitly {@link vertexvis.protobuf.stream.FrustumByRectangle.verify|verify} messages.
|
|
5698
|
+
* @function encode
|
|
5699
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5700
|
+
* @static
|
|
5701
|
+
* @param {vertexvis.protobuf.stream.IFrustumByRectangle} message FrustumByRectangle message or plain object to encode
|
|
5702
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5703
|
+
* @returns {$protobuf.Writer} Writer
|
|
5704
|
+
*/
|
|
5705
|
+
FrustumByRectangle.encode = function encode(message, writer) {
|
|
5706
|
+
if (!writer)
|
|
5707
|
+
writer = $Writer.create();
|
|
5708
|
+
if (message.rectangle != null && Object.hasOwnProperty.call(message, "rectangle"))
|
|
5709
|
+
$root.vertexvis.protobuf.stream.Rectangle.encode(message.rectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
5710
|
+
return writer;
|
|
5711
|
+
};
|
|
5712
|
+
|
|
5713
|
+
/**
|
|
5714
|
+
* Encodes the specified FrustumByRectangle message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.FrustumByRectangle.verify|verify} messages.
|
|
5715
|
+
* @function encodeDelimited
|
|
5716
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5717
|
+
* @static
|
|
5718
|
+
* @param {vertexvis.protobuf.stream.IFrustumByRectangle} message FrustumByRectangle message or plain object to encode
|
|
5719
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5720
|
+
* @returns {$protobuf.Writer} Writer
|
|
5721
|
+
*/
|
|
5722
|
+
FrustumByRectangle.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5723
|
+
return this.encode(message, writer).ldelim();
|
|
5724
|
+
};
|
|
5725
|
+
|
|
5726
|
+
/**
|
|
5727
|
+
* Decodes a FrustumByRectangle message from the specified reader or buffer.
|
|
5728
|
+
* @function decode
|
|
5729
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5730
|
+
* @static
|
|
5731
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5732
|
+
* @param {number} [length] Message length if known beforehand
|
|
5733
|
+
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
5734
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5735
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5736
|
+
*/
|
|
5737
|
+
FrustumByRectangle.decode = function decode(reader, length) {
|
|
5738
|
+
if (!(reader instanceof $Reader))
|
|
5739
|
+
reader = $Reader.create(reader);
|
|
5740
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.FrustumByRectangle();
|
|
5741
|
+
while (reader.pos < end) {
|
|
5742
|
+
let tag = reader.uint32();
|
|
5743
|
+
switch (tag >>> 3) {
|
|
5744
|
+
case 1:
|
|
5745
|
+
message.rectangle = $root.vertexvis.protobuf.stream.Rectangle.decode(reader, reader.uint32());
|
|
5746
|
+
break;
|
|
5747
|
+
default:
|
|
5748
|
+
reader.skipType(tag & 7);
|
|
5749
|
+
break;
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5752
|
+
return message;
|
|
5753
|
+
};
|
|
5754
|
+
|
|
5755
|
+
/**
|
|
5756
|
+
* Decodes a FrustumByRectangle message from the specified reader or buffer, length delimited.
|
|
5757
|
+
* @function decodeDelimited
|
|
5758
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5759
|
+
* @static
|
|
5760
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5761
|
+
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
5762
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5763
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5764
|
+
*/
|
|
5765
|
+
FrustumByRectangle.decodeDelimited = function decodeDelimited(reader) {
|
|
5766
|
+
if (!(reader instanceof $Reader))
|
|
5767
|
+
reader = new $Reader(reader);
|
|
5768
|
+
return this.decode(reader, reader.uint32());
|
|
5769
|
+
};
|
|
5770
|
+
|
|
5771
|
+
/**
|
|
5772
|
+
* Verifies a FrustumByRectangle message.
|
|
5773
|
+
* @function verify
|
|
5774
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5775
|
+
* @static
|
|
5776
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5777
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5778
|
+
*/
|
|
5779
|
+
FrustumByRectangle.verify = function verify(message) {
|
|
5780
|
+
if (typeof message !== "object" || message === null)
|
|
5781
|
+
return "object expected";
|
|
5782
|
+
if (message.rectangle != null && message.hasOwnProperty("rectangle")) {
|
|
5783
|
+
let error = $root.vertexvis.protobuf.stream.Rectangle.verify(message.rectangle);
|
|
5784
|
+
if (error)
|
|
5785
|
+
return "rectangle." + error;
|
|
5786
|
+
}
|
|
5787
|
+
return null;
|
|
5788
|
+
};
|
|
5789
|
+
|
|
5790
|
+
/**
|
|
5791
|
+
* Creates a FrustumByRectangle message from a plain object. Also converts values to their respective internal types.
|
|
5792
|
+
* @function fromObject
|
|
5793
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5794
|
+
* @static
|
|
5795
|
+
* @param {Object.<string,*>} object Plain object
|
|
5796
|
+
* @returns {vertexvis.protobuf.stream.FrustumByRectangle} FrustumByRectangle
|
|
5797
|
+
*/
|
|
5798
|
+
FrustumByRectangle.fromObject = function fromObject(object) {
|
|
5799
|
+
if (object instanceof $root.vertexvis.protobuf.stream.FrustumByRectangle)
|
|
5800
|
+
return object;
|
|
5801
|
+
let message = new $root.vertexvis.protobuf.stream.FrustumByRectangle();
|
|
5802
|
+
if (object.rectangle != null) {
|
|
5803
|
+
if (typeof object.rectangle !== "object")
|
|
5804
|
+
throw TypeError(".vertexvis.protobuf.stream.FrustumByRectangle.rectangle: object expected");
|
|
5805
|
+
message.rectangle = $root.vertexvis.protobuf.stream.Rectangle.fromObject(object.rectangle);
|
|
5806
|
+
}
|
|
5807
|
+
return message;
|
|
5808
|
+
};
|
|
5809
|
+
|
|
5810
|
+
/**
|
|
5811
|
+
* Creates a plain object from a FrustumByRectangle message. Also converts values to other types if specified.
|
|
5812
|
+
* @function toObject
|
|
5813
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5814
|
+
* @static
|
|
5815
|
+
* @param {vertexvis.protobuf.stream.FrustumByRectangle} message FrustumByRectangle
|
|
5816
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5817
|
+
* @returns {Object.<string,*>} Plain object
|
|
5818
|
+
*/
|
|
5819
|
+
FrustumByRectangle.toObject = function toObject(message, options) {
|
|
5820
|
+
if (!options)
|
|
5821
|
+
options = {};
|
|
5822
|
+
let object = {};
|
|
5823
|
+
if (options.defaults)
|
|
5824
|
+
object.rectangle = null;
|
|
5825
|
+
if (message.rectangle != null && message.hasOwnProperty("rectangle"))
|
|
5826
|
+
object.rectangle = $root.vertexvis.protobuf.stream.Rectangle.toObject(message.rectangle, options);
|
|
5827
|
+
return object;
|
|
5828
|
+
};
|
|
5829
|
+
|
|
5830
|
+
/**
|
|
5831
|
+
* Converts this FrustumByRectangle to JSON.
|
|
5832
|
+
* @function toJSON
|
|
5833
|
+
* @memberof vertexvis.protobuf.stream.FrustumByRectangle
|
|
5834
|
+
* @instance
|
|
5835
|
+
* @returns {Object.<string,*>} JSON object
|
|
5836
|
+
*/
|
|
5837
|
+
FrustumByRectangle.prototype.toJSON = function toJSON() {
|
|
5838
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
5839
|
+
};
|
|
5840
|
+
|
|
5841
|
+
return FrustumByRectangle;
|
|
5842
|
+
})();
|
|
5843
|
+
|
|
5844
|
+
stream.VolumeIntersectionQuery = (function() {
|
|
5845
|
+
|
|
5846
|
+
/**
|
|
5847
|
+
* Properties of a VolumeIntersectionQuery.
|
|
5848
|
+
* @memberof vertexvis.protobuf.stream
|
|
5849
|
+
* @interface IVolumeIntersectionQuery
|
|
5850
|
+
* @property {vertexvis.protobuf.stream.IFrustumByRectangle|null} [frustumByRectangle] VolumeIntersectionQuery frustumByRectangle
|
|
5851
|
+
* @property {boolean|null} [exclusive] VolumeIntersectionQuery exclusive
|
|
5852
|
+
* @property {vertexvis.protobuf.stream.IDimensions|null} [viewport] VolumeIntersectionQuery viewport
|
|
5853
|
+
*/
|
|
5854
|
+
|
|
5855
|
+
/**
|
|
5856
|
+
* Constructs a new VolumeIntersectionQuery.
|
|
5857
|
+
* @memberof vertexvis.protobuf.stream
|
|
5858
|
+
* @classdesc Represents a VolumeIntersectionQuery.
|
|
5859
|
+
* @implements IVolumeIntersectionQuery
|
|
5860
|
+
* @constructor
|
|
5861
|
+
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery=} [properties] Properties to set
|
|
5862
|
+
*/
|
|
5863
|
+
function VolumeIntersectionQuery(properties) {
|
|
5864
|
+
if (properties)
|
|
5865
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5866
|
+
if (properties[keys[i]] != null)
|
|
5867
|
+
this[keys[i]] = properties[keys[i]];
|
|
5868
|
+
}
|
|
5869
|
+
|
|
5870
|
+
/**
|
|
5871
|
+
* VolumeIntersectionQuery frustumByRectangle.
|
|
5872
|
+
* @member {vertexvis.protobuf.stream.IFrustumByRectangle|null|undefined} frustumByRectangle
|
|
5873
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5874
|
+
* @instance
|
|
5875
|
+
*/
|
|
5876
|
+
VolumeIntersectionQuery.prototype.frustumByRectangle = null;
|
|
5877
|
+
|
|
5878
|
+
/**
|
|
5879
|
+
* VolumeIntersectionQuery exclusive.
|
|
5880
|
+
* @member {boolean} exclusive
|
|
5881
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5882
|
+
* @instance
|
|
5883
|
+
*/
|
|
5884
|
+
VolumeIntersectionQuery.prototype.exclusive = false;
|
|
5885
|
+
|
|
5886
|
+
/**
|
|
5887
|
+
* VolumeIntersectionQuery viewport.
|
|
5888
|
+
* @member {vertexvis.protobuf.stream.IDimensions|null|undefined} viewport
|
|
5889
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5890
|
+
* @instance
|
|
5891
|
+
*/
|
|
5892
|
+
VolumeIntersectionQuery.prototype.viewport = null;
|
|
5893
|
+
|
|
5894
|
+
// OneOf field names bound to virtual getters and setters
|
|
5895
|
+
let $oneOfFields;
|
|
5896
|
+
|
|
5897
|
+
/**
|
|
5898
|
+
* VolumeIntersectionQuery volume.
|
|
5899
|
+
* @member {"frustumByRectangle"|undefined} volume
|
|
5900
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5901
|
+
* @instance
|
|
5902
|
+
*/
|
|
5903
|
+
Object.defineProperty(VolumeIntersectionQuery.prototype, "volume", {
|
|
5904
|
+
get: $util.oneOfGetter($oneOfFields = ["frustumByRectangle"]),
|
|
5905
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
5906
|
+
});
|
|
5907
|
+
|
|
5908
|
+
/**
|
|
5909
|
+
* Creates a new VolumeIntersectionQuery instance using the specified properties.
|
|
5910
|
+
* @function create
|
|
5911
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5912
|
+
* @static
|
|
5913
|
+
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery=} [properties] Properties to set
|
|
5914
|
+
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery instance
|
|
5915
|
+
*/
|
|
5916
|
+
VolumeIntersectionQuery.create = function create(properties) {
|
|
5917
|
+
return new VolumeIntersectionQuery(properties);
|
|
5918
|
+
};
|
|
5919
|
+
|
|
5920
|
+
/**
|
|
5921
|
+
* Encodes the specified VolumeIntersectionQuery message. Does not implicitly {@link vertexvis.protobuf.stream.VolumeIntersectionQuery.verify|verify} messages.
|
|
5922
|
+
* @function encode
|
|
5923
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5924
|
+
* @static
|
|
5925
|
+
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery} message VolumeIntersectionQuery message or plain object to encode
|
|
5926
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5927
|
+
* @returns {$protobuf.Writer} Writer
|
|
5928
|
+
*/
|
|
5929
|
+
VolumeIntersectionQuery.encode = function encode(message, writer) {
|
|
5930
|
+
if (!writer)
|
|
5931
|
+
writer = $Writer.create();
|
|
5932
|
+
if (message.frustumByRectangle != null && Object.hasOwnProperty.call(message, "frustumByRectangle"))
|
|
5933
|
+
$root.vertexvis.protobuf.stream.FrustumByRectangle.encode(message.frustumByRectangle, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
5934
|
+
if (message.exclusive != null && Object.hasOwnProperty.call(message, "exclusive"))
|
|
5935
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.exclusive);
|
|
5936
|
+
if (message.viewport != null && Object.hasOwnProperty.call(message, "viewport"))
|
|
5937
|
+
$root.vertexvis.protobuf.stream.Dimensions.encode(message.viewport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
5938
|
+
return writer;
|
|
5939
|
+
};
|
|
5940
|
+
|
|
5941
|
+
/**
|
|
5942
|
+
* Encodes the specified VolumeIntersectionQuery message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.VolumeIntersectionQuery.verify|verify} messages.
|
|
5943
|
+
* @function encodeDelimited
|
|
5944
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5945
|
+
* @static
|
|
5946
|
+
* @param {vertexvis.protobuf.stream.IVolumeIntersectionQuery} message VolumeIntersectionQuery message or plain object to encode
|
|
5947
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5948
|
+
* @returns {$protobuf.Writer} Writer
|
|
5949
|
+
*/
|
|
5950
|
+
VolumeIntersectionQuery.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5951
|
+
return this.encode(message, writer).ldelim();
|
|
5952
|
+
};
|
|
5953
|
+
|
|
5954
|
+
/**
|
|
5955
|
+
* Decodes a VolumeIntersectionQuery message from the specified reader or buffer.
|
|
5956
|
+
* @function decode
|
|
5957
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5958
|
+
* @static
|
|
5959
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5960
|
+
* @param {number} [length] Message length if known beforehand
|
|
5961
|
+
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
5962
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5963
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5964
|
+
*/
|
|
5965
|
+
VolumeIntersectionQuery.decode = function decode(reader, length) {
|
|
5966
|
+
if (!(reader instanceof $Reader))
|
|
5967
|
+
reader = $Reader.create(reader);
|
|
5968
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.VolumeIntersectionQuery();
|
|
5969
|
+
while (reader.pos < end) {
|
|
5970
|
+
let tag = reader.uint32();
|
|
5971
|
+
switch (tag >>> 3) {
|
|
5972
|
+
case 1:
|
|
5973
|
+
message.frustumByRectangle = $root.vertexvis.protobuf.stream.FrustumByRectangle.decode(reader, reader.uint32());
|
|
5974
|
+
break;
|
|
5975
|
+
case 2:
|
|
5976
|
+
message.exclusive = reader.bool();
|
|
5977
|
+
break;
|
|
5978
|
+
case 3:
|
|
5979
|
+
message.viewport = $root.vertexvis.protobuf.stream.Dimensions.decode(reader, reader.uint32());
|
|
5980
|
+
break;
|
|
5981
|
+
default:
|
|
5982
|
+
reader.skipType(tag & 7);
|
|
5983
|
+
break;
|
|
5984
|
+
}
|
|
5985
|
+
}
|
|
5986
|
+
return message;
|
|
5987
|
+
};
|
|
5988
|
+
|
|
5989
|
+
/**
|
|
5990
|
+
* Decodes a VolumeIntersectionQuery message from the specified reader or buffer, length delimited.
|
|
5991
|
+
* @function decodeDelimited
|
|
5992
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
5993
|
+
* @static
|
|
5994
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5995
|
+
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
5996
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5997
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5998
|
+
*/
|
|
5999
|
+
VolumeIntersectionQuery.decodeDelimited = function decodeDelimited(reader) {
|
|
6000
|
+
if (!(reader instanceof $Reader))
|
|
6001
|
+
reader = new $Reader(reader);
|
|
6002
|
+
return this.decode(reader, reader.uint32());
|
|
6003
|
+
};
|
|
6004
|
+
|
|
6005
|
+
/**
|
|
6006
|
+
* Verifies a VolumeIntersectionQuery message.
|
|
6007
|
+
* @function verify
|
|
6008
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
6009
|
+
* @static
|
|
6010
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6011
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6012
|
+
*/
|
|
6013
|
+
VolumeIntersectionQuery.verify = function verify(message) {
|
|
6014
|
+
if (typeof message !== "object" || message === null)
|
|
6015
|
+
return "object expected";
|
|
6016
|
+
if (message.frustumByRectangle != null && message.hasOwnProperty("frustumByRectangle")) {
|
|
6017
|
+
{
|
|
6018
|
+
let error = $root.vertexvis.protobuf.stream.FrustumByRectangle.verify(message.frustumByRectangle);
|
|
6019
|
+
if (error)
|
|
6020
|
+
return "frustumByRectangle." + error;
|
|
6021
|
+
}
|
|
6022
|
+
}
|
|
6023
|
+
if (message.exclusive != null && message.hasOwnProperty("exclusive"))
|
|
6024
|
+
if (typeof message.exclusive !== "boolean")
|
|
6025
|
+
return "exclusive: boolean expected";
|
|
6026
|
+
if (message.viewport != null && message.hasOwnProperty("viewport")) {
|
|
6027
|
+
let error = $root.vertexvis.protobuf.stream.Dimensions.verify(message.viewport);
|
|
6028
|
+
if (error)
|
|
6029
|
+
return "viewport." + error;
|
|
6030
|
+
}
|
|
6031
|
+
return null;
|
|
6032
|
+
};
|
|
6033
|
+
|
|
6034
|
+
/**
|
|
6035
|
+
* Creates a VolumeIntersectionQuery message from a plain object. Also converts values to their respective internal types.
|
|
6036
|
+
* @function fromObject
|
|
6037
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
6038
|
+
* @static
|
|
6039
|
+
* @param {Object.<string,*>} object Plain object
|
|
6040
|
+
* @returns {vertexvis.protobuf.stream.VolumeIntersectionQuery} VolumeIntersectionQuery
|
|
6041
|
+
*/
|
|
6042
|
+
VolumeIntersectionQuery.fromObject = function fromObject(object) {
|
|
6043
|
+
if (object instanceof $root.vertexvis.protobuf.stream.VolumeIntersectionQuery)
|
|
6044
|
+
return object;
|
|
6045
|
+
let message = new $root.vertexvis.protobuf.stream.VolumeIntersectionQuery();
|
|
6046
|
+
if (object.frustumByRectangle != null) {
|
|
6047
|
+
if (typeof object.frustumByRectangle !== "object")
|
|
6048
|
+
throw TypeError(".vertexvis.protobuf.stream.VolumeIntersectionQuery.frustumByRectangle: object expected");
|
|
6049
|
+
message.frustumByRectangle = $root.vertexvis.protobuf.stream.FrustumByRectangle.fromObject(object.frustumByRectangle);
|
|
6050
|
+
}
|
|
6051
|
+
if (object.exclusive != null)
|
|
6052
|
+
message.exclusive = Boolean(object.exclusive);
|
|
6053
|
+
if (object.viewport != null) {
|
|
6054
|
+
if (typeof object.viewport !== "object")
|
|
6055
|
+
throw TypeError(".vertexvis.protobuf.stream.VolumeIntersectionQuery.viewport: object expected");
|
|
6056
|
+
message.viewport = $root.vertexvis.protobuf.stream.Dimensions.fromObject(object.viewport);
|
|
6057
|
+
}
|
|
6058
|
+
return message;
|
|
6059
|
+
};
|
|
6060
|
+
|
|
6061
|
+
/**
|
|
6062
|
+
* Creates a plain object from a VolumeIntersectionQuery message. Also converts values to other types if specified.
|
|
6063
|
+
* @function toObject
|
|
6064
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
6065
|
+
* @static
|
|
6066
|
+
* @param {vertexvis.protobuf.stream.VolumeIntersectionQuery} message VolumeIntersectionQuery
|
|
6067
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6068
|
+
* @returns {Object.<string,*>} Plain object
|
|
6069
|
+
*/
|
|
6070
|
+
VolumeIntersectionQuery.toObject = function toObject(message, options) {
|
|
6071
|
+
if (!options)
|
|
6072
|
+
options = {};
|
|
6073
|
+
let object = {};
|
|
6074
|
+
if (options.defaults) {
|
|
6075
|
+
object.exclusive = false;
|
|
6076
|
+
object.viewport = null;
|
|
6077
|
+
}
|
|
6078
|
+
if (message.frustumByRectangle != null && message.hasOwnProperty("frustumByRectangle")) {
|
|
6079
|
+
object.frustumByRectangle = $root.vertexvis.protobuf.stream.FrustumByRectangle.toObject(message.frustumByRectangle, options);
|
|
6080
|
+
if (options.oneofs)
|
|
6081
|
+
object.volume = "frustumByRectangle";
|
|
6082
|
+
}
|
|
6083
|
+
if (message.exclusive != null && message.hasOwnProperty("exclusive"))
|
|
6084
|
+
object.exclusive = message.exclusive;
|
|
6085
|
+
if (message.viewport != null && message.hasOwnProperty("viewport"))
|
|
6086
|
+
object.viewport = $root.vertexvis.protobuf.stream.Dimensions.toObject(message.viewport, options);
|
|
6087
|
+
return object;
|
|
6088
|
+
};
|
|
6089
|
+
|
|
6090
|
+
/**
|
|
6091
|
+
* Converts this VolumeIntersectionQuery to JSON.
|
|
6092
|
+
* @function toJSON
|
|
6093
|
+
* @memberof vertexvis.protobuf.stream.VolumeIntersectionQuery
|
|
6094
|
+
* @instance
|
|
6095
|
+
* @returns {Object.<string,*>} JSON object
|
|
6096
|
+
*/
|
|
6097
|
+
VolumeIntersectionQuery.prototype.toJSON = function toJSON() {
|
|
6098
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
6099
|
+
};
|
|
6100
|
+
|
|
6101
|
+
return VolumeIntersectionQuery;
|
|
6102
|
+
})();
|
|
6103
|
+
|
|
5652
6104
|
stream.SceneTreeRangeQuery = (function() {
|
|
5653
6105
|
|
|
5654
6106
|
/**
|
|
@@ -8237,6 +8689,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8237
8689
|
* @property {vertexvis.protobuf.stream.ISceneTreeRangeQuery|null} [sceneTreeRange] SceneOperation sceneTreeRange
|
|
8238
8690
|
* @property {vertexvis.protobuf.stream.IMetadataFilterQuery|null} [metadata] SceneOperation metadata
|
|
8239
8691
|
* @property {vertexvis.protobuf.stream.IOverrideQuery|null} [override] SceneOperation override
|
|
8692
|
+
* @property {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null} [volume] SceneOperation volume
|
|
8240
8693
|
* @property {Array.<vertexvis.protobuf.stream.IOperationType>|null} [operationTypes] SceneOperation operationTypes
|
|
8241
8694
|
*/
|
|
8242
8695
|
|
|
@@ -8320,6 +8773,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8320
8773
|
*/
|
|
8321
8774
|
SceneOperation.prototype.override = null;
|
|
8322
8775
|
|
|
8776
|
+
/**
|
|
8777
|
+
* SceneOperation volume.
|
|
8778
|
+
* @member {vertexvis.protobuf.stream.IVolumeIntersectionQuery|null|undefined} volume
|
|
8779
|
+
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
8780
|
+
* @instance
|
|
8781
|
+
*/
|
|
8782
|
+
SceneOperation.prototype.volume = null;
|
|
8783
|
+
|
|
8323
8784
|
/**
|
|
8324
8785
|
* SceneOperation operationTypes.
|
|
8325
8786
|
* @member {Array.<vertexvis.protobuf.stream.IOperationType>} operationTypes
|
|
@@ -8333,12 +8794,12 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8333
8794
|
|
|
8334
8795
|
/**
|
|
8335
8796
|
* SceneOperation query.
|
|
8336
|
-
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|undefined} query
|
|
8797
|
+
* @member {"item"|"or"|"and"|"all"|"point"|"sceneTreeRange"|"metadata"|"override"|"volume"|undefined} query
|
|
8337
8798
|
* @memberof vertexvis.protobuf.stream.SceneOperation
|
|
8338
8799
|
* @instance
|
|
8339
8800
|
*/
|
|
8340
8801
|
Object.defineProperty(SceneOperation.prototype, "query", {
|
|
8341
|
-
get: $util.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override"]),
|
|
8802
|
+
get: $util.oneOfGetter($oneOfFields = ["item", "or", "and", "all", "point", "sceneTreeRange", "metadata", "override", "volume"]),
|
|
8342
8803
|
set: $util.oneOfSetter($oneOfFields)
|
|
8343
8804
|
});
|
|
8344
8805
|
|
|
@@ -8385,6 +8846,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8385
8846
|
$root.vertexvis.protobuf.stream.MetadataFilterQuery.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
8386
8847
|
if (message.override != null && Object.hasOwnProperty.call(message, "override"))
|
|
8387
8848
|
$root.vertexvis.protobuf.stream.OverrideQuery.encode(message.override, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
8849
|
+
if (message.volume != null && Object.hasOwnProperty.call(message, "volume"))
|
|
8850
|
+
$root.vertexvis.protobuf.stream.VolumeIntersectionQuery.encode(message.volume, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
8388
8851
|
return writer;
|
|
8389
8852
|
};
|
|
8390
8853
|
|
|
@@ -8443,6 +8906,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8443
8906
|
case 9:
|
|
8444
8907
|
message.override = $root.vertexvis.protobuf.stream.OverrideQuery.decode(reader, reader.uint32());
|
|
8445
8908
|
break;
|
|
8909
|
+
case 10:
|
|
8910
|
+
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.decode(reader, reader.uint32());
|
|
8911
|
+
break;
|
|
8446
8912
|
case 4:
|
|
8447
8913
|
if (!(message.operationTypes && message.operationTypes.length))
|
|
8448
8914
|
message.operationTypes = [];
|
|
@@ -8562,6 +9028,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8562
9028
|
return "override." + error;
|
|
8563
9029
|
}
|
|
8564
9030
|
}
|
|
9031
|
+
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
9032
|
+
if (properties.query === 1)
|
|
9033
|
+
return "query: multiple values";
|
|
9034
|
+
properties.query = 1;
|
|
9035
|
+
{
|
|
9036
|
+
let error = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.verify(message.volume);
|
|
9037
|
+
if (error)
|
|
9038
|
+
return "volume." + error;
|
|
9039
|
+
}
|
|
9040
|
+
}
|
|
8565
9041
|
if (message.operationTypes != null && message.hasOwnProperty("operationTypes")) {
|
|
8566
9042
|
if (!Array.isArray(message.operationTypes))
|
|
8567
9043
|
return "operationTypes: array expected";
|
|
@@ -8626,6 +9102,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8626
9102
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.override: object expected");
|
|
8627
9103
|
message.override = $root.vertexvis.protobuf.stream.OverrideQuery.fromObject(object.override);
|
|
8628
9104
|
}
|
|
9105
|
+
if (object.volume != null) {
|
|
9106
|
+
if (typeof object.volume !== "object")
|
|
9107
|
+
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.volume: object expected");
|
|
9108
|
+
message.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.fromObject(object.volume);
|
|
9109
|
+
}
|
|
8629
9110
|
if (object.operationTypes) {
|
|
8630
9111
|
if (!Array.isArray(object.operationTypes))
|
|
8631
9112
|
throw TypeError(".vertexvis.protobuf.stream.SceneOperation.operationTypes: array expected");
|
|
@@ -8699,6 +9180,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
8699
9180
|
if (options.oneofs)
|
|
8700
9181
|
object.query = "override";
|
|
8701
9182
|
}
|
|
9183
|
+
if (message.volume != null && message.hasOwnProperty("volume")) {
|
|
9184
|
+
object.volume = $root.vertexvis.protobuf.stream.VolumeIntersectionQuery.toObject(message.volume, options);
|
|
9185
|
+
if (options.oneofs)
|
|
9186
|
+
object.query = "volume";
|
|
9187
|
+
}
|
|
8702
9188
|
return object;
|
|
8703
9189
|
};
|
|
8704
9190
|
|