GRASS Programmer's Manual  6.4.4(2014)-r
utils.Rect2D Class Reference

Class representing rectangle with floating point values. More...

Inheritance diagram for utils.Rect2D:
Collaboration diagram for utils.Rect2D:

Public Member Functions

def __init__
 
def GetX (self)
 
def GetY (self)
 
def GetWidth (self)
 
def SetWidth (self, width)
 
def GetHeight (self)
 
def SetHeight (self, height)
 

Data Fields

 width
 
 height
 

Detailed Description

Class representing rectangle with floating point values.

Overrides wx.Rect2D to unify Rect access methods, which are different (e.g. wx.Rect.GetTopLeft() x wx.Rect2D.GetLeftTop()). More methods can be added depending on needs.

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

Constructor & Destructor Documentation

def utils.Rect2D.__init__ (   self,
  x = 0,
  y = 0,
  width = 0,
  height = 0 
)

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

Member Function Documentation

def utils.Rect2D.SetHeight (   self,
  height 
)

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

def utils.Rect2D.SetWidth (   self,
  width 
)

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

Field Documentation

utils.Rect2D.height

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

Referenced by utils.Rect2D.GetHeight().

utils.Rect2D.width

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

Referenced by utils.Rect2D.GetWidth().


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