public final class Box2fAttribute extends TypedAttribute<Box2<Float>>
TypedAttribute
subclass holding a Box2<Float>
value.Attribute.AttributeCreator, Attribute.AttributeCreatorProvider
value
Constructor and Description |
---|
Box2fAttribute() |
Box2fAttribute(Box2<Float> value) |
Modifier and Type | Method and Description |
---|---|
protected Box2<Float> |
cloneValue()
Clones the value, required by
TypedAttribute.clone() . |
protected void |
readValueFrom(XdrInput input,
int version)
Set the value of this attribute by reading from the given input buffer.
|
String |
typeName()
Get this attribute's type name as it appears in an OpenEXR header.
|
protected void |
writeValueTo(XdrOutput output)
Writes the value of this attribute into the given output buffer.
|
checkedValueOf, checkSize, clone, equals, getValue, hashCode, readValueFrom, setValue, toString, valueOf, writeValueTo
public String typeName()
Attribute
protected void readValueFrom(XdrInput input, int version) throws EXRIOException
TypedAttribute
version
parameters is the 4-byte integer
following the magic number at the beginning of an OpenEXR file with the
file version and feature flags.
The default implementation throws an
UnsupportedOperationException
.
readValueFrom
in class TypedAttribute<Box2<Float>>
input
- data input from which the value will be read.version
- file version and flags as provided in the OpenEXR file.EXRIOException
- if there is an error in the file format
or if there is an I/O errorprotected void writeValueTo(XdrOutput output) throws EXRIOException
TypedAttribute
TypedAttribute.writeValueTo(XdrOutput, int)
.
The default implementation throws an
UnsupportedOperationException
.
writeValueTo
in class TypedAttribute<Box2<Float>>
output
- data output into which the value will be written.EXRIOException
- if there is an I/O error.protected Box2<Float> cloneValue()
TypedAttribute
TypedAttribute.clone()
. Most of the times
instances should create a deep copy of their value.cloneValue
in class TypedAttribute<Box2<Float>>