From 5d35af796c42f7d1e42dbf35f2cc00a6adf420f5 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Thu, 20 Jan 2022 20:13:52 +0100 Subject: [PATCH] Re-generated mesh features classes. Added missing class. --- .../ext/mesh_features/FeatureIdTexture.java | 62 +++++++++++++++++++ .../impl/v2/ext/mesh_features/Schema.java | 29 +++++++++ 2 files changed, 91 insertions(+) create mode 100644 jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/FeatureIdTexture.java diff --git a/jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/FeatureIdTexture.java b/jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/FeatureIdTexture.java new file mode 100644 index 00000000..ed1571e3 --- /dev/null +++ b/jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/FeatureIdTexture.java @@ -0,0 +1,62 @@ +/* + * 3D Tiles EXT_mesh_features JSON model + * + * Do not modify this class. It is automatically generated + * with JsonModelGen (https://github.com/javagl/JsonModelGen) + * Copyright (c) 2016-2021 Marco Hutter - http://www.javagl.de + */ + +package de.javagl.jgltf.impl.v2.ext.mesh_features; + +import de.javagl.jgltf.impl.v2.TextureInfo; + + +/** + * An object describing a texture used for storing per-texel feature IDs. + * + * Auto-generated for featureIdTexture.schema.json + * + */ +public class FeatureIdTexture + extends TextureInfo +{ + + /** + * Single channel index storing per-texel feature IDs. (required)
+ * Minimum: 0 (inclusive) + * + */ + private Integer channel; + + /** + * Single channel index storing per-texel feature IDs. (required)
+ * Minimum: 0 (inclusive) + * + * @param channel The channel to set + * @throws NullPointerException If the given value is null + * @throws IllegalArgumentException If the given value does not meet + * the given constraints + * + */ + public void setChannel(Integer channel) { + if (channel == null) { + throw new NullPointerException((("Invalid value for channel: "+ channel)+", may not be null")); + } + if (channel< 0) { + throw new IllegalArgumentException("channel < 0"); + } + this.channel = channel; + } + + /** + * Single channel index storing per-texel feature IDs. (required)
+ * Minimum: 0 (inclusive) + * + * @return The channel + * + */ + public Integer getChannel() { + return this.channel; + } + +} diff --git a/jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/Schema.java b/jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/Schema.java index 9d359d6f..b41e941d 100644 --- a/jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/Schema.java +++ b/jgltf-impl-v2-ext-mesh-features/src/main/java/de/javagl/jgltf/impl/v2/ext/mesh_features/Schema.java @@ -23,6 +23,11 @@ public class Schema extends GlTFProperty { + /** + * Unique identifier for the schema. (optional) + * + */ + private String id; /** * The name of the schema, e.g. for display purposes. (optional) * @@ -53,6 +58,30 @@ public class Schema */ private Map enums; + /** + * Unique identifier for the schema. (optional) + * + * @param id The id to set + * + */ + public void setId(String id) { + if (id == null) { + this.id = id; + return ; + } + this.id = id; + } + + /** + * Unique identifier for the schema. (optional) + * + * @return The id + * + */ + public String getId() { + return this.id; + } + /** * The name of the schema, e.g. for display purposes. (optional) *