Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofGraph Class Reference

#include <oofGrphs.h>

Inheritance diagram for oofGraph:

Inheritance graph
[legend]
Collaboration diagram for oofGraph:

Collaboration graph
[legend]
List of all members.

Detailed Description

Graph class subclassed to draw different graph types.

Subclasses take at least one dbView to effectively provide an array directly from the database. Has interesting virtual drawing space architecture which makes it react to scaling by trying to rescale nested items.


Public Types

typedef RECT Rect

Public Member Functions

 oofGraph (oofGraphSettings *adoptedSettings=0)
 oofGraph (const oofGraph &rhs)
virtual ~oofGraph ()
virtual oofGraphclone () const=0
virtual void finishConstruction (dbView *, const char *theTitle, unsigned long yAxisHeight)=0
virtual void finishConstructionWithPresets ()
void draw ()
void describe (std::ostream &os) const
void setView (dbView *)
dbViewgetView ()
void setTitle (const char *)
const char * getTitle ()
const char * getType ()
void setPaneRect (Rect inRect)
void setPaneRect (oofRect inRect)
void clearTransform ()
void setDrawStyles (oofDrawStyleSet &)
void setDrawStyles (oofDrawStyleArray &)
void setStyleToMono ()
void setStyleToColor ()
bool drawStylesWereSet () const
const oofGraphSettingssettings () const
oofGraphSettingsgetLocalSettings ()
void setCurrentDC (HDC hdc)
const HDC getCurrentDC ()
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 &)
const oofDrawStyledrawStyle () const

Static Public Member Functions

oofGraphcurrentGraph ()
oofGraphSettingsdefaultSettings ()

Protected Member Functions

virtual void DrawSelf ()
virtual void DescribeSelf (std::ostream &os) const
void becomeCurrent ()

Protected Attributes

oofPlotBits mPlotBits
oofSeriesSet mSeriesSet
bool mIsMono
oofGraphSettingsmSettings
bool mDrawStylesWereSet
dbViewmView
OOF_String mTitle
OOF_String mType
oofDrawStylemDrawStyle

Static Protected Attributes

oofGraphsCurrentGraph


Member Typedef Documentation

typedef RECT oofGraph::Rect
 


Constructor & Destructor Documentation

oofGraph::oofGraph oofGraphSettings adoptedSettings = 0  ) 
 

oofGraph::oofGraph const oofGraph rhs  ) 
 

oofGraph::~oofGraph  )  [virtual]
 


Member Function Documentation

void oofGraph::becomeCurrent  )  [protected]
 

void oofGraph::clearTransform  )  [inline]
 

virtual oofGraph* oofGraph::clone  )  const [pure virtual]
 

Implemented in oofColumnGraph, oofPointGraph, oofLineGraph, oofXYGraph, oofBarGraph, oofStackedBarGraph, oofOrdinalStackedBarGraph, and oofPieGraph.

oofGraph * oofGraph::currentGraph  )  [static]
 

oofGraphSettings * oofGraph::defaultSettings  )  [static]
 

void oofGraph::describe std::ostream &  os  )  const
 

void oofGraph::DescribeSelf std::ostream &  os  )  const [protected, virtual]
 

void oofGraph::draw  ) 
 

void oofGraph::DrawSelf  )  [protected, virtual]
 

const oofDrawStyle * oofColorable::drawStyle  )  const [inline, inherited]
 

bool oofGraph::drawStylesWereSet  )  const [inline]
 

virtual void oofGraph::finishConstruction dbView ,
const char *  theTitle,
unsigned long  yAxisHeight
[pure virtual]
 

Implemented in oofColumnGraph, oofPointGraph, oofLineGraph, oofXYGraph, oofBarGraph, oofStackedBarGraph, oofOrdinalStackedBarGraph, and oofPieGraph.

void oofGraph::finishConstructionWithPresets  )  [virtual]
 

const HDC oofGraph::getCurrentDC  )  [inline]
 

oofGraphSettings * oofGraph::getLocalSettings  ) 
 

const char * oofGraph::getTitle  ) 
 

const char * oofGraph::getType  ) 
 

dbView * oofGraph::getView  ) 
 

void oofGraph::setCurrentDC HDC  hdc  )  [inline]
 

void oofColorable::setDrawStyle const oofDrawStyle  )  [inline, inherited]
 

void oofColorable::setDrawStyle const oofColor fg = oofColor::Black,
const oofPattern pat = oofPattern::gray,
const oofPattern mono = oofPattern::gray,
const oofColor bg = oofColor::White
[inline, inherited]
 

void oofGraph::setDrawStyles oofDrawStyleArray  ) 
 

void oofGraph::setDrawStyles oofDrawStyleSet  ) 
 

void oofGraph::setPaneRect oofRect  inRect  ) 
 

void oofGraph::setPaneRect Rect  inRect  ) 
 

void oofGraph::setStyleToColor  ) 
 

void oofGraph::setStyleToMono  ) 
 

const oofGraphSettings * oofGraph::settings  )  const
 

void oofGraph::setTitle const char *   ) 
 

void oofGraph::setView dbView  ) 
 


Member Data Documentation

oofDrawStyle* oofColorable::mDrawStyle [protected, inherited]
 

bool oofGraph::mDrawStylesWereSet [protected]
 

bool oofGraph::mIsMono [protected]
 

oofPlotBits oofGraph::mPlotBits [protected]
 

oofSeriesSet oofGraph::mSeriesSet [protected]
 

oofGraphSettings* oofGraph::mSettings [protected]
 

OOF_String oofGraph::mTitle [protected]
 

OOF_String oofGraph::mType [protected]
 

dbView* oofGraph::mView [protected]
 

oofGraph * oofGraph::sCurrentGraph [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:37:52 2004 for OOFILE by doxygen 1.3.5