Class documentation of Concepts

Loading...
Searching...
No Matches
graphics::DataDX< F > Class Template Reference

#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)
 

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

Definition at line 119 of file dataDX.hh.

Constructor & Destructor Documentation

◆ DataDX()

template<class F >
graphics::DataDX< F >::DataDX ( concepts::Space< F > &  spc,
const std::string  filename,
bool  pc = false,
bool  boundary = false,
const uint  dim = 2 
)

Constructor.

Parameters
spcSpace on which the data should be plotted
filenameName of the file
pcData correspond to positions (false) or connections (true)
boundaryData are from boundary elements (if set to true)
dimSpatial dimension of the data

Member Function Documentation

◆ operator()() [1/3]

template<class F >
void graphics::DataDX< F >::operator() ( const concepts::ElementFormula< F > &  frm,
const std::string &  name 
)

Application operator.

Parameters
frmFunction which should be plotted (given elementwise)
nameName of the function which is represented by solution

◆ operator()() [2/3]

template<class F >
void graphics::DataDX< F >::operator() ( const concepts::Formula< Real > &  frm,
const std::string &  name 
)

Application operator.

Parameters
frmFunction which should be plotted
nameName of the function which is represented by solution

◆ operator()() [3/3]

template<class F >
void graphics::DataDX< F >::operator() ( const concepts::Vector< Real > &  solution,
const std::string &  name 
)

Application operator.

Parameters
solutionThe solution which should be plotted
nameName of the variable which is represented by solution

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