#include <matlabBinaryGraphics.hh>
Public Member Functions | |
| template<class G > | |
| void | clearMapping (std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_) |
| A delete function for the mapping. | |
| MatlabBinaryGraphics () | |
| Default Construcor. | |
| template<class G > | |
| MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, const uint dim=2) | |
| Constructor for output of mesh only. | |
| template<class G , class F > | |
| MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0, const uint dim=2) | |
| Constructor for output of solutions and functions of it. | |
| template<class G , class F > | |
| MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, std::vector< concepts::Vector< F > > &sol, int numberOfSolution, const concepts::ElementFunction< F, G > *fun=0, const uint dim=2) | |
| Constructor for output of solutions and functions of it. | |
| MatlabBinaryGraphics (concepts::Mesh &msh, const std::string filename, const uint dim=2, const uint points=noPoints) | |
| Constructor for output of mesh only. | |
| template<class G , class F > | |
| MatlabBinaryGraphics (const concepts::Space< G > &spc, const std::string filename, const concepts::ElementFormula< F, G > &frm, const uint dim=2) | |
| Constructor for output of an element formula. | |
| template<class G , class F > | |
| void | operator() (const concepts::Space< G > &spc, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0) |
| Application operator for output of solutions and functions of it. | |
| template<class G , class F > | |
| void | operator() (const concepts::Space< G > &spc, const concepts::Formula< F > &frm) |
| Application operator for output of a scalar formula. | |
| template<class F > | |
| void | operator() (concepts::Mesh &msh, const concepts::Formula< F > &frm, const uint points=5) |
| Application operator for output of a scalar formula. | |
| virtual | ~MatlabBinaryGraphics () |
Static Public Attributes | |
| static uint | noPoints |
Private Member Functions | |
| template<class G > | |
| void | createMatrices_ (bool data, uint count[], std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_) |
| Create the matrices in the right size (the size is givn by four unsigned integers "count") | |
| template<class G , class F > | |
| void | storeData_ (bool data, std::string filename, std::map< std::string, concepts::DenseMatrix< G > * > &dense_ptr_, concepts::DenseMatrix< F > *functionValue=0, concepts::DenseMatrix< F > **function_ptr_=0, int numOfFunction=0) |
| Store data hold by a mapping as Matfile-Binary .mat file. | |
Private Attributes | |
| uint | data_ |
| Information which data should be stored. | |
| uint | dim_ |
| Spatial dimension of the space. | |
| uint | outputDimension_ |
| dimension of the output: 1 if output is solution | dim_ if output is gradient | |
Definition at line 19 of file matlabBinaryGraphics.hh.
| graphics::MatlabBinaryGraphics::MatlabBinaryGraphics | ( | ) | [inline] |
Default Construcor.
Definition at line 28 of file matlabBinaryGraphics.hh.
| graphics::MatlabBinaryGraphics::MatlabBinaryGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| const uint | dim = 2 |
||
| ) |
Constructor for output of mesh only.
| spc | Space which holds the mesh |
| filename | Name base for the files to be written |
| dim | Spatial dimension of the cells |
Definition at line 310 of file matlabBinaryGraphics.hh.

| graphics::MatlabBinaryGraphics::MatlabBinaryGraphics | ( | concepts::Mesh & | msh, |
| const std::string | filename, | ||
| const uint | dim = 2, |
||
| const uint | points = noPoints |
||
| ) |
Constructor for output of mesh only.
| msh | Mesh |
| filename | Name base for the files to be written |
| dim | Spatial dimension of the cells |
| graphics::MatlabBinaryGraphics::MatlabBinaryGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| const concepts::Vector< F > & | sol, | ||
| const concepts::ElementFunction< F, G > * | fun = 0, |
||
| const uint | dim = 2 |
||
| ) |
Constructor for output of solutions and functions of it.
| spc | Space on which the data should be plotted |
| filename | Name base for the files to be written |
| sol | The first solution set which should be plotted |
| dim | Spatial dimension of the cells |
| fun | Function of the FE function, e.g. itself. |
Definition at line 189 of file matlabBinaryGraphics.hh.

| graphics::MatlabBinaryGraphics::MatlabBinaryGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| std::vector< concepts::Vector< F > > & | sol, | ||
| int | numberOfSolution, | ||
| const concepts::ElementFunction< F, G > * | fun = 0, |
||
| const uint | dim = 2 |
||
| ) |
Constructor for output of solutions and functions of it.
| spc | Space on which the data should be plotted |
| filename | Name base for the files to be written |
| sol | The first solution set which should be plotted |
| dim | Spatial dimension of the cells |
| fun | Function of the FE function, e.g. itself. |
Definition at line 239 of file matlabBinaryGraphics.hh.

