Class to create, store and output qgraph files. More...
#include <OpenFOAM/graph.H>
Class to create, store and output qgraph files.
Definition at line 59 of file graph.H.
Inheritance diagram for graph:
Collaboration diagram for graph: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.
| |
| graph | ( | const string & | title, |
| const string & | xName, | ||
| const string & | yName, | ||
| const scalarField & | x | ||
| ) |
| 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().
| 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]
|
Definition at line 166 of file graph.H.
Referenced by Foam::kShellIntegration(), noiseFFT::Ldelta(), noiseFFT::Lf(), noiseFFT::Pdelta(), xmgrGraph::write(), and gnuplotGraph::write().
| scalarField& x | ( | ) | [inline]
|
| const scalarField & y | ( | ) | const |
Definition at line 123 of file graph.C.
References HashTable< curve *, word, string::hash >::begin(), Foam::exit(), Foam::FatalError, FatalErrorIn, and HashTable< curve *, word, string::hash >::size().
Referenced by noiseFFT::Ldelta(), noiseFFT::Lf(), noiseFFT::Lsum(), and noiseFFT::Pdelta().
| scalarField & y | ( | ) |
Definition at line 135 of file graph.C.
References HashTable< curve *, word, string::hash >::begin(), Foam::exit(), Foam::FatalError, FatalErrorIn, and HashTable< curve *, word, string::hash >::size().
| void writeTable | ( | Ostream & | os ) | const |
Write out graph data as a simple table.
Definition at line 192 of file graph.C.
References HashTable< curve *, word, string::hash >::begin(), HashTable< curve *, word, string::hash >::end(), Foam::endl(), forAll, Foam::setw(), and token::SPACE.
Referenced by Foam::operator<<(), rawGraph::write(), and jplotGraph::write().
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().
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().