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

Canvas where model is drawn. More...

Inheritance diagram for frame.ModelCanvas:
Collaboration diagram for frame.ModelCanvas:

Public Member Functions

def __init__
 
def OnChar
 Key pressed. More...
 
def RemoveSelected
 Remove selected shapes. More...
 
def RemoveShapes
 Removes shapes. More...
 
def GetNewShapePos
 Determine optimal position for newly added object. More...
 

Data Fields

 parent
 
 diagram
 

Detailed Description

Canvas where model is drawn.

Definition at line 978 of file gmodeler/frame.py.

Constructor & Destructor Documentation

def frame.ModelCanvas.__init__ (   self,
  parent 
)

Definition at line 980 of file gmodeler/frame.py.

Member Function Documentation

def frame.ModelCanvas.GetNewShapePos (   self)

Determine optimal position for newly added object.

Returns
x,y

Definition at line 1026 of file gmodeler/frame.py.

def frame.ModelCanvas.OnChar (   self,
  event 
)

Key pressed.

Definition at line 993 of file gmodeler/frame.py.

References frame.ModelCanvas.RemoveSelected().

Referenced by prompt.GPromptSTC.__init__().

def frame.ModelCanvas.RemoveSelected (   self)

Remove selected shapes.

Definition at line 1000 of file gmodeler/frame.py.

References frame.ModelCanvas.RemoveShapes().

Referenced by frame.ModelCanvas.OnChar().

def frame.ModelCanvas.RemoveShapes (   self,
  shapes 
)

Removes shapes.

Definition at line 1008 of file gmodeler/frame.py.

Referenced by frame.ModelCanvas.RemoveSelected().

Field Documentation

frame.ModelCanvas.diagram

Definition at line 985 of file gmodeler/frame.py.


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