graphics::DataDXConnections Class Referenceabstract

Graphics in OpenDX - connections. More...

#include <dataDX.hh>

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

Public Member Functions

void add (uint a)
 Increments the counter for the quads or cubes by a. More...
 
uint counts () const
 Returns the number of quads or cubes which have to be built with connections. More...
 
 DataDXConnections (std::ostream &os, const uint count, VertexList *vtxList=0, const uint dim=2)
 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...
 
void write (const int x) const
 Writes integer in binary format to the output stream. More...
 
virtual ~DataDXConnections ()
 

Protected Member Functions

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

Private Attributes

uint counts_
 Counts the number of non-corner points in former elements. More...
 
const uint dim_
 Dimension. More...
 
std::ostream & os_
 Output stream. More...
 

Detailed Description

Graphics in OpenDX - connections.

This class writes the connections of the points (given by the coordinates) 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 316 of file dataDX.hh.

Constructor & Destructor Documentation

◆ DataDXConnections()

graphics::DataDXConnections::DataDXConnections ( std::ostream &  os,
const uint  count,
VertexList vtxList = 0,
const uint  dim = 2 
)

Constructor.

Parameters
osOutput stream where the OpenDX data should be written to
countNumber of quadrilaterals or hexahedrons to be built
vtxListList of the vertices and their coordinates
dimSpatial dimension of the problem

◆ ~DataDXConnections()

virtual graphics::DataDXConnections::~DataDXConnections ( )
virtual

Member Function Documentation

◆ add()

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

Increments the counter for the quads or cubes by a.

Definition at line 333 of file dataDX.hh.

◆ counts()

uint graphics::DataDXConnections::counts ( ) const
inline

Returns the number of quads or cubes which have to be built with connections.

Definition at line 338 of file dataDX.hh.

◆ info()

◆ operator()() [1/3]

virtual void graphics::DataDXConnections::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 330 of file dataDX.hh.

◆ operator()() [2/3]

virtual void graphics::DataDXConnections::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 >.

◆ write()

void graphics::DataDXConnections::write ( const int  x) const

Writes integer in binary format to the output stream.

Member Data Documentation

◆ counts_

uint graphics::DataDXConnections::counts_
private

Counts the number of non-corner points in former elements.

Definition at line 347 of file dataDX.hh.

◆ dim_

const uint graphics::DataDXConnections::dim_
private

Dimension.

Definition at line 350 of file dataDX.hh.

◆ os_

std::ostream& graphics::DataDXConnections::os_
private

Output stream.

Definition at line 344 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