Whiteboard
An interface and tools for visualizing large and complex datasets
Public Member Functions | Protected Attributes | List of all members
ns_whiteboard::line Class Reference

#include <Whiteboard.h>

Inheritance diagram for ns_whiteboard::line:
ns_whiteboard::graphic

Public Member Functions

 line (const xy_coords &startCoords, const xy_coords &stopCoords, const double width=1.0, const color &c=black)
 
void Draw (display_type *d)
 
xy_coords StartCoords () const
 
xy_coords StopCoords () const
 
double GetWidth () const
 
virtual ~line ()
 
- Public Member Functions inherited from ns_whiteboard::graphic
 graphic ()
 
virtual ~graphic ()
 

Protected Attributes

xy_coords m_startCoords
 
xy_coords m_stopCoords
 
double m_width
 
color m_color
 

Detailed Description

Class defining a line. startCoords (xy_coords): x-y coordinate of one end of the line. stopCoords (xy_coords): x-y coordiante of the other end of the line. width (double): width of the line (def. 1.0) c (color): color of the line (def. black)

Constructor & Destructor Documentation

ns_whiteboard::line::line ( const xy_coords startCoords,
const xy_coords stopCoords,
const double  width = 1.0,
const color c = black 
)
inline
virtual ns_whiteboard::line::~line ( )
inlinevirtual

Member Function Documentation

void ns_whiteboard::line::Draw ( display_type d)
inlinevirtual

Method to draw an object.

Parameters
dpointer to a display_type instantiating a particular graphics file format

Implements ns_whiteboard::graphic.

double ns_whiteboard::line::GetWidth ( ) const
inline
xy_coords ns_whiteboard::line::StartCoords ( ) const
inline
xy_coords ns_whiteboard::line::StopCoords ( ) const
inline

Member Data Documentation

color ns_whiteboard::line::m_color
protected
xy_coords ns_whiteboard::line::m_startCoords
protected
xy_coords ns_whiteboard::line::m_stopCoords
protected
double ns_whiteboard::line::m_width
protected

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