paintable Class Reference

#include <paintable.h>

Inheritance diagram for paintable:

Inheritance graph
[legend]
Collaboration diagram for paintable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 paintable (canvas &to_draw_on, const c_point &origin, const color &foreground=colors::WHITE, bool attach=true)
virtual ~paintable ()
canvastarget () const
void draw ()
void erase ()
virtual c_rectangle dimensions () const=0
virtual void plot (const color &to_draw_in)=0
bool filled () const
virtual void set_filled (bool i_am_to_be_filled=true)
color foreground () const
virtual void foreground (const color &new_foreground)
virtual void set_origin (const c_point &new_origin)

Detailed Description

Definition at line 25 of file paintable.h.


Constructor & Destructor Documentation

paintable::paintable ( canvas to_draw_on,
const c_point &  origin,
const color foreground = colors::WHITE,
bool  attach = true 
)

Definition at line 24 of file paintable.cpp.

References foreground().

paintable::~paintable (  )  [virtual]

Definition at line 30 of file paintable.cpp.


Member Function Documentation

canvas & paintable::target (  )  const

Definition at line 34 of file paintable.cpp.

Referenced by bitmap::draw(), visible_line::plot(), ring::plot(), oval::plot(), dot::plot(), and box::plot().

void paintable::draw (  )  [virtual]

Implements drawable.

Reimplemented in bitmap.

Definition at line 42 of file paintable.cpp.

References drawable::_foreground, plot(), drawable::set_visible(), and drawable::visible().

Referenced by house::draw(), visible_line::set_origin(), set_origin(), and box::set_origin().

void paintable::erase (  )  [virtual]

Implements drawable.

Reimplemented in bitmap.

Definition at line 51 of file paintable.cpp.

References worker::background(), plot(), drawable::set_invisible(), and drawable::visible().

Referenced by house::erase(), visible_line::set_origin(), set_origin(), and box::set_origin().

virtual c_rectangle paintable::dimensions (  )  const [pure virtual]

Implements drawable.

Implemented in box, dot, oval, ring, and visible_line.

virtual void paintable::plot ( const color to_draw_in  )  [pure virtual]

Implemented in box, dot, oval, ring, and visible_line.

Referenced by draw(), and erase().

bool paintable::filled (  )  const

Definition at line 38 of file paintable.cpp.

Referenced by ring::plot(), oval::plot(), and box::plot().

void paintable::set_filled ( bool  i_am_to_be_filled = true  )  [virtual]

Definition at line 36 of file paintable.cpp.

color paintable::foreground (  )  const

Reimplemented from drawable.

Definition at line 40 of file paintable.cpp.

References drawable::foreground().

Referenced by paintable().

void paintable::foreground ( const color new_foreground  )  [virtual]

Reimplemented from drawable.

Definition at line 75 of file paintable.cpp.

References palette::add(), worker::colormap(), and drawable::foreground().

void paintable::set_origin ( const c_point &  new_origin  )  [virtual]

Reimplemented from drawable.

Reimplemented in box, and visible_line.

Definition at line 82 of file paintable.cpp.

References draw(), erase(), drawable::set_origin(), and drawable::visible().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 04:30:54 2008 for HOOPLE Libraries by  doxygen 1.5.1