spin_gnuplot.C File Reference

Produce frames for a gnuplot movie. More...

#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include "spin_gnuplot_cmd.h"
#include "debug.H"

Functions

string GetStringFromFile (const char *filename, bool &result)
 Read the contents of a file into a string.
bool AddFile (ofstream &out, const char *filename)
bool BoxAnimation (ofstream &out, const string &plotCmd, const float stepSize, const float xmin, const float xmax, const float ymin, const float ymax, const string basename, const string ext)
 Animate over a box path.
int main (int argc, char *argv[])

Variables

int debug_level
 The main program needs to define this as a non-extern.


Detailed Description

Produce frames for a gnuplot movie.


Function Documentation

bool AddFile ofstream &  out,
const char *  filename
 

bool BoxAnimation ofstream &  out,
const string &  plotCmd,
const float  stepSize,
const float  xmin,
const float  xmax,
const float  ymin,
const float  ymax,
const string  basename,
const string  ext
 

Animate over a box path.

Parameters:
out Stream to write gnuplot commands to.
plotCmd string to pass to splot
stepSize How much to rotate for each step - for set view
xmin,xmax Horizontal rotation
ymin,ymax Vertical look range
basename beginning of the frame filename
ext Extension to add to the end of the frame name (please include the . if you want one)
Returns:
false if something bad happened
This is the first example of a path traversal algorithm. Use it for an example if you would like to write some sort of new path. FIX: need to have a 2D way to step through plots too. Maybe be able to set a different data file for each frame?

string GetStringFromFile const char *  filename,
bool &  result
 

Read the contents of a file into a string.

Hope the file is small! What happens with a huge beast of a file?
FIX: return a reference?
FIX: the params are not getting handled by doxygen. Why?

int main int  argc,
char *  argv[]
 


Variable Documentation

int debug_level
 

The main program needs to define this as a non-extern.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6