Enum SoDataMeasure.UnitDimensions
- java.lang.Object
- 
- java.lang.Enum<SoDataMeasure.UnitDimensions>
- 
- com.openinventor.imageviz.nodes.measures.SoDataMeasure.UnitDimensions
 
 
- 
- All Implemented Interfaces:
- IntegerValuedEnum,- java.io.Serializable,- java.lang.Comparable<SoDataMeasure.UnitDimensions>
 - Enclosing class:
- SoDataMeasure
 
 public static enum SoDataMeasure.UnitDimensions extends java.lang.Enum<SoDataMeasure.UnitDimensions> implements IntegerValuedEnum "Unit dimension" is used to categorize the resulting unit of a measure. This is not the exact resulting unit, which depends on the input data unit. ex: an area computation on a data in mm will result in a measure in mm² ; the unit dimension is the relation between the intput and output units, in this example the square of the length unit, ie "Area". If the input data length unit is cm, the result will be cm², the unit dimension is the same and only depends on the measure algorithm, not on data.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description AREAOutput unit is the square as the input data length unit.DEGREESOutput is an angle in degrees (not radians).INTENSITYOutput unit is the same as the input data value unit.NOUNITfor measure without units (count for ex.)PERIMETEROutput unit is the same as the input length value unit.PIXELSOutput is a pixel position or length (independent from the input length value unit).SQUAREINTENSITYOutput unit is the square of the input data value unit.VOLUMEOutput unit is the cube as the input data length unit.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the integer value of the enum constant.static SoDataMeasure.UnitDimensionsvalueOf(int val)Returns the enum constant of this type with the specified integer valuestatic SoDataMeasure.UnitDimensionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SoDataMeasure.UnitDimensions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
SQUAREINTENSITYpublic static final SoDataMeasure.UnitDimensions SQUAREINTENSITY Output unit is the square of the input data value unit.
 - 
INTENSITYpublic static final SoDataMeasure.UnitDimensions INTENSITY Output unit is the same as the input data value unit.
 - 
VOLUMEpublic static final SoDataMeasure.UnitDimensions VOLUME Output unit is the cube as the input data length unit.
 - 
AREApublic static final SoDataMeasure.UnitDimensions AREA Output unit is the square as the input data length unit.
 - 
PERIMETERpublic static final SoDataMeasure.UnitDimensions PERIMETER Output unit is the same as the input length value unit.
 - 
NOUNITpublic static final SoDataMeasure.UnitDimensions NOUNIT for measure without units (count for ex.)
 - 
DEGREESpublic static final SoDataMeasure.UnitDimensions DEGREES Output is an angle in degrees (not radians).
 - 
PIXELSpublic static final SoDataMeasure.UnitDimensions PIXELS Output is a pixel position or length (independent from the input length value unit).
 
- 
 - 
Method Detail- 
valuespublic static SoDataMeasure.UnitDimensions[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoDataMeasure.UnitDimensions c : SoDataMeasure.UnitDimensions.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SoDataMeasure.UnitDimensions valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
valueOfpublic static SoDataMeasure.UnitDimensions valueOf(int val) Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
 
 - 
getValuepublic int getValue() Description copied from interface:IntegerValuedEnumReturns the integer value of the enum constant.- Specified by:
- getValuein interface- IntegerValuedEnum
- Returns:
- the integer value of the enum constant.
 
 
- 
 
-