|
Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
Basic graphic area type #. More...


Public Member Functions | |
| def | __init__ (self, image=None, width=1000, height=1000, EventInterpreter=None, zoom=1) |
| Inherits from QGraphicsScene. More... | |
| def | resize (self, w, h) |
| Stores new dimensions and redraws. More... | |
| def | dimension () |
| returns dimensions More... | |
| def | redraw (self) |
| the whole scene is redrawn when the scale changes More... | |
| def | drawPoints (self) |
| Unused ---— just for test. More... | |
Public Attributes | |
| ScaledBoard | |
| Board | |
| fitSize | |
| Canvas | |
| W | |
| H | |
| FrameNumber | |
| EventInterpreter | |
| zoom | |
Basic graphic area type #.
Defines a logical Area on which objects are drawn (hidden from screen)
Definition at line 76 of file Plot_Area.py.
| def Evolife.Graphics.Plot_Area.Image_Area.__init__ | ( | self, | |
image = None, |
|||
width = 1000, |
|||
height = 1000, |
|||
EventInterpreter = None, |
|||
zoom = 1 |
|||
| ) |
Inherits from QGraphicsScene.
Reimplemented in Evolife.Graphics.Plot_Area.Ground, Evolife.Graphics.Plot_Area.Draw_Area, and Evolife.Graphics.Plot_Area.Plot_Area.
Definition at line 80 of file Plot_Area.py.
| def Evolife.Graphics.Plot_Area.Image_Area.dimension | ( | ) |
returns dimensions
Definition at line 120 of file Plot_Area.py.
| def Evolife.Graphics.Plot_Area.Image_Area.drawPoints | ( | self | ) |
Unused ---— just for test.
Definition at line 136 of file Plot_Area.py.
| def Evolife.Graphics.Plot_Area.Image_Area.redraw | ( | self | ) |
the whole scene is redrawn when the scale changes
Reimplemented in Evolife.Graphics.Plot_Area.Draw_Area, and Evolife.Graphics.Plot_Area.Ground.
Definition at line 125 of file Plot_Area.py.
| def Evolife.Graphics.Plot_Area.Image_Area.resize | ( | self, | |
| w, | |||
| h | |||
| ) |
Stores new dimensions and redraws.
Definition at line 112 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.Board |
Definition at line 86 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.Canvas |
Definition at line 101 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.EventInterpreter |
Definition at line 105 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.fitSize |
Definition at line 88 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.FrameNumber |
Definition at line 104 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.H |
Definition at line 103 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.ScaledBoard |
Definition at line 86 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.W |
Definition at line 102 of file Plot_Area.py.
| Evolife.Graphics.Plot_Area.Image_Area.zoom |
Definition at line 107 of file Plot_Area.py.