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

#include <Compounds.h>

Public Member Functions

 Box (double width=1., const color &color=color(0, 0, 0))
 
void Draw (ns_whiteboard::whiteboard &board, const ns_whiteboard::xy_coords &from, const ns_whiteboard::xy_coords &to)
 
void Draw (ns_whiteboard::whiteboard &board, const ns_whiteboard::xy_coords &a, const ns_whiteboard::xy_coords &b, const ns_whiteboard::xy_coords &c, const ns_whiteboard::xy_coords &d)
 

Private Attributes

double m_width
 
color m_col
 

Detailed Description

Draw a box.

Constructor & Destructor Documentation

Box::Box ( double  width = 1.,
const color color = color(0, 0, 0) 
)
inline
Parameters
widthline width for the box
colorline color for the box

Member Function Documentation

void Box::Draw ( ns_whiteboard::whiteboard board,
const ns_whiteboard::xy_coords from,
const ns_whiteboard::xy_coords to 
)
inline

Method to draw a box defined by two corners.

Parameters
boardwhiteboard to display on
fromstarting corner of the box
toopposite corner of the box
void Box::Draw ( ns_whiteboard::whiteboard board,
const ns_whiteboard::xy_coords a,
const ns_whiteboard::xy_coords b,
const ns_whiteboard::xy_coords c,
const ns_whiteboard::xy_coords d 
)
inline

Method to draw a box given the coordinates of the corners.

Parameters
boardwhiteboard to display on
afirst corner of box
bsecond corner of box
cthird corner of box
dfourth corner of box

Member Data Documentation

color Box::m_col
private
double Box::m_width
private

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