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