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

#include <Compounds.h>

Public Member Functions

 Arrow (double size_off=8., double size_back=10., 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)
 

Private Attributes

double m_width
 
double m_size_off
 
double m_size_back
 
color m_col
 

Detailed Description

Draw an arrow.

Constructor & Destructor Documentation

Arrow::Arrow ( double  size_off = 8.,
double  size_back = 10.,
double  width = 1.,
const color color = color(0, 0, 0) 
)
inline
Parameters
size_offdistance off the shaft for end of arrowhead (pts)
size_backdistance back from the end of the shaft for the end of the arrowhead (pts)
widthline width for the arrow
colorcolor of the arrow

Member Function Documentation

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

Method to draw an arrow.

Parameters
boardwhiteboard to display the arrow on
fromstarting coordinates of the arrow
toending coordinates of the arrow

Member Data Documentation

color Arrow::m_col
private
double Arrow::m_size_back
private
double Arrow::m_size_off
private
double Arrow::m_width
private

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