EcoliSimulator  2.0.1a
filmato_3D_gnuplotMultiThread.hpp File Reference
#include <stdio.h>
#include <iostream>
#include <vector>
#include "Funz_C.h"

Go to the source code of this file.

Functions

void funz_clear ()
 
void filmato_3D_gnuplotMultiT (std::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 scriptFilmato3DgnuplotMultiT (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, int i=0, int n_threadTot=1)
 
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)
 
void lunch_gnuplot (std::string name_file_gnu)
 
int lunchMultiThread3Dgnuplot (int n_thread, int cont_sim, bool last=false, int n_max=0, int n_thread_tot=1)
 This function produce a 'local' script for the multi thread and lunch gnuplot. More...
 
std::string setNamescript3DMultiT (int cont_sim, int nthread)
 set name 3D film script for gnuplot file multi-thread More...
 
void deleteSCRIPT_GNUPLOTplay_videoMultiT (int cont_sim, int n_thread_tot)
 delete files SCRIPT-GNUPLOT ... play_video.gnu multitherad. More...
 
int checkFrames (int n_thread_tot, int cont_sim, int n_max)
 this function is used to check if the mulithread creation of the frames had some problems ... More...
 
void filmato_3D_gnuplot_gif (std::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)
 

Function Documentation

int checkFrames ( int  n_thread_tot,
int  cont_sim,
int  n_max 
)

this function is used to check if the mulithread creation of the frames had some problems ...

void deleteSCRIPT_GNUPLOTplay_videoMultiT ( int  cont_sim,
int  n_thread_tot 
)

delete files SCRIPT-GNUPLOT ... play_video.gnu multitherad.

void filmato_3D_gnuplot_gif ( std::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 
)
void filmato_3D_gnuplotMultiT ( std::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 
)
void funz_clear ( )

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

void lunch_gnuplot ( std::string  name_file_gnu)
int lunchMultiThread3Dgnuplot ( int  n_thread,
int  cont_sim,
bool  last = false,
int  n_max = 0,
int  n_thread_tot = 1 
)

This function produce a 'local' script for the multi thread and lunch 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 scriptFilmato3DgnuplotMultiT ( 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,
int  i,
int  n_threadTot 
)

This function writes the script for the video 3d gnuplot

std::string setNamescript3DMultiT ( int  cont_sim,
int  nthread 
)

set name 3D film script for gnuplot file multi-thread