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

#include <Whiteboard.h>

Inheritance diagram for ns_whiteboard::rect:
ns_whiteboard::graphic

Public Member Functions

 rect (const xy_coords &topLeftCoords, const xy_coords &bottomRightCoords, const color &c=black)
 
void Draw (display_type *d)
 
virtual ~rect ()
 
- Public Member Functions inherited from ns_whiteboard::graphic
 graphic ()
 
virtual ~graphic ()
 

Protected Attributes

xy_coords m_topLeftCoords
 
xy_coords m_bottomRightCoords
 
color m_color
 

Detailed Description

Class defining a rectangle. topLeftCoords (xy_coords): x-y coordinate of the top left corner of the rectangle. bottomRightCoords (xy_coords): coordinate of the bottom right corner of the rectangle. c (color): line color for the rectangle (def. black)

Constructor & Destructor Documentation

ns_whiteboard::rect::rect ( const xy_coords topLeftCoords,
const xy_coords bottomRightCoords,
const color c = black 
)
inline
Parameters
topLeftCoordsx-y coordinate of the top left corner of the rectangle
bottomRightCoordsx-y coordinate of the bottom right corner of the rectangle
cline color for the rectangle (def. black)
virtual ns_whiteboard::rect::~rect ( )
inlinevirtual

Member Function Documentation

void ns_whiteboard::rect::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

xy_coords ns_whiteboard::rect::m_bottomRightCoords
protected
color ns_whiteboard::rect::m_color
protected
xy_coords ns_whiteboard::rect::m_topLeftCoords
protected

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