Library | File

Class pfcUnitConversionFactor

# include <pfcUnits.h>

class pfcUnitConversionFactor
 : public virtual xobject
{
    xdeclare(pfcUnitConversionFactor)
    ...
};
This is a COMPACT class.



Description

This class describes how a unit is related to its reference unit.



Method Summary

static pfcUnitConversionFactor_ptrCreate (xreal Scale)
Creates a new unit conversion factor object.
optional xrealGetOffset ()
voidSetOffset (optional xreal value)
The offset value applied to values in the reference unit.
xrealGetScale ()
voidSetScale (xreal value)
The scale applied to values in the reference unit to get the value in the actual unit.



Method Detail

xrealGetScale ()
voidSetScale (xreal value)

The scale applied to values in the reference unit to get the value in the actual unit.
Manual References:
Solid: Accessing Individual Units, Solid: Accessing Individual Units, Solid: Modifying Individual Units




optional xrealGetOffset ()
voidSetOffset (optional xreal value)

The offset value applied to values in the reference unit.
Manual References:
Solid: Accessing Individual Units, Solid: Accessing Individual Units, Solid: Modifying Individual Units, Solid: Modifying Individual Units




static pfcUnitConversionFactor_ptrCreate (xreal Scale)

Creates a new unit conversion factor object.
Manual References:
Solid: Creating a New Unit
Parameters:
Scale
The scale applied to values in the reference unit to get the value in the actual unit.
Returns:
The new object.