|
Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
Satellite windows are floating windows with zooming abilities. More...


Public Member Functions | |
| def | __init__ (self, AreaType=None, control=None, Wtitle='', image=None, width=400, height=300, zoom=1) |
| calls the parents' constructor with the appropriate area (QGraphicsScene) type More... | |
| def | dimension (self, *geometry) |
| sets dimensions More... | |
| def | keyPressEvent (self, e) |
| adds resizing keys (+ and -) to Active_Frame's shortcuts More... | |
| def | image_display (self, Image, windowResize=True) |
| display an image, with possible resizing of the window More... | |
| def | Zoom (self, ZoomFactor=1.1) |
| increase the window's size More... | |
| def | DeZoom (self, DeZoomFactor=0.91) |
| decrease the window's size More... | |
| def | closeEvent (self, event) |
| destroys the window More... | |
Public Member Functions inherited from Evolife.Graphics.Evolife_Graphic.Active_Frame | |
| 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 | |
| Title | |
| minSize | |
| zoomingFactor | |
Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.Active_Frame | |
| Area | |
| Parent | |
| Control | |
| control | |
Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.AreaView | |
| Area | |
| FrameNumber | |
Satellite windows are floating windows with zooming abilities.
Definition at line 172 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Satellite_window.__init__ | ( | self, | |
AreaType = None, |
|||
control = None, |
|||
Wtitle = '', |
|||
image = None, |
|||
width = 400, |
|||
height = 300, |
|||
zoom = 1 |
|||
| ) |
calls the parents' constructor with the appropriate area (QGraphicsScene) type
Reimplemented from Evolife.Graphics.Evolife_Graphic.Active_Frame.
Reimplemented in Evolife.Graphics.Evolife_Graphic.Network_window, Evolife.Graphics.Evolife_Graphic.Genome_window, Evolife.Graphics.Evolife_Graphic.Field_window, and Evolife.Graphics.Evolife_Graphic.Image_window.
Definition at line 175 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Satellite_window.closeEvent | ( | self, | |
| event | |||
| ) |
destroys the window
Definition at line 241 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Satellite_window.DeZoom | ( | self, | |
DeZoomFactor = 0.91 |
|||
| ) |
decrease the window's size
Definition at line 236 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Satellite_window.dimension | ( | self, | |
| * | geometry | ||
| ) |
sets dimensions
Definition at line 188 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Satellite_window.image_display | ( | self, | |
| Image, | |||
windowResize = True |
|||
| ) |
display an image, with possible resizing of the window
Definition at line 215 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Satellite_window.keyPressEvent | ( | self, | |
| e | |||
| ) |
adds resizing keys (+ and -) to Active_Frame's shortcuts
Reimplemented from Evolife.Graphics.Evolife_Graphic.Active_Frame.
Definition at line 205 of file Evolife_Graphic.py.
| def Evolife.Graphics.Evolife_Graphic.Satellite_window.Zoom | ( | self, | |
ZoomFactor = 1.1 |
|||
| ) |
increase the window's size
Definition at line 231 of file Evolife_Graphic.py.
| Evolife.Graphics.Evolife_Graphic.Satellite_window.minSize |
Definition at line 183 of file Evolife_Graphic.py.
| Evolife.Graphics.Evolife_Graphic.Satellite_window.Title |
Definition at line 180 of file Evolife_Graphic.py.
| Evolife.Graphics.Evolife_Graphic.Satellite_window.zoomingFactor |
Definition at line 185 of file Evolife_Graphic.py.