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

Genome_window: An image area that displays binary genomes. More...

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

Public Member Functions

def __init__ (self, control=None, image=None, genome=None, gene_pattern=None, outputDir='.', zoom=1)
 calls Satellite_window's constructor and performs first display More...
 
def axes (self)
 draws separation between genes More...
 
def genome_display (self, genome=None, gene_pattern=(), Photo=0, CurrentFrame=-1, Prefix='')
 genome gives, for each individual, the sequence of binary nucleotides gene_pattern is a binary flag to signal gene alternation More...
 
- Public Member Functions inherited from Evolife.Graphics.Evolife_Graphic.Satellite_window
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

 gene_pattern
 
 OutputDir
 
 H
 
 W
 
 defaultSize
 
 minSize
 
- Public Attributes inherited from Evolife.Graphics.Evolife_Graphic.Satellite_window
 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
 

Detailed Description

Genome_window: An image area that displays binary genomes.

Definition at line 272 of file Evolife_Graphic.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Evolife_Graphic.Genome_window.__init__ (   self,
  control = None,
  image = None,
  genome = None,
  gene_pattern = None,
  outputDir = '.',
  zoom = 1 
)

calls Satellite_window's constructor and performs first display

Reimplemented from Evolife.Graphics.Evolife_Graphic.Satellite_window.

Definition at line 275 of file Evolife_Graphic.py.

Member Function Documentation

◆ axes()

def Evolife.Graphics.Evolife_Graphic.Genome_window.axes (   self)

draws separation between genes

Definition at line 295 of file Evolife_Graphic.py.

◆ genome_display()

def Evolife.Graphics.Evolife_Graphic.Genome_window.genome_display (   self,
  genome = None,
  gene_pattern = (),
  Photo = 0,
  CurrentFrame = -1,
  Prefix = '' 
)

genome gives, for each individual, the sequence of binary nucleotides gene_pattern is a binary flag to signal gene alternation

Definition at line 313 of file Evolife_Graphic.py.

Member Data Documentation

◆ defaultSize

Evolife.Graphics.Evolife_Graphic.Genome_window.defaultSize

Definition at line 283 of file Evolife_Graphic.py.

◆ gene_pattern

Evolife.Graphics.Evolife_Graphic.Genome_window.gene_pattern

Definition at line 279 of file Evolife_Graphic.py.

◆ H

Evolife.Graphics.Evolife_Graphic.Genome_window.H

Definition at line 281 of file Evolife_Graphic.py.

◆ minSize

Evolife.Graphics.Evolife_Graphic.Genome_window.minSize

Definition at line 289 of file Evolife_Graphic.py.

◆ OutputDir

Evolife.Graphics.Evolife_Graphic.Genome_window.OutputDir

Definition at line 280 of file Evolife_Graphic.py.

◆ W

Evolife.Graphics.Evolife_Graphic.Genome_window.W

Definition at line 282 of file Evolife_Graphic.py.


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