graphics::DataDXData Class Referenceabstract
Graphics in OpenDX - data. More...
#include <dataDX.hh>
Public Member Functions | |
const concepts::Array< Real > & | coeff () const |
DataDXData (std::ostream &os, const concepts::ElementFormula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0) | |
Constructor. More... | |
DataDXData (std::ostream &os, const concepts::Formula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0) | |
Constructor. More... | |
DataDXData (std::ostream &os, const concepts::Vector< Real > &solution, const uint count, const std::string &name, VertexList *vtxList=0) | |
Constructor. More... | |
const concepts::ElementFormula< Real > * | elementFormula () const |
const concepts::Formula< Real > * | formula () const |
virtual void | operator() (const concepts::Cell &) |
Application operator. More... | |
virtual void | operator() (const concepts::Element< Real > &elm) throw (concepts::MissingFeature) |
virtual void | operator() (const Element< Real > &elm)=0 |
Application operator. More... | |
void | write (const float x) const |
Writes a float in binary format to the output stream. More... | |
virtual | ~DataDXData () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
concepts::Array< Real > | coeff_ |
Elementwise coefficients of the shape functions. More... | |
const concepts::ElementFormula< Real > * | efrm_ |
Formula to plot (given elementwise) More... | |
std::unique_ptr< const concepts::Formula< Real > > | frm_ |
Formula to plot. More... | |
std::string | name_ |
Name of this data component. More... | |
std::ostream & | os_ |
Output stream. More... | |
uint | pc_ |
Data correspond to positions (0) or connections (1) More... | |
concepts::Array< Real > | shpfnc_ |
Values of the shape functions. More... | |
const concepts::Vector< Real > * | solution_ |
Vector of the variable to plot. More... | |
concepts::Array< Real > | vertexSol_ |
Solution in the vertices in the list of vertices. More... | |
concepts::Array< Real > | vtxData_ |
Data vector of data belonging to the vertex list. More... | |
VertexList * | vtxList_ |
List of vertices. More... | |
Detailed Description
Graphics in OpenDX - data.
This class writes the solution to the file.
You should not use this class directly, Instead, use the executor class DataDX or (even simpler) its trampoline function drawDataDX (which hides the template parameter of DataDX).
- See also
- DataDX the executor class
- drawDataDX the trampoline function of DataDX
Constructor & Destructor Documentation
◆ DataDXData() [1/3]
graphics::DataDXData::DataDXData | ( | std::ostream & | os, |
const concepts::Vector< Real > & | solution, | ||
const uint | count, | ||
const std::string & | name, | ||
VertexList * | vtxList = 0 |
||
) |
Constructor.
Prepares to plot the given solution.
- Parameters
-
os Output stream where the OpenDX data should be written to solution The vector containing the variable which should be plotted count Number of points name Name of the solution vtxList List of the vertices and their coordinates
◆ DataDXData() [2/3]
graphics::DataDXData::DataDXData | ( | std::ostream & | os, |
const concepts::Formula< Real > & | frm, | ||
const uint | count, | ||
const std::string & | name, | ||
VertexList * | vtxList = 0 |
||
) |
Constructor.
Prepares to plot the given formula.
- Parameters
-
os Output stream where the DX data should be written to frm Formula to be plotted count Number of points name Name of the solution vtxList List of the vertices and their coordinates
◆ DataDXData() [3/3]
graphics::DataDXData::DataDXData | ( | std::ostream & | os, |
const concepts::ElementFormula< Real > & | frm, | ||
const uint | count, | ||
const std::string & | name, | ||
VertexList * | vtxList = 0 |
||
) |
Constructor.
Prepares to plot the given formula.
- Parameters
-
os Output stream where the DX data should be written to frm Formula to be plotted (given elementwise) count Number of points name Name of the solution vtxList List of the vertices and their coordinates
◆ ~DataDXData()
|
virtual |
Member Function Documentation
◆ coeff()
|
inline |
◆ elementFormula()
|
inline |
◆ formula()
|
inline |
◆ info()
|
protectedvirtualinherited |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::CellEdgeIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellIntegral< F >, hp3D::APrioriRefinement, hp2D::APrioriRefinement, graphics::VertexList, graphics::MatrixCounterCell, graphics::BaseMeshCell, graphics::BaseOutputCell< F >, and graphics::BaseOutputCell< Real >.
◆ operator()() [1/3]
|
inlinevirtual |
Application operator.
This application operator has to be overloaded to post process a mesh.
- Parameters
-
cell Current cell
Implements concepts::CellPostprocess< Real >.
◆ operator()() [2/3]
|
virtual |
◆ operator()() [3/3]
|
pure virtualinherited |
Application operator.
This application operator has to be overloaded to post process a space.
- Parameters
-
elm Current element
Implemented in concepts::CellEdgeIntegral< F >, and concepts::CellFaceIntegral< F >.
◆ write()
void graphics::DataDXData::write | ( | const float | x | ) | const |
Writes a float in binary format to the output stream.
Member Data Documentation
◆ coeff_
|
private |
◆ efrm_
|
private |
◆ frm_
|
private |
◆ name_
|
private |
◆ os_
|
private |
◆ pc_
|
private |
◆ shpfnc_
|
private |
◆ solution_
|
private |
◆ vertexSol_
|
private |
◆ vtxData_
|
private |
◆ vtxList_
|
private |
The documentation for this class was generated from the following file:
- graphics/dataDX.hh