graphics::DataDXCounts Class Referenceabstract

Graphics in OpenDX - point counter. More...

#include <dataDX.hh>

Inheritance diagram for graphics::DataDXCounts:
concepts::CellPostprocess< Real > concepts::OutputOperator

Public Member Functions

void add (uint a)
 Increments the counter for the points by a. More...
 
uint counts () const
 Returns the number of points. More...
 
 DataDXCounts (VertexList *vtxList=0)
 Constructor. More...
 
virtual void operator() (const concepts::Cell &)
 Application operator. More...
 
virtual void operator() (const concepts::Element< Real > &elm)
 
virtual void operator() (const Element< Real > &elm)=0
 Application operator. More...
 

Protected Member Functions

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

Private Attributes

uint counts_
 Counter for the number of points. More...
 
VertexListvtxList_
 List of the vertices. More...
 

Detailed Description

Graphics in OpenDX - point counter.

This class is responsible of counting the number of points to write to the file.

You should not use this class directly, Instead, use the executor class DataDX or (even simpler) its trampoline function drawDataDX (which hides the template parameter of DataDX).

See also
DataDX the executor class
drawDataDX the trampoline function of DataDX
Author
Philipp Frauenfelder, 2000

Definition at line 208 of file dataDX.hh.

Constructor & Destructor Documentation

◆ DataDXCounts()

graphics::DataDXCounts::DataDXCounts ( VertexList vtxList = 0)

Constructor.

Parameters
vtxListList of the vertices and their coordinates. This is only needed if the solution should also be plotted in the corners of the elements. Therefore, they are also counted. Give a 0 pointer if you don't want the corners to be counted.

Member Function Documentation

◆ add()

void graphics::DataDXCounts::add ( uint  a)
inline

Increments the counter for the points by a.

Definition at line 222 of file dataDX.hh.

◆ counts()

uint graphics::DataDXCounts::counts ( ) const

Returns the number of points.

◆ info()

◆ operator()() [1/3]

virtual void graphics::DataDXCounts::operator() ( const concepts::Cell cell)
inlinevirtual

Application operator.

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

Parameters
cellCurrent cell

Implements concepts::CellPostprocess< Real >.

Definition at line 228 of file dataDX.hh.

◆ operator()() [2/3]

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

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

Member Data Documentation

◆ counts_

uint graphics::DataDXCounts::counts_
private

Counter for the number of points.

Definition at line 231 of file dataDX.hh.

◆ vtxList_

VertexList* graphics::DataDXCounts::vtxList_
private

List of the vertices.

Definition at line 234 of file dataDX.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