CellViz  1.0
Typedefs | Functions | Variables
cellviz.cpp File Reference
#include <complex>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <random>
#include <vector>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Event.hpp>
#include "visualizer.h"
#include "board.h"
#include "cells.h"
#include <gtk/gtk.h>

Typedefs

using json = nlohmann::json
 

Functions

void on_mean_median_changed (GtkComboBox *combo_box, gpointer user_data)
 
void on_spin_button_changed (GtkSpinButton *spin_button, gpointer user_data)
 
void quit_sim (GtkWidget *widget, gpointer data)
 
void save_frame (const sf::RenderWindow &window, int frame_number)
 
int main (int argc, char *argv[])
 

Variables

int median_toggle = 0
 
int cell_size = 1
 
bool want_quit = false
 

Typedef Documentation

◆ json

using json = nlohmann::json

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

help message arguments:

  • output.mp4 (string) - the output file to write to (if not specified does nto write to file)
  • life=(smith|basic) - the type of life to use

◆ on_mean_median_changed()

void on_mean_median_changed ( GtkComboBox *  combo_box,
gpointer  user_data 
)

◆ on_spin_button_changed()

void on_spin_button_changed ( GtkSpinButton *  spin_button,
gpointer  user_data 
)

◆ quit_sim()

void quit_sim ( GtkWidget *  widget,
gpointer  data 
)

◆ save_frame()

void save_frame ( const sf::RenderWindow &  window,
int  frame_number 
)

Variable Documentation

◆ cell_size

int cell_size = 1

◆ median_toggle

int median_toggle = 0

◆ want_quit

bool want_quit = false