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

#include <Whiteboard.h>

Inheritance diagram for ns_whiteboard::arc:
ns_whiteboard::graphic

Public Member Functions

 arc (const xy_coords &coords, const double radius, const double startAngle, const double stopAngle, const double width=1.0, const color &c=black)
 
void Draw (display_type *d)
 
virtual ~arc ()
 
- Public Member Functions inherited from ns_whiteboard::graphic
 graphic ()
 
virtual ~graphic ()
 

Protected Attributes

xy_coords m_coords
 
double m_radius
 
double m_startAngle
 
double m_stopAngle
 
double m_width
 
color m_color
 

Detailed Description

Class defining an arc. coords (xy_coords): x-y coordinates of the arc's center of curvature radius (double) : radius of curvature startAngle, stopAngle (double): measured counterclockwise from positive x-axis width (double): width of the line making the arc (def. 1.0) c (color): color of the arc (def. black)

Constructor & Destructor Documentation

ns_whiteboard::arc::arc ( const xy_coords coords,
const double  radius,
const double  startAngle,
const double  stopAngle,
const double  width = 1.0,
const color c = black 
)
inline
Parameters
radiusradius of curvature
startAnglemeasured counterclockwise from positive x-axis
stopAnglemeasured counterclockwise from positive x-axis
widthwidth of the line making the arc (def. 1.0)
ccolor of the arc (def. black)
virtual ns_whiteboard::arc::~arc ( )
inlinevirtual

Member Function Documentation

void ns_whiteboard::arc::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.

Member Data Documentation

color ns_whiteboard::arc::m_color
protected
xy_coords ns_whiteboard::arc::m_coords
protected
double ns_whiteboard::arc::m_radius
protected
double ns_whiteboard::arc::m_startAngle
protected
double ns_whiteboard::arc::m_stopAngle
protected
double ns_whiteboard::arc::m_width
protected

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