public class Distortion_TangentialDecenteringParameter2 extends Object implements IMimdMetadataValue
Distortion
tangentialDecenteringParameter2 attribute.
This is a specialisation of a floating point (double).
See ST1908 for more information on this data type.
Constructor and Description |
---|
Distortion_TangentialDecenteringParameter2(byte[] bytes)
Create Distortion_TangentialDecenteringParameter2 from encoded bytes.
|
Distortion_TangentialDecenteringParameter2(byte[] bytes,
int offset,
int length)
Create Distortion_TangentialDecenteringParameter2 from encoded bytes.
|
Distortion_TangentialDecenteringParameter2(double value)
Construct from value.
|
Modifier and Type | Method and Description |
---|---|
static Distortion_TangentialDecenteringParameter2 |
fromBytes(byte[] bytes)
Create Distortion_TangentialDecenteringParameter2 from encoded bytes.
|
byte[] |
getBytes()
Get the encoded bytes.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
double |
getValue()
Get the value of this Distortion_TangentialDecenteringParameter2.
|
public Distortion_TangentialDecenteringParameter2(double value) throws KlvParseException
The value is in units of mm/mm^2.
value
- a floating point (double) value to initialise this Distortion_TangentialDecenteringParameter2 with.KlvParseException
- if the value is not valid (e.g. outside of the valid range).public Distortion_TangentialDecenteringParameter2(byte[] bytes) throws KlvParseException
bytes
- Encoded byte array.KlvParseException
- if the byte array could not be parsed.public Distortion_TangentialDecenteringParameter2(byte[] bytes, int offset, int length) throws KlvParseException
This version allows parsing of a specific number of bytes from a given offset.
bytes
- Encoded byte array.offset
- the offset into the byte array to start decoding.length
- the number of bytes to decode.KlvParseException
- if the byte array could not be parsed.public static Distortion_TangentialDecenteringParameter2 fromBytes(byte[] bytes) throws KlvParseException
bytes
- Encoded byte array.KlvParseException
- if the byte array could not be parsed.public String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
public byte[] getBytes()
IMimdMetadataValue
getBytes
in interface IMimdMetadataValue
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public double getValue()
Copyright © 2022 West Ridge Systems. All rights reserved.