Whiteboard
An interface and tools for visualizing large and complex datasets
Public Member Functions | Private Attributes | List of all members
Density Class Reference

#include <Density.h>

Public Member Functions

 Density (int nX, int nY, double saturate=-1., const color &low=color(0.99, 0.99, 0.99), const color &mid=color(0.99, 0.99, 0), const color &hi=color(0.99, 0., 0.))
 
void Add (double x, double y, double weight=1., bool bNormalize=false)
 
void Draw (ns_whiteboard::whiteboard &board, const ns_whiteboard::xy_coords &where, double pointsPerPixel)
 

Private Attributes

svec< svec< double > > m_dens
 
double m_saturate
 
double m_max
 
color m_lo
 
color m_mi
 
color m_hi
 

Constructor & Destructor Documentation

Density::Density ( int  nX,
int  nY,
double  saturate = -1.,
const color low = color(0.99, 0.99, 0.99),
const color mid = color(0.99, 0.99, 0),
const color hi = color(0.99, 0., 0.) 
)
inline

Member Function Documentation

void Density::Add ( double  x,
double  y,
double  weight = 1.,
bool  bNormalize = false 
)
inline
void Density::Draw ( ns_whiteboard::whiteboard board,
const ns_whiteboard::xy_coords where,
double  pointsPerPixel 
)
inline

Member Data Documentation

svec< svec < double > > Density::m_dens
private
color Density::m_hi
private
color Density::m_lo
private
double Density::m_max
private
color Density::m_mi
private
double Density::m_saturate
private

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