graphics::MatrixSpaceOutputCell< G > Class Template Referenceabstract

Class that collects graphical informations about a given space in a set of ElementMatrices. More...

#include <matrixBasis.hh>

Inheritance diagram for graphics::MatrixSpaceOutputCell< G >:
graphics::MatrixBasisOutputCell< Real > concepts::CellPostprocess< Real > concepts::OutputOperator

Public Member Functions

uint dim () const
 returns the space dimension of the mesh (two by default) More...
 
DenseMatrixCollection< G > & getMapping ()
 Returns a mapping with all dense matrices, where data should be stored. More...
 
 MatrixSpaceOutputCell (DenseMatrixCollection< G > &dense_ptr, uint dim=2, const enum concepts::ElementGraphicsBase::graphicsType type=concepts::ElementGraphicsBase::DENSEMATRIX)
 Constructor (for collecting space data) More...
 
virtual void operator() (const concepts::Cell &cell)
 Writes data of the given cell in the matrices. More...
 
virtual void operator() (const concepts::Element< G > &elm)
 Writes data of the given element in the matrices. More...
 
virtual void operator() (const concepts::Element< Real > &elm)=0
 Writes data of the given element in the matrices. More...
 
virtual void operator() (const Element< Real > &elm)=0
 Application operator. More...
 
virtual void resetCounter ()
 Resets all counter. More...
 
virtual ~MatrixSpaceOutputCell ()
 Destructor. More...
 

Public Attributes

uint counter
 Number of stored points. More...
 
uint indexOfAttributes
 Index of the (next) quad (used for the attributes). More...
 
uint indexOfEdgAttr
 Index of the (next) graphics edge (used for edge attribute) More...
 
uint indexOfEdgeMesh
 Index of the (next) graphics edge in the edge mesh. More...
 
uint indexOfFaceAttr
 Index of the (next) graphics edge (used for edge attribute) More...
 
uint indexOfFaceMesh
 Index of the (next) graphics quad. More...
 
uint indexOfMesh
 Index of the (next) graphics quad (the small one). More...
 
uint indexOfPoints
 Index of the (next) graphics point. More...
 
uint indexOfPolynomialDegree
 Index of the (next) quad (used for the polynomial degree) More...
 
uint indexOfVertexMesh
 Index of the (next) quad (used for the vertex mesh). More...
 
uint indexOfVtxAttr
 Index of the (next) quad (used for the vertex attribute) More...
 

Protected Member Functions

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

Protected Attributes

DenseMatrixCollection< G > & dense_ptr_
 The mapping that holds the matrices. More...
 
uint dim_
 The space dimension of the mesh (1, 2, or 3) More...
 
enum concepts::ElementGraphicsBase::graphicsType type_
 The graphicsType (either concepts::ElementGraphicsBase::DENSEMATRIX or concepts::ElementGraphicsBase::MESH_DENSEMATRIX) More...
 

Detailed Description

template<class G = Real>
class graphics::MatrixSpaceOutputCell< G >

Class that collects graphical informations about a given space in a set of ElementMatrices.

Author
Christian Heier, 2012

Definition at line 160 of file matrixBasis.hh.

Constructor & Destructor Documentation

◆ MatrixSpaceOutputCell()

template<class G = Real>
graphics::MatrixSpaceOutputCell< G >::MatrixSpaceOutputCell ( DenseMatrixCollection< G > &  dense_ptr,
uint  dim = 2,
const enum concepts::ElementGraphicsBase::graphicsType  type = concepts::ElementGraphicsBase::DENSEMATRIX 
)
inline

Constructor (for collecting space data)

Parameters
dense_ptrMapping that allows to adress ElementMatrixes with strings
dimThe dimension of the space
typeType should be MESH_DENSEMATRIX if just the mesh is readed, DENSEMATRIX else

Definition at line 169 of file matrixBasis.hh.

◆ ~MatrixSpaceOutputCell()

template<class G = Real>
virtual graphics::MatrixSpaceOutputCell< G >::~MatrixSpaceOutputCell ( )
inlinevirtual

Destructor.

Definition at line 177 of file matrixBasis.hh.

Member Function Documentation

◆ dim()

