dune-grid  2.4.1
Public Types | Public Member Functions | Public Attributes | Protected Types | List of all members
Dune::GrapeDataDisplay< GridType > Class Template Reference

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

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

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. More...
 
template<class GridPartType >
 GrapeDataDisplay (const GridPartType &gridPart, const int myrank=-1)
 Constructor, make a GrapeDataDisplay for given grid. More...
 
 ~GrapeDataDisplay ()
 Desctructor. More...
 
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 More...
 
template<class DiscFuncType >
void addData (const DiscFuncType &func, double time=0.0, bool vector=false)
 add discrete function to display More...
 
template<class DiscFuncType >
void addData (const DiscFuncType &func, std::string name, double time, bool vector=false)
 add discrete function to display More...
 
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 More...
 
const GridType & getGrid () const
 return reference to Dune Grid More...
 

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

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
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(), Dune::GrapeDataDisplay< GridType >::display(), handleMesh(), and Dune::GrapeGridDisplay< GridType >::hmesh_.

Referenced by Dune::GrapeDataDisplay< GridType >::~GrapeDataDisplay().

template<class GridType >
void Dune::GrapeDataDisplay< GridType >::display ( )
inline
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(), addDataToHmesh(), datainfo::dimVal, handleMesh(), Dune::GrapeGridDisplay< GridType >::hmesh_, Dune::Alberta::max(), Dune::Alberta::min(), and datainfo::name.

Referenced by Dune::GrapeDataDisplay< GridType >::addData().

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

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: