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< VertexListvtxList_
 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

Definition at line 119 of file dataDX.hh.

Constructor & Destructor Documentation

◆ DataDX() [1/2]

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

◆ DataDX() [2/2]

template<class F >
graphics::DataDX< F >::DataDX ( const DataDX< F > &  dx)

Copy constructor.

◆ ~DataDX()

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

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

◆ operator=()

template<class F >
DataDX<F>& graphics::DataDX< F >::operator= ( const DataDX< F > &  dx)

Assignement operator.

Member Data Documentation

◆ countp_

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

Number of points in the file.

Definition at line 165 of file dataDX.hh.

◆ countq_

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

Number of quad in the file.

Definition at line 168 of file dataDX.hh.

◆ filename_

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

Filename.

Definition at line 159 of file dataDX.hh.

◆ names_

template<class F >
std::forward_list<std::string> graphics::DataDX< F >::names_
private

Names of the data fields.

Definition at line 174 of file dataDX.hh.

◆ pc_

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

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

Definition at line 171 of file dataDX.hh.

◆ postProcess_

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

Post processor.

Definition at line 162 of file dataDX.hh.

◆ spc_

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

The space.

Definition at line 156 of file dataDX.hh.

◆ vtxList_

template<class F >
std::unique_ptr<VertexList> graphics::DataDX< F >::vtxList_
private

List of vertices.

Definition at line 177 of file dataDX.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich