Skip to content

Commit

Permalink
Re-generated mesh features classes. Added missing class.
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Jan 20, 2022
1 parent b07e53c commit 5d35af7
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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)<br>
* Minimum: 0 (inclusive)
*
*/
private Integer channel;

/**
* Single channel index storing per-texel feature IDs. (required)<br>
* Minimum: 0 (inclusive)
*
* @param channel The channel to set
* @throws NullPointerException If the given value is <code>null</code>
* @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)<br>
* Minimum: 0 (inclusive)
*
* @return The channel
*
*/
public Integer getChannel() {
return this.channel;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
Expand Down Expand Up @@ -53,6 +58,30 @@ public class Schema
*/
private Map<String, MetadataEnum> 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)
*
Expand Down

0 comments on commit 5d35af7

Please sign in to comment.