EcoliSimulator  2.0.1a
filmato_3D_gnuplot.cpp File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <cmath>
#include <limits>
#include <ctime>
#include <sys/stat.h>
#include "GlobalVariables.h"
#include "GnuplotGlobal.h"
#include "apngasm_Global.h"
#include "ErrorsDefinition.h"
#include "Colori.h"
#include "sssr.h"
#include "Funz_C.h"
#include "setSizesTitles.hpp"
#include "filmato_3D_gnuplotMultiThread.hpp"
#include "Declar_funz.h"

Macros

#define SAVE   0
 
#define NO_SAVE   1
 
#define DENSITY   0
 
#define FUNZC   1
 

Functions

void funz_clear ()
 
void funz_clearAll ()
 
int scriptMultiPlot (int risp_n, string title, double min_x, double max_x, double min_y, double max_y, double max_z, vector< int > frame_n, double Dt, int n_iter, int save_, int con_gen, int smaller=0)
 
void lunch_gnuplot (string name_file_gnu)
 
int scriptUpDownPer (string title, double T, int save_, int smaller)
 write the script for the up down More...
 
int writeLog (string what, string msg)
 this function write to the Log file. More...
 
void filmato_3D_gnuplot (string names_info[], double max_x, double max_y, double min_x, double min_y, double max_z, int dim_col_t, Funz_C *f, int cont_gen_sim, double max_fc)
 
int scriptFilmato3Dgnuplot (double Dt, double maxX, double maxY, double minX, double minY, double max_z, double max_fc, int dim_col_t, int save_, int cont_sim)
 

Macro Definition Documentation

#define DENSITY   0
#define FUNZC   1
#define NO_SAVE   1
#define SAVE   0

Function Documentation

void filmato_3D_gnuplot ( string  names_info[],
double  max_x,
double  max_y,
double  min_x,
double  min_y,
double  max_z,
int  dim_col_t,
Funz_C f,
int  cont_gen_sim,
double  max_fc 
)

This fuction crate the script so save, see save 4,9,16 snapshot of the density and ligand. it is not very well written. there are a lot of if end so on that can be throw away. The fact is that if we save the file and want to see it, then we first save and then play with firefox (better immage) Note: problem lunching firefox with Windows. To be check! note that we have to be careful how to pass the parameters to apngasm if we;re on Unix or Windows (line 213)

void funz_clear ( )

This function clear the terminal (different command according to the system)

void funz_clearAll ( )
void lunch_gnuplot ( string  name_file_gnu)

This function lunch the script name_file_gnu via gnuplot It is not used everytime since it has been written not at the beginning of the devopment of the softwer. You might want to substitute other command with this function

Parameters
name_file_gnuname of script to pass to gnuplot
int scriptFilmato3Dgnuplot ( double  Dt,
double  maxX,
double  maxY,
double  minX,
double  minY,
double  max_z,
double  max_fc,
int  dim_col_t,
int  save_,
int  cont_sim 
)

This function writes the script for the video 3d gnuplot

int scriptMultiPlot ( int  risp_n,
string  title,
double  min_x,
double  max_x,
double  min_y,
double  max_y,
double  max_z,
vector< int >  frame_n,
double  Dt,
int  n_iter,
int  save_,
int  cont_gen_sim,
int  smaller 
)

This function writes the script for the multiplot of snapshot of density and Ligand concentration.

int scriptUpDownPer ( string  title,
double  T,
int  save,
int  smaller = 0 
)

write the script for the up down

int writeLog ( string  what,
string  msg 
)

this function write to the Log file.