Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Graphics.Evolife_Graphic.Active_Frame Class Reference

An Active_frame reacts to basic keyboard control. More...

Inheritance diagram for Evolife.Graphics.Evolife_Graphic.Active_Frame:
Inheritance graph
[legend]
Collaboration diagram for Evolife.Graphics.Evolife_Graphic.Active_Frame:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, AreaType=None, parent=None, control=None, image=None, width=400, height=300, zoom=1)
 Creates a window (AreaView) with the appropriate AreaType (Draw_Area, Ground...) More...
 
def keyPressEvent (self, e)
 Definition of keyboard shortcuts. More...
 
def Raise (self)
 puts the window on top of display More...
 
def EventInterpreter (self, Event)
 Does nothing here. More...
 
- Public Member Functions inherited from Evolife.Graphics.Evolife_Graphic.AreaView
def __init__ (self, AreaType=Image_Area, parent=None, image=None, width=400, height=300, zoom=1)
 Defining View: a window (QGraphicsView) that contains a plot area (QGraphicsScene) More...
 
def paintEvent (self, e)
 calls Qt's paintEvent More...
 
def resizeEvent (self, e)
 calls Qt's resizeEvent More...
 
def updateScene (self, L)
 unused More...
 
def photo (self, Name, FrameNumber=-1, outputDir='.', extension='png')
 takes a snapshot and saves it to a new file More...
 
def EventInterpreter (self, Event)
 Does nothing here. More...
 

Public Attributes

 Area
 
 Parent
 
 Control
 
 control
 
- Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.AreaView
 Area
 
 FrameNumber
 

Detailed Description

An Active_frame reacts to basic keyboard control.

Definition at line 126 of file Evolife_Graphic.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Evolife_Graphic.Active_Frame.__init__ (   self,
  AreaType = None,
  parent = None,
  control = None,
  image = None,
  width = 400,
  height = 300,
  zoom = 1 
)

Member Function Documentation

◆ EventInterpreter()

def Evolife.Graphics.Evolife_Graphic.Active_Frame.EventInterpreter (   self,
  Event 
)

Does nothing here.

To be overloaded

Reimplemented from Evolife.Graphics.Evolife_Graphic.AreaView.

Definition at line 164 of file Evolife_Graphic.py.

◆ keyPressEvent()

def Evolife.Graphics.Evolife_Graphic.Active_Frame.keyPressEvent (   self,
  e 
)

Definition of keyboard shortcuts.

Reimplemented in Evolife.Graphics.Evolife_Graphic.Satellite_window, and Evolife.Graphics.Evolife_Window.Evolife_Frame.

Definition at line 146 of file Evolife_Graphic.py.

◆ Raise()

def Evolife.Graphics.Evolife_Graphic.Active_Frame.Raise (   self)

puts the window on top of display

Definition at line 158 of file Evolife_Graphic.py.

Member Data Documentation

◆ Area

Evolife.Graphics.Evolife_Graphic.Active_Frame.Area

Definition at line 140 of file Evolife_Graphic.py.

◆ Control

Evolife.Graphics.Evolife_Graphic.Active_Frame.Control

Definition at line 142 of file Evolife_Graphic.py.

◆ control

Evolife.Graphics.Evolife_Graphic.Active_Frame.control

Definition at line 144 of file Evolife_Graphic.py.

◆ Parent

Evolife.Graphics.Evolife_Graphic.Active_Frame.Parent

Definition at line 141 of file Evolife_Graphic.py.


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