Writes the mesh to the given streams (for a cell). More...

#include <basis.hh>

Inheritance diagram for graphics::BaseMeshCell:
graphics::BaseOutputCell< Real > concepts::CellPostprocess< Real > concepts::OutputOperator

Public Member Functions

 BaseMeshCell (std::map< std::string, std::ostream * > &os, const uint dim, const concepts::ElementGraphicsBase::graphicsType type, const uint points=5)
 Constructor (for single and repeated output) More...
 
std::vector< uint > & count ()
 Number of points written to the files, used for mesh representation. More...
 
uint dim () const
 Number of the elements, used for drawing mesh representation. More...
 
virtual uint n () const
 Number of components. More...
 
virtual uint n () const=0
 Number of components. More...
 
virtual void operator() (const concepts::Cell &cell) throw (concepts::MissingFeature)
 Output of the mesh for this cell. More...
 
virtual void operator() (const concepts::Element< Real > &elm)
 Output of the mesh of the element. More...
 
virtual void operator() (const Element< Real > &elm)=0
 Application operator. More...
 
uint streams () const
 Number of streams. More...
 
std::map< std::string, std::ostream * > & write ()
 Returns the streams to write the data to. More...
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Protected Attributes

concepts::Sequence< uint > cnt_
 Some counters. More...
 
const uint dim_
 Number of drawn elements. More...
 
std::map< std::string, std::ostream * > & os_
 Streams to write the data to. More...
 
enum concepts::ElementGraphicsBase::graphicsType type_
 Type of Output, like Matlab, Gnuplot. More...
 

Private Attributes

const concepts::Array< uint > Points_
 Number of points in one direction. More...
 

Detailed Description

Writes the mesh to the given streams (for a cell).

It can be used for different formats, like Matlab, Gnuplot.

Author
Kersten Schmidt, 2005

Definition at line 263 of file basis.hh.

Constructor & Destructor Documentation

◆ BaseMeshCell()

graphics::BaseMeshCell::BaseMeshCell ( std::map< std::string, std::ostream * > &  os,
const uint  dim,
const concepts::ElementGraphicsBase::graphicsType  type,
const uint  points = 5 
)

Constructor (for single and repeated output)

Parameters
osStreams
dimSpatial dimension of the elements
typeGraphics type, e.g. MESH_MATLAB
pointsNumber of points in one direction

Member Function Documentation

◆ count()

std::vector<uint>& graphics::BaseOutputCell< Real >::count
inlineinherited

Number of points written to the files, used for mesh representation.

Definition at line 108 of file basis.hh.

◆ dim()

uint graphics::BaseOutputCell< Real >::dim
inlineinherited

Number of the elements, used for drawing mesh representation.

Dimension

Definition at line 112 of file basis.hh.

◆ info()

virtual std::ostream& graphics::BaseMeshCell::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from graphics::BaseOutputCell< Real >.

◆ n() [1/2]

virtual uint graphics::BaseMeshCell::n ( ) const
inlinevirtual

Number of components.

Definition at line 282 of file basis.hh.

◆ n() [2/2]

virtual uint graphics::BaseOutputCell< Real >::n
pure virtualinherited

Number of components.

◆ operator()() [1/3]

virtual void graphics::BaseMeshCell::operator() ( const concepts::Cell cell)
throw (concepts::MissingFeature
)
virtual

Output of the mesh for this cell.

Implements graphics::BaseOutputCell< Real >.

◆ operator()() [2/3]

virtual void graphics::BaseMeshCell::operator() ( const concepts::Element< Real > &  elm)
virtual

Output of the mesh of the element.

Implements graphics::BaseOutputCell< Real >.

◆ operator()() [3/3]

virtual void concepts::CellPostprocess< Real >::operator() ( const Element< F > &  elm)
pure virtualinherited

Application operator.

This application operator has to be overloaded to post process a space.

Parameters
elmCurrent element

Implemented in concepts::CellEdgeIntegral< F >, and concepts::CellFaceIntegral< F >.

◆ streams()

uint graphics::BaseOutputCell< Real >::streams
inlineinherited

Number of streams.

Definition at line 105 of file basis.hh.

◆ write()

std::map<std::string, std::ostream*>& graphics::BaseOutputCell< Real >::write
inlineinherited

Returns the streams to write the data to.

Definition at line 103 of file basis.hh.

Member Data Documentation

◆ cnt_

concepts::Sequence<uint> graphics::BaseOutputCell< Real >::cnt_
protectedinherited

Some counters.

Definition at line 120 of file basis.hh.

◆ dim_

const uint graphics::BaseOutputCell< Real >::dim_
protectedinherited

Number of drawn elements.

Spatial dimension of the space

Definition at line 124 of file basis.hh.

◆ os_

std::map<std::string, std::ostream*>& graphics::BaseOutputCell< Real >::os_
protectedinherited

Streams to write the data to.

Definition at line 126 of file basis.hh.

◆ Points_

const concepts::Array<uint> graphics::BaseMeshCell::Points_
private

Number of points in one direction.

Definition at line 287 of file basis.hh.

◆ type_

Type of Output, like Matlab, Gnuplot.

Definition at line 116 of file basis.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