| graphics::MatlabBinaryGraphics::MatlabBinaryGraphics | ( | const concepts::Space< G > & | spc, |
| const std::string | filename, | ||
| const concepts::ElementFormula< F, G > & | frm, | ||
| const uint | dim = 2 |
||
| ) |
Constructor for output of an element formula.
| spc | Space on which the data should be plotted |
| filename | Name base for the files to be written |
| dim | Spatial dimension of the cells |
| frm | Element formula |
Definition at line 343 of file matlabBinaryGraphics.hh.

| virtual graphics::MatlabBinaryGraphics::~MatlabBinaryGraphics | ( | ) | [inline, virtual] |
Definition at line 84 of file matlabBinaryGraphics.hh.
| void graphics::MatlabBinaryGraphics::clearMapping | ( | std::map< std::string, concepts::DenseMatrix< G > * > & | dense_ptr_ | ) | [inline] |
A delete function for the mapping.
Deletes all dense matrices and gives their memory back.
| dense_ptr_ | Mapping to delete |
Definition at line 94 of file matlabBinaryGraphics.hh.
| void graphics::MatlabBinaryGraphics::createMatrices_ | ( | bool | data, |
| uint | count[], | ||
| std::map< std::string, concepts::DenseMatrix< G > * > & | dense_ptr_ | ||
| ) | [private] |
Create the matrices in the right size (the size is givn by four unsigned integers "count")
| bool | data (flag if solution and space informations should be store) |
| uint[] | count (informations about the size of the space/mesh) |
| mapping | (empty mapping to write matrices) |
Definition at line 402 of file matlabBinaryGraphics.hh.
| void graphics::MatlabBinaryGraphics::operator() | ( | const concepts::Space< G > & | spc, |
| const concepts::Vector< F > & | sol, | ||
| const concepts::ElementFunction< F, G > * | fun = 0 |
||
| ) |
Application operator for output of solutions and functions of it.
| spc | Space on which the data should be plotted |
| sol | The first solution set which should be plotted |
| fun | Function of the FE function, e.g. itself. |
Definition at line 391 of file matlabBinaryGraphics.hh.
| void graphics::MatlabBinaryGraphics::operator() | ( | concepts::Mesh & | msh, |
| const concepts::Formula< F > & | frm, | ||
| const uint | points = 5 |
||
| ) | [inline] |
Application operator for output of a scalar formula.
| msh | Mesh |
| frm | Formula |
Definition at line 149 of file matlabBinaryGraphics.hh.
| void graphics::MatlabBinaryGraphics::operator() | ( | const concepts::Space< G > & | spc, |
| const concepts::Formula< F > & | frm | ||
| ) |
Application operator for output of a scalar formula.
| spc | Space on which the data should be plotted |
| frm | Formula |
Definition at line 397 of file matlabBinaryGraphics.hh.
| void graphics::MatlabBinaryGraphics::storeData_ | ( | bool | data, |
| std::string | filename, | ||
| std::map< std::string, concepts::DenseMatrix< G > * > & | dense_ptr_, | ||
| concepts::DenseMatrix< F > * | functionValue = 0, |
||
| concepts::DenseMatrix< F > ** | function_ptr_ = 0, |
||
| int | numOfFunction = 0 |
||
| ) | [private] |
Store data hold by a mapping as Matfile-Binary .mat file.
| bool | data (flag if solution and space informations should be store) |
| string | filename (the name of the file .mat will be added if filename don't end with ".mat") |
| mapping | (mapping to store) |
Definition at line 451 of file matlabBinaryGraphics.hh.

uint graphics::MatlabBinaryGraphics::data_ [private] |
Information which data should be stored.
Definition at line 179 of file matlabBinaryGraphics.hh.
uint graphics::MatlabBinaryGraphics::dim_ [private] |
Spatial dimension of the space.
Definition at line 182 of file matlabBinaryGraphics.hh.
uint graphics::MatlabBinaryGraphics::noPoints [static] |
Definition at line 23 of file matlabBinaryGraphics.hh.
uint graphics::MatlabBinaryGraphics::outputDimension_ [private] |
dimension of the output: 1 if output is solution | dim_ if output is gradient
Definition at line 185 of file matlabBinaryGraphics.hh.