dune-grid  2.2.0
Public Types | Public Member Functions | Public Attributes | Protected Types
Dune::GrapeDataDisplay< GridType > Class Template Reference

#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
protectedinherited
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
protectedinherited
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

Desctructor.

References deleteFunctions().


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

add discrete function to display

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

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 handleMesh().

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

display grid and data without grid mode

Reimplemented from Dune::GrapeGridDisplay< GridType >.

References handleMesh().

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:
nameName of data (i.e. solution)
dataData vector storing data to display
indexSetThe corresponding index set related to the data
polOrdpolynominal order of Lagrangespace, only 0 and 1 allowed at the momnent
dimRangedimension of the result data (scalar: 1)
continuouscontinuous or not (i.e polOrd = 0 ==> discontinuous) default is discontinuous

References Dune::Alberta::abs(), handleMesh(), Dune::Alberta::max(), and Dune::Alberta::min().

template<class GridType >
const GridType & Dune::GrapeGridDisplay< GridType >::getGrid ( ) const
inlineinherited

return reference to Dune Grid

template<class GridType >
int Dune::GrapeGridDisplay< GridType >::myRank ( ) const
inlineinherited

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 >::hmesh_
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: