OOFILE  1.9
Public Member Functions | Protected Attributes | List of all members
oofColorable Class Reference

Base for anything that can be drawn in color. More...

#include <oofClrbl.h>

Inheritance diagram for oofColorable:
Inheritance graph
[legend]
Collaboration diagram for oofColorable:
Collaboration graph
[legend]

Public Member Functions

const oofDrawStyledrawStyle () const
 
 oofColorable ()
 
 oofColorable (const oofColorable &)
 
 oofColorable (const oofDrawStyle &inPattern)
 
void setDrawStyle (const oofColor &fg=oofColor::Black, const oofPattern &pat=oofPattern::gray, const oofPattern &mono=oofPattern::gray, const oofColor &bg=oofColor::White)
 
void setDrawStyle (const oofDrawStyle &)
 
virtual ~oofColorable ()
 

Protected Attributes

oofDrawStylemDrawStyle
 

Detailed Description

Base for anything that can be drawn in color.

Used primarily in graphs.

Definition at line 15 of file oofClrbl.h.

Constructor & Destructor Documentation

oofColorable::oofColorable ( )

Definition at line 30 of file oofClrbl.cpp.

oofColorable::oofColorable ( const oofColorable rhs)

Definition at line 40 of file oofClrbl.cpp.

References drawStyle(), and mDrawStyle.

oofColorable::oofColorable ( const oofDrawStyle inPattern)

Definition at line 59 of file oofClrbl.cpp.

References mDrawStyle.

oofColorable::~oofColorable ( )
virtual

Definition at line 49 of file oofClrbl.cpp.

References mDrawStyle.

Member Function Documentation

const oofDrawStyle * oofColorable::drawStyle ( ) const
inline

Definition at line 60 of file oofClrbl.h.

References mDrawStyle.

Referenced by oofGeo::draw(), and oofColorable().

void oofColorable::setDrawStyle ( const oofColor fg = oofColor::Black,
const oofPattern pat = oofPattern::gray,
const oofPattern mono = oofPattern::gray,
const oofColor bg = oofColor::White 
)
inline

Definition at line 40 of file oofClrbl.h.

References mDrawStyle.

void oofColorable::setDrawStyle ( const oofDrawStyle inDrawStyle)
inline

Definition at line 48 of file oofClrbl.h.

References mDrawStyle.

Member Data Documentation

oofDrawStyle* oofColorable::mDrawStyle
protected

Definition at line 30 of file oofClrbl.h.

Referenced by drawStyle(), oofColorable(), oofGraph::oofGraph(), setDrawStyle(), and ~oofColorable().


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