FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

graph Class Reference

Class to create, store and output qgraph files. More...

#include <OpenFOAM/graph.H>


Detailed Description

Class to create, store and output qgraph files.

Source files

Definition at line 59 of file graph.H.

Inheritance diagram for graph:
Collaboration diagram for graph:

List of all members.

Classes

class  writer
 Abstract base class for a graph writer. More...
struct  xy

Public Member Functions

 graph (const string &title, const string &xName, const string &yName, const scalarField &x)
 Construct from title and labels (no curves)
 graph (const string &title, const string &xName, const string &yName, const scalarField &x, const scalarField &y)
 Construct from title, labels and y data for 1 curve.
 graph (const string &title, const string &xName, const string &yName, Istream &is)
 Construct from Istream given title and labels.
 graph (Istream &is)
 Construct from Istream.
const string &  title () const
const string &  xName () const
const string &  yName () const
const scalarField &  x () const
scalarField &  x ()
const scalarField &  y () const
scalarField &  y ()
void  writeTable (Ostream &) const
 Write out graph data as a simple table.
void  write (Ostream &, const word &format) const
 Write graph to stream in given format.
void  write (const fileName &fName, const word &format) const
 Write graph to file in given format.

Friends

Ostream &  operator<< (Ostream &, const graph &)
 Ostream Operator.

Constructor & Destructor Documentation

graph ( const string &   title,
const string &   xName,
const string &   yName,
const scalarField &   x  
)

Construct from title and labels (no curves)

Definition at line 65 of file graph.C.

graph ( const string &   title,
const string &   xName,
const string &   yName,
const scalarField &   x,
const scalarField &   y  
)

Construct from title, labels and y data for 1 curve.

Definition at line 80 of file graph.C.

References curve::curveStyle::CONTINUOUS, and insert().

graph ( const string &   title,
const string &   xName,
const string &   yName,
Istream &   is  
)

Construct from Istream given title and labels.

Definition at line 98 of file graph.C.

graph ( Istream &   is  )

Construct from Istream.

Definition at line 113 of file graph.C.


Member Function Documentation

const string& title (  ) const [inline]

Definition at line 150 of file graph.H.

Referenced by xmgrGraph::write(), and gnuplotGraph::write().

const string& xName (  ) const [inline]

Definition at line 155 of file graph.H.

Referenced by xmgrGraph::write(), jplotGraph::write(), and gnuplotGraph::write().

const string& yName (  ) const [inline]

Definition at line 160 of file graph.H.

Referenced by xmgrGraph::write(), and gnuplotGraph::write().

const scalarField& x (  ) const [inline]
scalarField& x (  ) [inline]

Definition at line 171 of file graph.H.

void writeTable ( Ostream &   os  ) const
void write ( Ostream &   os,
const word &   format  
) const

Write graph to stream in given format.

Definition at line 212 of file graph.C.

References graph::writer::New().

Referenced by Foam::makeGraph(), and graph::write().

void write ( const fileName &   fName,
const word &   format  
) const

Write graph to file in given format.

Definition at line 218 of file graph.C.

References Foam::endl(), IOstream::good(), OFstream::name(), graph::writer::New(), WarningIn, and graph::write().


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &   ,
const graph &    
) [friend]

Ostream Operator.

Definition at line 237 of file graph.C.


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