uint graphics::MatrixBasisOutputCell< Real >::dim ( ) const
inlineinherited

returns the space dimension of the mesh (two by default)

Definition at line 128 of file matrixBasis.hh.

◆ getMapping()

template<class G = Real>
DenseMatrixCollection<G>& graphics::MatrixSpaceOutputCell< G >::getMapping ( )
inline

Returns a mapping with all dense matrices, where data should be stored.

Definition at line 242 of file matrixBasis.hh.

◆ info()

◆ operator()() [1/4]

template<class G = Real>
virtual void graphics::MatrixSpaceOutputCell< G >::operator() ( const concepts::Cell cell)
inlinevirtual

Writes data of the given cell in the matrices.

Parameters
cellThe cell

Implements graphics::MatrixBasisOutputCell< Real >.

Reimplemented in graphics::MatrixBaseMeshCell.

Definition at line 190 of file matrixBasis.hh.

◆ operator()() [2/4]

template<class G = Real>
virtual void graphics::MatrixSpaceOutputCell< G >::operator() ( const concepts::Element< G > &  elm)
inlinevirtual

Writes data of the given element in the matrices.

Parameters
elmThe element

Reimplemented in graphics::MatrixBaseMeshCell.

Definition at line 183 of file matrixBasis.hh.

◆ operator()() [3/4]

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

Writes data of the given element in the matrices.

Implemented in graphics::MatrixBaseMeshCell, and graphics::MatrixSpaceOutputCell< Real >.

◆ operator()() [4/4]

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

◆ resetCounter()

template<class G = Real>
virtual void graphics::MatrixSpaceOutputCell< G >::resetCounter ( )
inlinevirtual

Resets all counter.

Reimplemented from graphics::MatrixBasisOutputCell< Real >.

Definition at line 227 of file matrixBasis.hh.

Member Data Documentation

◆ counter

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::counter

Number of stored points.

It is used in "void matlabBinaryMeshGraphics::writeMesh".

Definition at line 224 of file matrixBasis.hh.

◆ dense_ptr_

template<class G = Real>
DenseMatrixCollection<G>& graphics::MatrixSpaceOutputCell< G >::dense_ptr_
protected

The mapping that holds the matrices.

Definition at line 248 of file matrixBasis.hh.

◆ dim_

uint graphics::MatrixBasisOutputCell< Real >::dim_
protectedinherited

The space dimension of the mesh (1, 2, or 3)

Definition at line 143 of file matrixBasis.hh.

◆ indexOfAttributes

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfAttributes

Index of the (next) quad (used for the attributes).

Definition at line 207 of file matrixBasis.hh.

◆ indexOfEdgAttr

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfEdgAttr

Index of the (next) graphics edge (used for edge attribute)

Definition at line 210 of file matrixBasis.hh.

◆ indexOfEdgeMesh

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfEdgeMesh

Index of the (next) graphics edge in the edge mesh.

Definition at line 201 of file matrixBasis.hh.

◆ indexOfFaceAttr

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfFaceAttr

Index of the (next) graphics edge (used for edge attribute)

Definition at line 213 of file matrixBasis.hh.

◆ indexOfFaceMesh

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfFaceMesh

Index of the (next) graphics quad.

Definition at line 198 of file matrixBasis.hh.

◆ indexOfMesh

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfMesh

Index of the (next) graphics quad (the small one).

Definition at line 195 of file matrixBasis.hh.

◆ indexOfPoints

uint graphics::MatrixBasisOutputCell< Real >::indexOfPoints
inherited

Index of the (next) graphics point.

Definition at line 138 of file matrixBasis.hh.

◆ indexOfPolynomialDegree

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfPolynomialDegree

Index of the (next) quad (used for the polynomial degree)

Definition at line 219 of file matrixBasis.hh.

◆ indexOfVertexMesh

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfVertexMesh

Index of the (next) quad (used for the vertex mesh).

Definition at line 204 of file matrixBasis.hh.

◆ indexOfVtxAttr

template<class G = Real>
uint graphics::MatrixSpaceOutputCell< G >::indexOfVtxAttr

Index of the (next) quad (used for the vertex attribute)

Definition at line 216 of file matrixBasis.hh.

◆ type_


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