graphics::BaseOutputCell< F > Class Template Referenceabstract

Writes the mesh to the given streams. More...

#include <basis.hh>

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

Public Member Functions

 BaseOutputCell (std::map< std::string, std::ostream * > &os, const uint dim, const concepts::ElementGraphicsBase::graphicsType type)
 
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 =0
 Number of components. More...
 
virtual void operator() (const concepts::Cell &cell)=0
 Application operator. More...
 
virtual void operator() (const concepts::Element< F > &elm)=0
 
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...
 

Detailed Description

template<class F = Real>
class graphics::BaseOutputCell< F >

Writes the mesh to the given streams.

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

Author
Kersten Schmidt, 2004

Definition at line 95 of file basis.hh.

Constructor & Destructor Documentation

◆ BaseOutputCell()

template<class F = Real>
graphics::BaseOutputCell< F >::BaseOutputCell ( std::map< std::string, std::ostream * > &  os,
const uint  dim,
const concepts::ElementGraphicsBase::graphicsType  type 
)
inline

Definition at line 97 of file basis.hh.

Member Function Documentation

◆ count()

template<class F = Real>
std::vector<uint>& graphics::BaseOutputCell< F >::count ( )
inline

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

Definition at line 108 of file basis.hh.

◆ dim()

template<class F = Real>
uint graphics::BaseOutputCell< F >::dim ( ) const
inline

Number of the elements, used for drawing mesh representation.

Dimension

Definition at line 112 of file basis.hh.

◆ info()

template<class F = Real>
virtual std::ostream& graphics::BaseOutputCell< F >::info ( std::ostream &  os) const
protectedvirtual

◆ n()

template<class F = Real>
virtual uint graphics::BaseOutputCell< F >::n ( ) const
pure virtual

Number of components.

◆ operator()() [1/3]

template<class F = Real>
virtual void graphics::BaseOutputCell< F >::operator() ( const concepts::Cell cell)
pure virtual

Application operator.

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

Parameters
cellCurrent cell

Implements concepts::CellPostprocess< Real >.

Implemented in graphics::BaseMeshCell, graphics::BaseFormulaCell< F, G >, graphics::BaseElementFormulaCell< F, G >, and graphics::BaseDataCell< F, G >.

◆ operator()() [2/3]

template<class F = Real>
virtual void graphics::BaseOutputCell< F >::operator() ( const concepts::Element< F > &  elm)
pure virtual

Implemented in graphics::BaseMeshCell.

◆ 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()

template<class F = Real>
uint graphics::BaseOutputCell< F >::streams ( ) const
inline

Number of streams.

Definition at line 105 of file basis.hh.

◆ write()

template<class F = Real>
std::map<std::string, std::ostream*>& graphics::BaseOutputCell< F >::write ( )
inline

Returns the streams to write the data to.

Definition at line 103 of file basis.hh.

Member Data Documentation

◆ cnt_

template<class F = Real>
concepts::Sequence<uint> graphics::BaseOutputCell< F >::cnt_
protected

Some counters.

Definition at line 120 of file basis.hh.

◆ dim_

template<class F = Real>
const uint graphics::BaseOutputCell< F >::dim_
protected

Number of drawn elements.

Spatial dimension of the space

Definition at line 124 of file basis.hh.

◆ os_

template<class F = Real>
std::map<std::string, std::ostream*>& graphics::BaseOutputCell< F >::os_
protected

Streams to write the data to.

Definition at line 126 of file basis.hh.

◆ type_

template<class F = Real>
enum concepts::ElementGraphicsBase::graphicsType graphics::BaseOutputCell< F >::type_
protected

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