API Documentation > Classes > Class UnitDimensionConversion
Class UnitDimensionConversion

package com.ptc.pfc.pfcUnits;

public class
UnitDimensionConversion
implements
jxenum


Description
This enumerated type lists different options for conversion of dimensions while changing the principal unit system of a model.
Field Summary
static final int
_UNITCONVERT_SAME_DIMS
Integer value of enum value "UNITCONVERT_SAME_DIMS"
This specifies that unit conversion will occur by interpreting the unit value in the new unit system. e.g. 1 inch = 1 mm
UNITCONVERT_SAME_DIMS
Object value of enum value "UNITCONVERT_SAME_DIMS"
This specifies that unit conversion will occur by interpreting the unit value in the new unit system. e.g. 1 inch = 1 mm
static final int
_UNITCONVERT_SAME_SIZE
Integer value of enum value "UNITCONVERT_SAME_SIZE"
This specifies that unit conversion will occur by converting the unit value in the new unit system. e.g. 1 inch = 25.4 mm
UNITCONVERT_SAME_SIZE
Object value of enum value "UNITCONVERT_SAME_SIZE"
This specifies that unit conversion will occur by converting the unit value in the new unit system. e.g. 1 inch = 25.4 mm
static final int
_UnitDimensionConversion_null
Enum null value.
Method Summary
FromInt (int value)
Creates enum object from an integer.
FromInt (Integer value)
Creates enum object from an integer object.
int
Returns enum object value as an integer.
Method Detail
getValue
int
getValue
()
Returns enum object value as an integer.
Returns:
Integer enum value.
FromInt
FromInt
(int value)
Creates enum object from an integer.
Parameters:
value
Input integer value.
Returns:
Enum value object.
FromInt
FromInt
(Integer value)
Creates enum object from an integer object.
Parameters:
value
Input integer object.
Returns:
Enum value object.
Was this helpful?