Dune::GrapeDataDisplay< GridType > Class Template Reference
[Grape]

#include <dune/grid/io/visual/grapedatadisplay.hh>

Inheritance diagram for Dune::GrapeDataDisplay< GridType >:
Inheritance graph

List of all members.

Public Types

typedef GridType MyGridType
typedef
GridType::HierarchicIterator 
HierarchicIteratorType
typedef
GridType::Traits::LocalIdSet 
LocalIdSetType
typedef
GridType::Traits::LeafIndexSet 
LeafIndexSetType

Public Member Functions

 GrapeDataDisplay (const GridType &grid, const int myrank=-1)
 Constructor, make a GrapeDataDisplay for given grid.
template<class GridPartType >
 GrapeDataDisplay (const GridPartType &gridPart, const int myrank=-1)
 Constructor, make a GrapeDataDisplay for given grid.
 ~GrapeDataDisplay ()
 Desctructor.
template<class VectorType , class IndexSetType >
void displayVector (const std::string name, const VectorType &data, const IndexSetType &indexSet, const int polOrd, const unsigned int dimRange, bool continuous=false)
template<class DiscFuncType >
void dataDisplay (const DiscFuncType &func, bool vector=false)
void display ()
 display grid and data without grid mode
template<class DiscFuncType >
void addData (const DiscFuncType &func, double time=0.0, bool vector=false)
 add discrete function to display
template<class DiscFuncType >
void addData (const DiscFuncType &func, std::string name, double time, bool vector=false)
 add discrete function to display
template<class GV , int dimR, int polOrd>
void addData (const GrapeFunction< GV, dimR, polOrd > &function)
int myRank () const
 return rank of this display, for visualisation of parallel grid
const GridType & getGrid () const
 return reference to Dune Grid

Public Attributes

const GridType & grid_
const bool hasLevelIntersections_
void * gridPart_
void * indexSet_
const LocalIdSetTypelid_
const int myRank_
void * hmesh_
HierarchicIteratorList hierList_

Protected Types

typedef std::list
< HierarchicIteratorType * > 
HierarchicIteratorList
typedef
HierarchicIteratorList::iterator 
ListIteratorType

Detailed Description

template<class GridType>
class Dune::GrapeDataDisplay< GridType >

Todo:
Please doc me!

Member Typedef Documentation

template<class GridType >
typedef std::list<HierarchicIteratorType *> Dune::GrapeGridDisplay< GridType >::HierarchicIteratorList [protected, inherited]
template<class GridType >
typedef GridType::HierarchicIterator Dune::GrapeGridDisplay< GridType >::HierarchicIteratorType [inherited]
template<class GridType >
typedef GridType::Traits::LeafIndexSet Dune::GrapeGridDisplay< GridType >::LeafIndexSetType [inherited]
template<class GridType >
typedef HierarchicIteratorList::iterator Dune::GrapeGridDisplay< GridType >::ListIteratorType [protected, inherited]
template<class GridType >
typedef GridType::Traits::LocalIdSet Dune::GrapeGridDisplay< GridType >::LocalIdSetType [inherited]
template<class GridType >
typedef GridType Dune::GrapeDataDisplay< GridType >::MyGridType

Constructor & Destructor Documentation

template<class GridType >
Dune::GrapeDataDisplay< GridType >::GrapeDataDisplay ( const GridType &  grid,
const int  myrank = -1 
) [inline]

Constructor, make a GrapeDataDisplay for given grid.

template<class GridType >
template<class GridPartType >
Dune::GrapeDataDisplay< GridType >::GrapeDataDisplay ( const GridPartType &  gridPart,
const int  myrank = -1 
) [inline]

Constructor, make a GrapeDataDisplay for given grid.

template<class GridType >
Dune::GrapeDataDisplay< GridType >::~GrapeDataDisplay (  )  [inline]

Member Function Documentation

template<class GridType >
template<class DiscFuncType >
void Dune::GrapeDataDisplay< GridType >::addData ( const DiscFuncType &  func,
double  time = 0.0,
bool  vector = false 
) [inline]
template<class GridType >
template<class DiscFuncType >
void Dune::GrapeDataDisplay< GridType >::addData ( const DiscFuncType &  func,
std::string  name,
double  time,
bool  vector = false 
) [inline]

add discrete function to display

References Dune::GrapeDataDisplay< GridType >::addData().

template<class GridType >
template<class GV , int dimR, int polOrd>
void Dune::GrapeDataDisplay< GridType >::addData ( const GrapeFunction< GV, dimR, polOrd > &  function  )  [inline]
template<class GridType >
template<class DiscFuncType >
void Dune::GrapeDataDisplay< GridType >::dataDisplay ( const DiscFuncType &  func,
bool  vector = false 
) [inline]

Calls the display of the grid and draws the discrete function if discretefunction is NULL, then only the grid is displayed

References Dune::GrapeDataDisplay< GridType >::addData(), handleMesh(), and Dune::GrapeGridDisplay< GridType >::hmesh_.

template<class GridType >
void Dune::GrapeDataDisplay< GridType >::display (  )  [inline]

display grid and data without grid mode

Reimplemented from Dune::GrapeGridDisplay< GridType >.

References handleMesh(), and Dune::GrapeGridDisplay< GridType >::hmesh_.

template<class GridType >
template<class VectorType , class IndexSetType >
void Dune::GrapeDataDisplay< GridType >::displayVector ( const std::string  name,
const VectorType &  data,
const IndexSetType &  indexSet,
const int  polOrd,
const unsigned int  dimRange,
bool  continuous = false 
) [inline]

display data stored in vector

Parameters:
name Name of data (i.e. solution)
data Data vector storing data to display
indexSet The corresponding index set related to the data
polOrd polynominal order of Lagrangespace, only 0 and 1 allowed at the momnent
continuous continuous or not (i.e polOrd = 0 ==> discontinuous) default is discontinuous

References Dune::Alberta::abs(), handleMesh(), Dune::GrapeGridDisplay< GridType >::hmesh_, Dune::Alberta::max(), and Dune::Alberta::min().

template<class GridType >
const GridType & Dune::GrapeGridDisplay< GridType >::getGrid (  )  const [inline, inherited]

return reference to Dune Grid

References Dune::GrapeGridDisplay< GridType >::grid_.

template<class GridType >
int Dune::GrapeGridDisplay< GridType >::myRank (  )  const [inline, inherited]

return rank of this display, for visualisation of parallel grid

References Dune::GrapeGridDisplay< GridType >::myRank_.


Member Data Documentation

template<class GridType >
const GridType& Dune::GrapeGridDisplay< GridType >::grid_ [inherited]
template<class GridType >
void* Dune::GrapeGridDisplay< GridType >::gridPart_ [inherited]
template<class GridType >
const bool Dune::GrapeGridDisplay< GridType >::hasLevelIntersections_ [inherited]
template<class GridType >
HierarchicIteratorList Dune::GrapeGridDisplay< GridType >::hierList_ [inherited]
template<class GridType >
void* Dune::GrapeGridDisplay< GridType >::indexSet_ [inherited]
template<class GridType >
const LocalIdSetType& Dune::GrapeGridDisplay< GridType >::lid_ [inherited]
template<class GridType >
const int Dune::GrapeGridDisplay< GridType >::myRank_ [inherited]

The documentation for this class was generated from the following files:

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].