MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstUnitInfo Class Reference
Inheritance diagram for mrmeshpy.ConstUnitInfo:

Public Member Functions

 __init__ (self, *args, **kwargs)
float conversionFactor (self)
str prettyName (self)
str unitSuffix (self)

Static Protected Attributes

typing _offsetof_conversionFactor = 0
typing _offsetof_prettyName = 8
typing _offsetof_unitSuffix = 24

Detailed Description

Generated from:  MR::UnitInfo

Information about a single measurement unit.

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstUnitInfo.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstUnitInfo) -> None

2. __init__(self: meshlib.mrmeshpy.ConstUnitInfo, arg0: meshlib.mrmeshpy.ConstUnitInfo) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstUnitInfo, conversionFactor: float, prettyName: str, unitSuffix: str) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstUnitInfo, : meshlib.mrmeshpy.ConstUnitInfo) -> None

Member Function Documentation

◆ conversionFactor()

float mrmeshpy.ConstUnitInfo.conversionFactor ( self)
This is used to convert between units.
To convert from A to B, multiply by A's factor and divide by B's.

Reimplemented in mrmeshpy.UnitInfo, and mrmeshpy.UnitInfo.

◆ prettyName()

str mrmeshpy.ConstUnitInfo.prettyName ( self)

◆ unitSuffix()

str mrmeshpy.ConstUnitInfo.unitSuffix ( self)
The short unit name that's placed after values.
This may or may not start with a space.

Reimplemented in mrmeshpy.UnitInfo, and mrmeshpy.UnitInfo.

Member Data Documentation

◆ _offsetof_conversionFactor

typing mrmeshpy.ConstUnitInfo._offsetof_conversionFactor = 0
staticprotected

◆ _offsetof_prettyName

typing mrmeshpy.ConstUnitInfo._offsetof_prettyName = 8
staticprotected

◆ _offsetof_unitSuffix

typing mrmeshpy.ConstUnitInfo._offsetof_unitSuffix = 24
staticprotected

The documentation for this class was generated from the following file: