All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.javagl.jgltf.impl.v2.AccessorSparse Maven / Gradle / Ivy

The newest version!
/*
 * glTF 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;



/**
 * Sparse storage of accessor values that deviate from their 
 * initialization value. 
 * 
 * Auto-generated for accessor.sparse.schema.json 
 * 
 */
public class AccessorSparse
    extends GlTFProperty
{

    /**
     * Number of deviating accessor values stored in the sparse array. 
     * (required)
* Minimum: 1 (inclusive) * */ private Integer count; /** * An object pointing to a buffer view containing the indices of * deviating accessor values. The number of indices is equal to `count`. * Indices **MUST** strictly increase. (required) * */ private AccessorSparseIndices indices; /** * An object pointing to a buffer view containing the deviating accessor * values. (required) * */ private AccessorSparseValues values; /** * Number of deviating accessor values stored in the sparse array. * (required)
* Minimum: 1 (inclusive) * * @param count The count to set * @throws NullPointerException If the given value is null * @throws IllegalArgumentException If the given value does not meet * the given constraints * */ public void setCount(Integer count) { if (count == null) { throw new NullPointerException((("Invalid value for count: "+ count)+", may not be null")); } if (count< 1) { throw new IllegalArgumentException("count < 1"); } this.count = count; } /** * Number of deviating accessor values stored in the sparse array. * (required)
* Minimum: 1 (inclusive) * * @return The count * */ public Integer getCount() { return this.count; } /** * An object pointing to a buffer view containing the indices of * deviating accessor values. The number of indices is equal to `count`. * Indices **MUST** strictly increase. (required) * * @param indices The indices to set * @throws NullPointerException If the given value is null * */ public void setIndices(AccessorSparseIndices indices) { if (indices == null) { throw new NullPointerException((("Invalid value for indices: "+ indices)+", may not be null")); } this.indices = indices; } /** * An object pointing to a buffer view containing the indices of * deviating accessor values. The number of indices is equal to `count`. * Indices **MUST** strictly increase. (required) * * @return The indices * */ public AccessorSparseIndices getIndices() { return this.indices; } /** * An object pointing to a buffer view containing the deviating accessor * values. (required) * * @param values The values to set * @throws NullPointerException If the given value is null * */ public void setValues(AccessorSparseValues values) { if (values == null) { throw new NullPointerException((("Invalid value for values: "+ values)+", may not be null")); } this.values = values; } /** * An object pointing to a buffer view containing the deviating accessor * values. (required) * * @return The values * */ public AccessorSparseValues getValues() { return this.values; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy