#include <dataDX.hh>
Public Member Functions | |
DataDX (concepts::Space< F > &spc, const std::string filename, bool pc=false, bool boundary=false, const uint dim=2) | |
DataDX (const DataDX< F > &dx) | |
Copy constructor. | |
DataDX< F > & | operator= (const DataDX< F > &dx) |
Assignement operator. | |
void | operator() (const concepts::Vector< Real > &solution, const std::string &name) |
void | operator() (const concepts::Formula< Real > &frm, const std::string &name) |
void | operator() (const concepts::ElementFormula< F > &frm, const std::string &name) |
Draws a picture of data in DX format and stores the result in a file. This class is just an executor class for various classes, the real work to draw the picture is done there.
The class has a template parameter which is not very handy. For this purpose, there is a trampoline function drawDataDXCell which creates this class and handles the template parameter correctly. If you do not need to draw more than one function on the same grid, you need not care about the template parameter - otherwise you do.
To store exactly one variable on the space:
drawDataDX(spc, "file.dx").operator()(u, "u");
To store more than one variable on the space:
\c graphics/dx/threed-data.net contains a Visual Program for OpenDX to display this information. @see drawDataDX the trampoline function of this class @see DataDXCounts on of the classes which do the real work @see DataDXCoordinates on of the classes which do the real work @see DataDXConnections on of the classes which do the real work @see DataDXData on of the classes which do the real work @author Philipp Frauenfelder, 2001
graphics::DataDX< F >::DataDX | ( | concepts::Space< F > & | spc, |
const std::string | filename, | ||
bool | pc = false , |
||
bool | boundary = false , |
||
const uint | dim = 2 |
||
) |
Constructor.
spc | Space on which the data should be plotted |
filename | Name of the file |
pc | Data correspond to positions (false) or connections (true) |
boundary | Data are from boundary elements (if set to true) |
dim | Spatial dimension of the data |
void graphics::DataDX< F >::operator() | ( | const concepts::ElementFormula< F > & | frm, |
const std::string & | name | ||
) |
Application operator.
frm | Function which should be plotted (given elementwise) |
name | Name of the function which is represented by solution |
void graphics::DataDX< F >::operator() | ( | const concepts::Formula< Real > & | frm, |
const std::string & | name | ||
) |
Application operator.
frm | Function which should be plotted |
name | Name of the function which is represented by solution |
void graphics::DataDX< F >::operator() | ( | const concepts::Vector< Real > & | solution, |
const std::string & | name | ||
) |
Application operator.
solution | The solution which should be plotted |
name | Name of the variable which is represented by solution |