public class Accessor extends ColladaElement
The accessor. The accessor element declares an access pattern to one of the array elements: FLOAT_ARRAY, INT_ARRAY, NAME_ARRAY, BOOL_ARRAY, TOKEN_ARRAY, and IDREF_ARRAY. The accessor element describes access to arrays that are organized in either an interleaved or non-interleaved manner, depending on the offset and stride attributes.
Constructor and Description |
---|
Accessor()
Initializes a new instance of the
Accessor class. |
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Gets or sets the count.
|
long |
getOffset()
Gets or sets the offset.
|
Parameter[] |
getParameter()
Gets or sets the parameter.
|
String |
getSource()
Gets or sets the source.
|
long |
getStride()
Gets or sets the stride.
|
void |
setCount(long value)
Gets or sets the count.
|
void |
setOffset(long value)
Gets or sets the offset.
|
void |
setParameter(Parameter[] value)
Gets or sets the parameter.
|
void |
setSource(String value)
Gets or sets the source.
|
void |
setStride(long value)
Gets or sets the stride.
|
public Accessor()
Initializes a new instance of the Accessor
class.
public final Parameter[] getParameter()
Gets or sets the parameter. The accessor element may have any number of parameter elements.
public final void setParameter(Parameter[] value)
Gets or sets the parameter. The accessor element may have any number of parameter elements.
public final long getCount()
Gets or sets the count. The count attribute indicates the number of times the array is accessed. Required attribute.
public final void setCount(long value)
Gets or sets the count. The count attribute indicates the number of times the array is accessed. Required attribute.
public final long getOffset()
Gets or sets the offset. The offset attribute indicates the index of the first value to be read from the array. The default value is 0. Optional attribute.
public final void setOffset(long value)
Gets or sets the offset. The offset attribute indicates the index of the first value to be read from the array. The default value is 0. Optional attribute.
public final String getSource()
Gets or sets the source. The source attribute indicates the location of the array to access using a URL expression. Required attribute.
public final void setSource(String value)
Gets or sets the source. The source attribute indicates the location of the array to access using a URL expression. Required attribute.
public final long getStride()
Gets or sets the stride. The stride attribute indicates number of values to be considered a unit during each access to the array. The default value is 1, indicating that a single value is accessed. Optional attribute.
public final void setStride(long value)
Gets or sets the stride. The stride attribute indicates number of values to be considered a unit during each access to the array. The default value is 1, indicating that a single value is accessed. Optional attribute.