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.Plot_Area.Image_Area Class Reference

Basic graphic area type #. More...

Inheritance diagram for Evolife.Graphics.Plot_Area.Image_Area:
Inheritance graph
[legend]
Collaboration diagram for Evolife.Graphics.Plot_Area.Image_Area:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ dimension()

def Evolife.Graphics.Plot_Area.Image_Area.dimension ( )

returns dimensions

Definition at line 120 of file Plot_Area.py.

◆ drawPoints()

def Evolife.Graphics.Plot_Area.Image_Area.drawPoints (   self)

Unused ---— just for test.

Definition at line 136 of file Plot_Area.py.

◆ redraw()

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.

◆ resize()

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.

Member Data Documentation

◆ Board

Evolife.Graphics.Plot_Area.Image_Area.Board

Definition at line 86 of file Plot_Area.py.

◆ Canvas

Evolife.Graphics.Plot_Area.Image_Area.Canvas

Definition at line 101 of file Plot_Area.py.

◆ EventInterpreter

Evolife.Graphics.Plot_Area.Image_Area.EventInterpreter

Definition at line 105 of file Plot_Area.py.

◆ fitSize

Evolife.Graphics.Plot_Area.Image_Area.fitSize

Definition at line 88 of file Plot_Area.py.

◆ FrameNumber

Evolife.Graphics.Plot_Area.Image_Area.FrameNumber

Definition at line 104 of file Plot_Area.py.

◆ H

Evolife.Graphics.Plot_Area.Image_Area.H

Definition at line 103 of file Plot_Area.py.

◆ ScaledBoard

Evolife.Graphics.Plot_Area.Image_Area.ScaledBoard

Definition at line 86 of file Plot_Area.py.

◆ W

Evolife.Graphics.Plot_Area.Image_Area.W

Definition at line 102 of file Plot_Area.py.

◆ zoom

Evolife.Graphics.Plot_Area.Image_Area.zoom

Definition at line 107 of file Plot_Area.py.


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