Package grc.gui.elements.Utils


Functions

def get_angle_from_coordinates
def xml_encode


Detailed Description

Shared functions for flow graph elements.
Author:
Josh Blum

Function Documentation

def grc.gui.elements.Utils.get_angle_from_coordinates (   x1,
  y1,
  x2,
  y2 
)

Given two points, calculate the vector direction from point1 to point2, directions are multiples of 90 degrees.

Parameters:
(x1,y1) the coordinate of point 1
(x2,y2) the coordinate of point 2
Returns:
the direction in degrees

Definition at line 23 of file Utils.py.

def grc.gui.elements.Utils.xml_encode (   string  ) 

Encode a string into an xml safe string by replacing special characters.
@param string the input string
@return output string with safe characters

Definition at line 37 of file Utils.py.


Generated on Sat Aug 23 02:00:11 2008 for GNU Radio Companion by  doxygen 1.5.4