bar_point Class Reference

#include <bar_point.h>

Inheritance diagram for bar_point:
data_point< float, float >

Public Member Functions

 bar_point (const float x=0, const float height=0, const float width=0)
 
void set (const x_type x, const y_type height, const float width=1)
 
float width () const
 
float min_value () const
 
- Public Member Functions inherited from data_point< float, float >
 data_point (const x_type x=0, const y_type y=0)
 
float x () const
 
float y () const
 
float max_value () const
 
float min_value () const
 
void add (const x_type x, const y_type y)
 
void set (const x_type x, const y_type y)
 

Friends

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

Additional Inherited Members

- Public Types inherited from data_point< float, float >
typedef float x_type
 
typedef float y_type
 

Detailed Description

Bar data point

Constructor & Destructor Documentation

bar_point ( const float  x = 0,
const float  height = 0,
const float  width = 0 
)
inline

Constructor

Parameters
xx-coordinate
heightbar height
widthbar width

Member Function Documentation

void set ( const x_type  x,
const y_type  height,
const float  width = 1 
)
inline

Add a coordinate to the point

Parameters
xx-coordinate
heightheight of the bar
widthwidth of the bar

Friends And Related Function Documentation

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

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