Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Private Attributes
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>

Collaboration diagram for graphics::DataDX< F >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DataDX (concepts::Space< F > &spc, const std::string filename, bool pc=false, bool boundary=false, const uint dim=2)
 Constructor.
 DataDX (const DataDX< F > &dx)
 Copy constructor.
void operator() (const concepts::ElementFormula< F > &frm, const std::string &name)
 Application operator.
void operator() (const concepts::Vector< Real > &solution, const std::string &name)
 Application operator.
void operator() (const concepts::Formula< Real > &frm, const std::string &name)
 Application operator.
DataDX< F > & operator= (const DataDX< F > &dx)
 Assignement operator.
 ~DataDX ()

Private Attributes

uint countp_
 Number of points in the file.
uint countq_
 Number of quad in the file.
std::string filename_
 Filename.
__gnu_cxx::slist< std::string > names_
 Names of the data fields.
bool pc_
 Data correspond to positions (false) or connections (true)
concepts::GlobalPostprocess< F > postProcess_
 Post processor.
concepts::Space< F > * spc_
 The space.
std::auto_ptr< VertexListvtxList_
 List of vertices.

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:

DataDX<Real> dataDX(drawDataDX(spc, "file.dx"));
dataDX(u, "u");
dataDX(Formula"(x)", "x");
dataDX(f, "f");

graphics/dx/threed-data.net contains a Visual Program for OpenDX to display this information.

See also:
drawDataDX the trampoline function of this class
DataDXCounts on of the classes which do the real work
DataDXCoordinates on of the classes which do the real work
DataDXConnections on of the classes which do the real work
DataDXData on of the classes which do the real work
Author:
Philipp Frauenfelder, 2001

Definition at line 132 of file dataDX.hh.


Constructor & Destructor Documentation

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
template<class F>
graphics::DataDX< F >::DataDX ( const DataDX< F > &  dx)

Copy constructor.

template<class F>
graphics::DataDX< F >::~DataDX ( )

Member Function Documentation

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
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
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
template<class F>
DataDX<F>& graphics::DataDX< F >::operator= ( const DataDX< F > &  dx)

Assignement operator.


Member Data Documentation

template<class F>
uint graphics::DataDX< F >::countp_ [private]

Number of points in the file.

Definition at line 178 of file dataDX.hh.

template<class F>
uint graphics::DataDX< F >::countq_ [private]

Number of quad in the file.

Definition at line 181 of file dataDX.hh.

template<class F>
std::string graphics::DataDX< F >::filename_ [private]

Filename.

Definition at line 172 of file dataDX.hh.

template<class F>
__gnu_cxx::slist<std::string> graphics::DataDX< F >::names_ [private]

Names of the data fields.

Definition at line 187 of file dataDX.hh.

template<class F>
bool graphics::DataDX< F >::pc_ [private]

Data correspond to positions (false) or connections (true)

Definition at line 184 of file dataDX.hh.

template<class F>
concepts::GlobalPostprocess<F> graphics::DataDX< F >::postProcess_ [private]

Post processor.

Definition at line 175 of file dataDX.hh.

template<class F>
concepts::Space<F>* graphics::DataDX< F >::spc_ [private]

The space.

Definition at line 169 of file dataDX.hh.

template<class F>
std::auto_ptr<VertexList> graphics::DataDX< F >::vtxList_ [private]

List of vertices.

Definition at line 190 of file dataDX.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)