graphics::DataDX< F > Class Template Reference
Draws a picture of data in DX format and stores the result in a file. More...
#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) | |
Constructor. More... | |
DataDX (const DataDX< F > &dx) | |
Copy constructor. More... | |
void | operator() (const concepts::ElementFormula< F > &frm, const std::string &name) |
Application operator. More... | |
void | operator() (const concepts::Formula< Real > &frm, const std::string &name) |
Application operator. More... | |
void | operator() (const concepts::Vector< Real > &solution, const std::string &name) |
Application operator. More... | |
DataDX< F > & | operator= (const DataDX< F > &dx) |
Assignement operator. More... | |
~DataDX () | |
Private Attributes | |
uint | countp_ |
Number of points in the file. More... | |
uint | countq_ |
Number of quad in the file. More... | |
std::string | filename_ |
Filename. More... | |
std::forward_list< std::string > | names_ |
Names of the data fields. More... | |
bool | pc_ |
Data correspond to positions (false) or connections (true) More... | |
concepts::GlobalPostprocess< F > | postProcess_ |
Post processor. More... | |
concepts::Space< F > * | spc_ |
The space. More... | |
std::unique_ptr< VertexList > | vtxList_ |
List of vertices. More... | |
Detailed Description
template<class F>
class graphics::DataDX< F >
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
Constructor & Destructor Documentation
◆ DataDX() [1/2]
graphics::DataDX< F >::DataDX | ( | concepts::Space< F > & | spc, |
const std::string | filename, | ||
bool | pc = false , |
||
bool | boundary = false , |
||
const uint | dim = 2 |
||
) |
Constructor.
- Parameters
-
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
◆ DataDX() [2/2]
graphics::DataDX< F >::DataDX | ( | const DataDX< F > & | dx | ) |
Copy constructor.
◆ ~DataDX()
graphics::DataDX< F >::~DataDX | ( | ) |
Member Function Documentation
◆ operator()() [1/3]
void graphics::DataDX< F >::operator() | ( | const concepts::ElementFormula< F > & | frm, |
const std::string & | name | ||
) |
Application operator.
- Parameters
-
frm Function which should be plotted (given elementwise) name Name of the function which is represented by solution
◆ operator()() [2/3]
void graphics::DataDX< F >::operator() | ( | const concepts::Formula< Real > & | frm, |
const std::string & | name | ||
) |
Application operator.
- Parameters
-
frm Function which should be plotted name Name of the function which is represented by solution
◆ operator()() [3/3]
void graphics::DataDX< F >::operator() | ( | const concepts::Vector< Real > & | solution, |
const std::string & | name | ||
) |
Application operator.
- Parameters
-
solution The solution which should be plotted name Name of the variable which is represented by solution
◆ operator=()
DataDX<F>& graphics::DataDX< F >::operator= | ( | const DataDX< F > & | dx | ) |
Assignement operator.
Member Data Documentation
◆ countp_
|
private |
◆ countq_
|
private |
◆ filename_
|
private |
◆ names_
|
private |
◆ pc_
|
private |
◆ postProcess_
|
private |
◆ spc_
|
private |
◆ vtxList_
|
private |
The documentation for this class was generated from the following file:
- graphics/dataDX.hh