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_Window.Simulation_Display_Control_Frame Class Reference

This class combines a control panel and a slider for controlling display period. More...

Inheritance diagram for Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame:
Inheritance graph
[legend]
Collaboration diagram for Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, SimulationStep, Obs, Background=None)
 Create Control frame + displayperiod slider. More...
 
def DisplayPeriodChanged (self, event)
 The displayed value varies exponentially with the slider's position. More...
 
def DisplayPeriodSet (self, Period, FlagForce=True)
 
- Public Member Functions inherited from Evolife.Graphics.Evolife_Window.Simulation_Control_Frame
def __init__ (self, SimulationStep, Obs)
 Creates a window with buttons that is also a Simulation_Control. More...
 
def LocalButton (self, ParentFrame, ButtonType, Text, Tip, ClickFunction, ShortCutKey=None)
 Creates a button. More...
 
def EvolifeWebSite (self, e)
 opens Web browser with provided address More...
 
def HelpButtonClick (self, event=None)
 Displays a text file named: Help.txt. More...
 
def QuitButtonClick (self, event)
 closes the window More...
 
- Public Member Functions inherited from Evolife.Graphics.Evolife_Window.Simulation_Control
def __init__ (self, SimulationStep, Obs, method='timer')
 Stores Obs as observer and SimulationStep as the function that processes one step of the simulation. More...
 
def RunButtonClick (self, event=None)
 Entering in 'Run' mode. More...
 
def StepButtonClick (self, event=None)
 Entering in 'Step' mode. More...
 
def Simulation_stop (self)
 Stops the simulation thread or timer. More...
 
def Simulation_launch (self, continuous_mode)
 (re)starts the simulation thread or timer More...
 
def Simulation_resume (self)
 calls Simulation_launch More...
 
def OneStep (self)
 calls SimulationStep More...
 
def ReturnFromThread (self)
 to be overloaded More...
 
def DecisionToEnd (self)
 to be overloaded 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

 lcd
 
 DisplayPeriodSlider
 
 sliderPrecision
 
 previous_Disp_period
 
 Disp_period
 
- Public Attributes inherited from Evolife.Graphics.Evolife_Window.Simulation_Control_Frame
 Name
 
 IconName
 
 SWindows
 List and status of Satellite windows. More...
 
 SWindowsPreferredGeometry
 
 SWindowsMargins
 
 Finish
 
 alive
 
 PhotoMode
 
 CurrentFrame
 
 control_frame
 
 Buttons
 
 button_frame
 
 SmallButtonFrame
 
 HelpButtonFrame
 
 plot_frame
 
- Public Attributes inherited from Evolife.Graphics.Evolife_Window.Simulation_Control
 Obs
 
 SimulationStep
 
 method
 
 timer
 
 simulation
 Status of the simulation programme. More...
 
 simulation_steady_mode
 
 simulation_under_way
 
 previous_Disp_period
 
 Disp_period
 
- 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

This class combines a control panel and a slider for controlling display period.

Definition at line 350 of file Evolife_Window.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.__init__ (   self,
  SimulationStep,
  Obs,
  Background = None 
)

Create Control frame + displayperiod slider.

Reimplemented from Evolife.Graphics.Evolife_Window.Simulation_Control_Frame.

Reimplemented in Evolife.Graphics.Evolife_Window.Simulation_Frame, and Evolife.Graphics.Evolife_Window.Evolife_Frame.

Definition at line 354 of file Evolife_Window.py.

Member Function Documentation

◆ DisplayPeriodChanged()

def Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.DisplayPeriodChanged (   self,
  event 
)

The displayed value varies exponentially with the slider's position.

Definition at line 375 of file Evolife_Window.py.

◆ DisplayPeriodSet()

def Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.DisplayPeriodSet (   self,
  Period,
  FlagForce = True 
)

Definition at line 389 of file Evolife_Window.py.

Member Data Documentation

◆ Disp_period

Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.Disp_period

Definition at line 385 of file Evolife_Window.py.

◆ DisplayPeriodSlider

Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.DisplayPeriodSlider

Definition at line 367 of file Evolife_Window.py.

◆ lcd

Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.lcd

Definition at line 361 of file Evolife_Window.py.

◆ previous_Disp_period

Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.previous_Disp_period

Definition at line 384 of file Evolife_Window.py.

◆ sliderPrecision

Evolife.Graphics.Evolife_Window.Simulation_Display_Control_Frame.sliderPrecision

Definition at line 371 of file Evolife_Window.py.


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