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.AreaView Class Reference

Standard canvas plus resizing capabilities. More...

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

Public Member Functions

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
 
 FrameNumber
 

Detailed Description

Standard canvas plus resizing capabilities.

Definition at line 68 of file Evolife_Graphic.py.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ EventInterpreter()

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

Does nothing here.

To be overloaded

Reimplemented in Evolife.Graphics.Evolife_Graphic.Active_Frame.

Definition at line 115 of file Evolife_Graphic.py.

◆ paintEvent()

def Evolife.Graphics.Evolife_Graphic.AreaView.paintEvent (   self,
  e 
)

calls Qt's paintEvent

Definition at line 85 of file Evolife_Graphic.py.

◆ photo()

def Evolife.Graphics.Evolife_Graphic.AreaView.photo (   self,
  Name,
  FrameNumber = -1,
  outputDir = '.',
  extension = 'png' 
)

takes a snapshot and saves it to a new file

Definition at line 102 of file Evolife_Graphic.py.

◆ resizeEvent()

def Evolife.Graphics.Evolife_Graphic.AreaView.resizeEvent (   self,
  e 
)

calls Qt's resizeEvent

Definition at line 90 of file Evolife_Graphic.py.

◆ updateScene()

def Evolife.Graphics.Evolife_Graphic.AreaView.updateScene (   self,
  L 
)

unused

Definition at line 97 of file Evolife_Graphic.py.

Member Data Documentation

◆ Area

Evolife.Graphics.Evolife_Graphic.AreaView.Area

Definition at line 77 of file Evolife_Graphic.py.

◆ FrameNumber

Evolife.Graphics.Evolife_Graphic.AreaView.FrameNumber

Definition at line 106 of file Evolife_Graphic.py.


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