MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.UnitInfo Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, UnitInfo arg0)
 
None __init__ (self, float conversionFactor, str prettyName, str unitSuffix)
 
float conversionFactor (self)
 
None conversionFactor (self, float arg1)
 
str unitSuffix (self)
 
None unitSuffix (self, str arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
UnitInfo operator (*args, **kwargs)
 
UnitInfo operator (*args, **kwargs)
 

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__() [1/4]

None mrmeshpy.UnitInfo.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.UnitInfo.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.UnitInfo.__init__ ( self,
UnitInfo arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.UnitInfo.__init__ ( self,
float conversionFactor,
str prettyName,
str unitSuffix )
Implicit aggregate constructor.

Member Function Documentation

◆ conversionFactor() [1/2]

float mrmeshpy.UnitInfo.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.

◆ conversionFactor() [2/2]

None mrmeshpy.UnitInfo.conversionFactor ( self,
float arg1 )

◆ operator() [1/2]

UnitInfo mrmeshpy.UnitInfo.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

UnitInfo mrmeshpy.UnitInfo.operator ( * args,
** kwargs )
static

◆ unitSuffix() [1/2]

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

◆ unitSuffix() [2/2]

None mrmeshpy.UnitInfo.unitSuffix ( self,
str arg1 )

Member Data Documentation

◆ _offsetof_conversionFactor

typing mrmeshpy.UnitInfo._offsetof_conversionFactor = 0
staticprotected

◆ _offsetof_prettyName

typing mrmeshpy.UnitInfo._offsetof_prettyName = 8
staticprotected

◆ _offsetof_unitSuffix

typing mrmeshpy.UnitInfo._offsetof_unitSuffix = 24
staticprotected

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