Public Member Functions | Public Attributes
dial.Dial Class Reference
Inheritance diagram for dial.Dial:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def clip
def overlay
def position
def position_center
def rotate

Public Attributes

 dial
 frameImage
 h
 image
 pos
 w
 x
 y

Detailed Description

Generic dial type.

Definition at line 53 of file dial.py.


Constructor & Destructor Documentation

def dial.Dial.__init__ (   self,
  image,
  frameImage,
  x = 0,
  y = 0,
  w = 0,
  h = 0 
)
x,y = coordinates of top left of dial.
w,h = Width and Height of dial.

Definition at line 58 of file dial.py.


Member Function Documentation

def dial.Dial.clip (   self,
  image,
  x = 0,
  y = 0,
  w = 0,
  h = 0,
  oX = 0,
  oY = 0 
)
Cuts out a part of the needle image at x,y position to the correct size (w,h).
This is put on to "imageOut" at an offset of oX,oY if required.
This is used to centre dial needles and probably doesn't need to be used externally.

Definition at line 118 of file dial.py.

def dial.Dial.overlay (   self,
  image,
  x,
  y,
  r = 0 
)
Overlays one image on top of another using 0xFFFF00 (Yellow) as the overlay colour.

Definition at line 136 of file dial.py.

def dial.Dial.position (   self,
  x,
  y 
)
Reposition top,left of dial at x,y.

Definition at line 78 of file dial.py.

def dial.Dial.position_center (   self,
  x,
  y 
)
Reposition centre of dial at x,y.

Definition at line 87 of file dial.py.

def dial.Dial.rotate (   self,
  image,
  angle 
)
Rotate supplied image by "angle" degrees.
This rotates round the centre of the image.
If you need to offset the centre, resize the image using self.clip.
This is used to rotate dial needles and probably doesn't need to be used externally.

Definition at line 96 of file dial.py.


Member Data Documentation

Definition at line 61 of file dial.py.

Reimplemented in dial.RfSignal, dial.Battery, dial.Generic, dial.TurnCoord, and dial.Horizon.

Definition at line 61 of file dial.py.

Definition at line 61 of file dial.py.

Reimplemented in dial.RfSignal, dial.Generic, dial.TurnCoord, and dial.Horizon.

Definition at line 61 of file dial.py.

Definition at line 61 of file dial.py.

Definition at line 61 of file dial.py.

Definition at line 61 of file dial.py.

Definition at line 61 of file dial.py.


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


ric_board
Author(s): RoboTiCan
autogenerated on Fri Oct 27 2017 03:02:31