GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
utils.UnitConversion Class Reference

Class for converting units. More...

Public Member Functions

def __init__
 
def getPageUnitsNames
 
def getMapUnitsNames
 
def getAllUnits
 
def findUnit
 Returns unit by its tr. More...
 
def findName
 Returns tr. More...
 
def convert
 

Data Fields

 parent
 

Detailed Description

Class for converting units.

Definition at line 84 of file psmap/utils.py.

Constructor & Destructor Documentation

def utils.UnitConversion.__init__ (   self,
  parent = None 
)

Definition at line 86 of file psmap/utils.py.

Member Function Documentation

def utils.UnitConversion.convert (   self,
  value,
  fromUnit = None,
  toUnit = None 
)

Definition at line 133 of file psmap/utils.py.

References units.BaseUnits._units, and utils.UnitConversion._units.

def utils.UnitConversion.findName (   self,
  unit 
)

Returns tr.

string of a unit

Definition at line 126 of file psmap/utils.py.

References units.BaseUnits._units, and utils.UnitConversion._units.

def utils.UnitConversion.findUnit (   self,
  name 
)

Returns unit by its tr.

string

Definition at line 119 of file psmap/utils.py.

References units.BaseUnits._units, and utils.UnitConversion._units.

def utils.UnitConversion.getAllUnits (   self)

Definition at line 116 of file psmap/utils.py.

def utils.UnitConversion.getMapUnitsNames (   self)

Definition at line 113 of file psmap/utils.py.

References utils.UnitConversion._unitsMap.

def utils.UnitConversion.getPageUnitsNames (   self)

Definition at line 110 of file psmap/utils.py.

References utils.UnitConversion._unitsPage.

Field Documentation


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