heatmap_data Class Reference

#include <heatmap_data.h>

Inheritance diagram for heatmap_data:
chart_data flowcell_data

Public Member Functions

 heatmap_data ()
 
virtual ~heatmap_data ()
 
float at (const size_t row, const size_t col) const INTEROP_THROW_SPEC((model
 
float at (const size_t idx) const INTEROP_THROW_SPEC((model
 
float operator[] (const size_t idx) const INTEROP_THROW_SPEC((model
 
float operator() (const size_t row, const size_t col) const INTEROP_THROW_SPEC((model
 
float & operator() (const size_t row, const size_t col) INTEROP_THROW_SPEC((model
 
size_t row_count () const
 
size_t column_count () const
 
size_t length () const
 
bool empty () const
 
void set_buffer (float *data) INTEROP_THROW_SPEC((model
 
void set_buffer (float *data, const size_t rows, const size_t cols, const float default_val=std::numeric_limits< float >::quiet_NaN())
 
void resize (const size_t rows, const size_t cols, const float default_val=std::numeric_limits< float >::quiet_NaN())
 
void clear ()
 
size_t index_of (const size_t row, const size_t col) const
 
- Public Member Functions inherited from chart_data
void set_axes (const axes &xyaxes)
 
void set_xaxis (const axis &xaxes)
 
void set_yaxis (const axis &yaxes)
 
void set_xlabel (const std::string &label)
 
void set_ylabel (const std::string &label)
 
void set_range (const float xmin, const float xmax, const float ymin, const float ymax)
 
void set_xrange (const float vmin, const float vmax)
 
void set_yrange (const float vmin, const float vmax)
 
void set_title (const std::string &title)
 
void clear ()
 
const axisx_axis () const
 
const axisy_axis () const
 
const std::string & title () const
 
const axesxyaxes () const
 

Friends

std::ostream & operator<< (std::ostream &out, const heatmap_data &data)
 
std::istream & operator>> (std::istream &in, heatmap_data &data)
 

Detailed Description

Encapsulates all data for a heatmap

Constructor & Destructor Documentation

heatmap_data ( )
inline

Constructor

virtual ~heatmap_data ( )
inlinevirtual

Destructor

Member Function Documentation

void clear ( )
inline

Clear the data

size_t index_of ( const size_t  row,
const size_t  col 
) const
inline

Get the index of the row and column in the array

Parameters
rowrow index
colcolumn index
Returns
index in array
void resize ( const size_t  rows,
const size_t  cols,
const float  default_val = std::numeric_limits<float>::quiet_NaN() 
)
inline

Resize the heat map to the given number of rows and columns

Parameters
rowsnumber of rows
colsnumber of columns
default_valvalue to fill heatmap
void set_buffer ( float *  data)
inline

Resize the heat map to the given number of rows and columns

Parameters
datause the given buffer to back the heat map
void set_buffer ( float *  data,
const size_t  rows,
const size_t  cols,
const float  default_val = std::numeric_limits<float>::quiet_NaN() 
)
inline

Resize the heat map to the given number of rows and columns

Parameters
datause the given buffer to back the heat map
rowsnumber of rows
colsnumber of columns
default_valvalue to fill heatmap

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const heatmap_data data 
)
friend
std::istream& operator>> ( std::istream &  in,
heatmap_data data 
)
friend

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