openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | List of all members
matrixgraph_plotter< VEC > Class Template Reference

Ascii matrix graph plotter. More...

#include <asciiPlotter.hpp>

Collaboration diagram for matrixgraph_plotter< VEC >:

Public Member Functions

 matrixgraph_plotter ()
 empty constructor More...
 
 matrixgraph_plotter (const unsigned int rows, const unsigned int cols)
 Constructor specifying the canvas size. More...
 
void reset ()
 Clear the canvas. More...
 
void setSize (const unsigned int rows, const unsigned int cols)
 Set new size and clear the canvas. More...
 
void print (const VEC &cnt, const VEC &col, char s)
 Print a matrix graph to stdout. More...
 

Detailed Description

template<class VEC>
class matrixgraph_plotter< VEC >

Ascii matrix graph plotter.

Template Parameters
VECvector class that offers a basic std::vector-like API.

Definition at line 365 of file asciiPlotter.hpp.

Constructor & Destructor Documentation

◆ matrixgraph_plotter() [1/2]

template<class VEC>
matrixgraph_plotter< VEC >::matrixgraph_plotter ( )
inline

empty constructor

Definition at line 400 of file asciiPlotter.hpp.

◆ matrixgraph_plotter() [2/2]

template<class VEC>
matrixgraph_plotter< VEC >::matrixgraph_plotter ( const unsigned int  rows,
const unsigned int  cols 
)
inline

Constructor specifying the canvas size.

Parameters
rowsNumber of rows
colsNumber of cols

Definition at line 409 of file asciiPlotter.hpp.

Member Function Documentation

◆ print()

template<class VEC>
void matrixgraph_plotter< VEC >::print ( const VEC &  cnt,
const VEC &  col,
char  s 
)
inline

Print a matrix graph to stdout.

Parameters
cntRow counts of the matrix graph
colColumn indices of the matrix graph
sCharacter used for drawing.

Definition at line 447 of file asciiPlotter.hpp.

Here is the caller graph for this function:

◆ reset()

template<class VEC>
void matrixgraph_plotter< VEC >::reset ( )
inline

Clear the canvas.

Definition at line 417 of file asciiPlotter.hpp.

◆ setSize()

template<class VEC>
void matrixgraph_plotter< VEC >::setSize ( const unsigned int  rows,
const unsigned int  cols 
)
inline

Set new size and clear the canvas.

Parameters
rowsNumber of rows
colsNumber of cols

Definition at line 431 of file asciiPlotter.hpp.


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