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

Public Member Functions | Protected Member Functions | Private Attributes
graphics::DataMatlabCell Class Reference

Writes the data which describe the elements to the given streams. More...

#include <dataMatlab.hh>

Inheritance diagram for graphics::DataMatlabCell:
Inheritance graph
[legend]
Collaboration diagram for graphics::DataMatlabCell:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Writes the data which describe the elements to the given streams.

Author:
Gregor Schmidlin, 2002

Definition at line 43 of file dataMatlab.hh.


Constructor & Destructor Documentation

graphics::DataMatlabCell::DataMatlabCell ( std::ofstream *  ofsmsh,
std::ofstream *  ofs1,
std::ofstream *  ofs2,
std::ofstream *  ofs3,
uint  dim,
Real  scl 
)

Constructor.

Parameters:
ofsmshStream for the mesh
ofs1Stream for x-Coordinates
ofs2Stream for y-Coordinates
ofs3Stream for z-Coordinates (dim equal 3) or the data of the vector (dim equal 2)
dimSpatial dimension of the elements
sclData scaling factor
graphics::DataMatlabCell::DataMatlabCell ( std::ofstream *  ofs,
uint  dim,
Real  scl 
)

Constructor.

Parameters:
ofsStream for the mesh
dimSpatial dimension of the elements
sclData scaling factor

Member Function Documentation

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]
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.

Parameters:
elmCurrent 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.


Member Data Documentation

Counter.

Definition at line 101 of file dataMatlab.hh.

Elementwise coefficients of the shape functions.

Definition at line 97 of file dataMatlab.hh.

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.

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.

Definition at line 93 of file dataMatlab.hh.

Data scaling factor.

Definition at line 103 of file dataMatlab.hh.

Vector of the variable to plot.

Definition at line 99 of file dataMatlab.hh.


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

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