Writes the data which describe the elements to the given streams. More...
#include <dataMatlab.hh>


Public Member Functions | |
| const concepts::Array< Real > & | coeff () const |
| Returns the coefficients of the elements shape functions. | |
| uint & | count () |
| Number of points written to the files, used for mesh representation. | |
| DataMatlabCell (std::ofstream *ofs, uint dim, Real scl) | |
| Constructor. | |
| DataMatlabCell (std::ofstream *ofsmsh, std::ofstream *ofs1, std::ofstream *ofs2, std::ofstream *ofs3, uint dim, Real scl) | |
| Constructor. | |
| uint | dim () const |
| concepts::DynArray< uint > & | map () |
| Real | offset () const |
| virtual void | operator() (const concepts::Element< Real > &elm) throw (concepts::MissingFeature) |
| Output of the mesh and vector data of the element. | |
| virtual void | operator() (const concepts::Cell &cell) throw (concepts::MissingFeature) |
| not operational | |
| virtual void | operator() (const Element< Real > &elm)=0 |
| Application operator. | |
| Real | range () const |
| Real | scale () const |
| void | setVec (const concepts::Vector< Real > *sol) |
| Sets the vector of the variable to plot. | |
| const concepts::Vector< Real > * | solution () const |
| Returns pointer to vector to plot. | |
| void | write (std::ofstream **ofsmsh, std::ofstream **ofs1, std::ofstream **ofs2, std::ofstream **ofs3) |
| Returns the streams to write the data to. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| uint | cnt_ |
| Counter. | |
| concepts::Array< Real > | coeff_ |
| Elementwise coefficients of the shape functions. | |
| uint | dim_ |
| Spatial dimension of the space. | |
| std::auto_ptr < concepts::DynArray< uint > > | map_ |
| Map for vertices of the elements. | |
| Real | offset_ |
| Offset and range for color. | |
| std::ofstream * | ofs1_ |
| std::ofstream * | ofs2_ |
| std::ofstream * | ofs3_ |
| std::ofstream * | ofsmsh_ |
| Streams to write the data to. | |
| Real | range_ |
| Real | scl_ |
| Data scaling factor. | |
| const concepts::Vector< Real > * | sol_ |
| Vector of the variable to plot. | |
Writes the data which describe the elements to the given streams.
Definition at line 43 of file dataMatlab.hh.
| graphics::DataMatlabCell::DataMatlabCell | ( | std::ofstream * | ofsmsh, |
| std::ofstream * | ofs1, | ||
| std::ofstream * | ofs2, | ||
| std::ofstream * | ofs3, | ||
| uint | dim, | ||
| Real | scl | ||
| ) |
Constructor.
| ofsmsh | Stream for the mesh |
| ofs1 | Stream for x-Coordinates |
| ofs2 | Stream for y-Coordinates |
| ofs3 | Stream for z-Coordinates (dim equal 3) or the data of the vector (dim equal 2) |
| dim | Spatial dimension of the elements |
| scl | Data scaling factor |
| graphics::DataMatlabCell::DataMatlabCell | ( | std::ofstream * | ofs, |
| uint | dim, | ||
| Real | scl | ||
| ) |
Constructor.
| ofs | Stream for the mesh |
| dim | Spatial dimension of the elements |
| scl | Data scaling factor |
| const concepts::Array<Real>& graphics::DataMatlabCell::coeff | ( | ) | const [inline] |
Returns the coefficients of the elements shape functions.
Definition at line 79 of file dataMatlab.hh.
| uint& graphics::DataMatlabCell::count | ( | ) | [inline] |
Number of points written to the files, used for mesh representation.
Definition at line 85 of file dataMatlab.hh.
| uint graphics::DataMatlabCell::dim | ( | ) | const [inline] |
Definition at line 86 of file dataMatlab.hh.
| virtual std::ostream& concepts::CellPostprocess< Real >::info | ( | std::ostream & | os | ) | const [protected, virtual, inherited] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in EvaluateEa_of_x, CellA_M_alpha_of_x, CellA_M_of_x_MC, graphics::BaseMeshCell, graphics::VertexList, hp2D::APrioriRefinement, hp3D::APrioriRefinement, concepts::CellIntegral< F >, concepts::CellFaceIntegral< F >, concepts::CellEdgeIntegral< F >, and graphics::BaseOutputCell< Real >.
| concepts::DynArray<uint>& graphics::DataMatlabCell::map | ( | ) | [inline] |
Definition at line 88 of file dataMatlab.hh.
| Real graphics::DataMatlabCell::offset | ( | ) | const [inline] |
Definition at line 82 of file dataMatlab.hh.
| virtual void concepts::CellPostprocess< Real >::operator() | ( | const Element< Real > & | elm | ) | [pure virtual, inherited] |
Application operator.
This application operator has to be overloaded to post process a space.
| elm | Current element |
Implemented in concepts::CellFaceIntegral< F >, and concepts::CellEdgeIntegral< F >.
| virtual void graphics::DataMatlabCell::operator() | ( | const concepts::Element< Real > & | elm | ) | throw (concepts::MissingFeature) [virtual] |
Output of the mesh and vector data of the element.
| virtual void graphics::DataMatlabCell::operator() | ( | const concepts::Cell & | cell | ) | throw (concepts::MissingFeature) [virtual] |
not operational
Implements concepts::CellPostprocess< Real >.
| Real graphics::DataMatlabCell::range | ( | ) | const [inline] |
Definition at line 83 of file dataMatlab.hh.
| Real graphics::DataMatlabCell::scale | ( | ) | const [inline] |
Definition at line 87 of file dataMatlab.hh.
| void graphics::DataMatlabCell::setVec | ( | const concepts::Vector< Real > * | sol | ) |
Sets the vector of the variable to plot.
| const concepts::Vector<Real>* graphics::DataMatlabCell::solution | ( | ) | const [inline] |
Returns pointer to vector to plot.
Definition at line 81 of file dataMatlab.hh.
| void graphics::DataMatlabCell::write | ( | std::ofstream ** | ofsmsh, |
| std::ofstream ** | ofs1, | ||
| std::ofstream ** | ofs2, | ||
| std::ofstream ** | ofs3 | ||
| ) |
Returns the streams to write the data to.
uint graphics::DataMatlabCell::cnt_ [private] |
Counter.
Definition at line 101 of file dataMatlab.hh.
concepts::Array<Real> graphics::DataMatlabCell::coeff_ [private] |
Elementwise coefficients of the shape functions.
Definition at line 97 of file dataMatlab.hh.
uint graphics::DataMatlabCell::dim_ [private] |
Spatial dimension of the space.
Definition at line 91 of file dataMatlab.hh.
std::auto_ptr<concepts::DynArray<uint> > graphics::DataMatlabCell::map_ [private] |
Map for vertices of the elements.
Definition at line 106 of file dataMatlab.hh.
Real graphics::DataMatlabCell::offset_ [private] |
Offset and range for color.
Definition at line 93 of file dataMatlab.hh.
std::ofstream * graphics::DataMatlabCell::ofs1_ [private] |
Definition at line 95 of file dataMatlab.hh.
std::ofstream * graphics::DataMatlabCell::ofs2_ [private] |
Definition at line 95 of file dataMatlab.hh.
std::ofstream * graphics::DataMatlabCell::ofs3_ [private] |
Definition at line 95 of file dataMatlab.hh.
std::ofstream* graphics::DataMatlabCell::ofsmsh_ [private] |
Streams to write the data to.
Definition at line 95 of file dataMatlab.hh.
Real graphics::DataMatlabCell::range_ [private] |
Definition at line 93 of file dataMatlab.hh.
Real graphics::DataMatlabCell::scl_ [private] |
Data scaling factor.
Definition at line 103 of file dataMatlab.hh.
const concepts::Vector<Real>* graphics::DataMatlabCell::sol_ [private] |
Vector of the variable to plot.
Definition at line 99 of file dataMatlab.hh.