Public Member Functions | Private Attributes

LibGeoDecomp::Plotter< CELL, CELL_PLOTTER > Class Template Reference

#include <plotter.h>

Collaboration diagram for LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Plotter (const Coord< 2 > &cellDim=Coord< 2 >(32, 32), const CELL_PLOTTER &cellPlotter=CELL_PLOTTER())
template<typename PAINTER >
void plotGrid (const typename Writer< CELL >::GridType &grid, PAINTER &painter) const
template<typename PAINTER >
void plotGridInViewport (const typename Writer< CELL >::GridType &grid, PAINTER &painter, const CoordBox< 2 > &viewport) const
 plots a part of the grid.
const Coord< 2 > & getCellDim ()
Coord< 2 > calcImageDim (const Coord< 2 > gridDim)

Private Attributes

Coord< 2 > cellDim
CELL_PLOTTER cellPlotter

template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
class LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >


Constructor & Destructor Documentation

template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >::Plotter ( const Coord< 2 > &  cellDim = Coord<2>(32, 32),
const CELL_PLOTTER &  cellPlotter = CELL_PLOTTER() 
) [inline, explicit]

Member Function Documentation

template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
Coord<2> LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >::calcImageDim ( const Coord< 2 >  gridDim  )  [inline]
template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
const Coord<2>& LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >::getCellDim (  )  [inline]
template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
template<typename PAINTER >
void LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >::plotGrid ( const typename Writer< CELL >::GridType &  grid,
PAINTER &  painter 
) const [inline]
template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
template<typename PAINTER >
void LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >::plotGridInViewport ( const typename Writer< CELL >::GridType &  grid,
PAINTER &  painter,
const CoordBox< 2 > &  viewport 
) const [inline]

plots a part of the grid.

Dimensions are given in pixel coordinates. This is useful to e.g. render a panned excerpt.

Referenced by LibGeoDecomp::Plotter< CELL_TYPE, CELL_PLOTTER >::plotGrid().


Member Data Documentation

template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
Coord<2> LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >::cellDim [private]
template<typename CELL, class CELL_PLOTTER = SimpleCellPlotter<CELL>>
CELL_PLOTTER LibGeoDecomp::Plotter< CELL, CELL_PLOTTER >::cellPlotter [private]

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