OOFILE  1.9
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
oofGraph Class Referenceabstract

Graph class subclassed to draw different graph types. More...

#include <oofGrphs.h>

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

Public Member Functions

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

Static Public Member Functions

static oofGraphcurrentGraph ()
 
static oofGraphSettingsdefaultSettings ()
 

Protected Member Functions

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

Protected Attributes

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

Static Protected Attributes

static oofGraphsCurrentGraph
 

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.

Definition at line 71 of file oofGrphs.h.

Constructor & Destructor Documentation

oofGraph::oofGraph ( oofGraphSettings adoptedSettings = 0)

Definition at line 57 of file oofGrphs.cpp.

References becomeCurrent(), and oofColorable::mDrawStyle.

oofGraph::oofGraph ( const oofGraph rhs)

Definition at line 69 of file oofGrphs.cpp.

oofGraph::~oofGraph ( )
virtual

Definition at line 73 of file oofGrphs.cpp.

References mSettings, and mView.

Member Function Documentation

void oofGraph::becomeCurrent ( )
protected

Definition at line 259 of file oofGrphs.cpp.

References sCurrentGraph.

Referenced by draw(), and oofGraph().

void oofGraph::clearTransform ( )
inline

Definition at line 93 of file oofGrphs.h.

virtual oofGraph* oofGraph::clone ( ) const
pure virtual
oofGraph * oofGraph::currentGraph ( )
static
oofGraphSettings * oofGraph::defaultSettings ( )
static

Definition at line 206 of file oofGrphs.cpp.

References oofGraphDefaultSettings::settings().

Referenced by oofGraphData::makeScaleString(), and settings().

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

Definition at line 93 of file oofGrphs.cpp.

References DescribeSelf().

Referenced by oofRepGraphBand_MacRender::draw().

void oofGraph::DescribeSelf ( std::ostream &  os) const
protectedvirtual

Definition at line 248 of file oofGrphs.cpp.

References oofPlotBits::describe(), mIsMono, and mPlotBits.

Referenced by describe().

void oofGraph::draw ( )
void oofGraph::DrawSelf ( )
protectedvirtual
const oofDrawStyle * oofColorable::drawStyle ( ) const
inlineinherited

Definition at line 60 of file oofClrbl.h.

References oofColorable::mDrawStyle.

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

bool oofGraph::drawStylesWereSet ( ) const
inline

Definition at line 373 of file oofGrphs.h.

References mDrawStylesWereSet.

Referenced by oofRepGraphBand::finishConstruction().

virtual void oofGraph::finishConstruction ( dbView ,
const char *  theTitle,
unsigned long  yAxisHeight 
)
pure virtual
void oofGraph::finishConstructionWithPresets ( )
virtual
oofGraphSettings * oofGraph::getLocalSettings ( )

Definition at line 225 of file oofGrphs.cpp.

References mSettings.

Referenced by oofGraphSettingsCompleter::completeSettings().

const char * oofGraph::getTitle ( )
const char * oofGraph::getType ( )

Definition at line 170 of file oofGrphs.cpp.

References mType.

Referenced by oofRepGraphBand_XMLRender::describeLayout().

dbView * oofGraph::getView ( )
void oofColorable::setDrawStyle ( const oofColor fg = oofColor::Black,
const oofPattern pat = oofPattern::gray,
const oofPattern mono = oofPattern::gray,
const oofColor bg = oofColor::White 
)
inlineinherited

Definition at line 40 of file oofClrbl.h.

References oofColorable::mDrawStyle.

void oofColorable::setDrawStyle ( const oofDrawStyle inDrawStyle)
inlineinherited

Definition at line 48 of file oofClrbl.h.

References oofColorable::mDrawStyle.

void oofGraph::setDrawStyles ( oofDrawStyleSet inSet)
void oofGraph::setDrawStyles ( oofDrawStyleArray inArray)
void oofGraph::setPaneRect ( Rect  inRect)
void oofGraph::setPaneRect ( oofRect  inRect)

Definition at line 114 of file oofGrphs.cpp.

References mPlotBits, and oofPlotBits::setPaneRect().

void oofGraph::setStyleToColor ( )
void oofGraph::setStyleToMono ( )
const oofGraphSettings * oofGraph::settings ( ) const
void oofGraph::setTitle ( const char *  inTitle)

Definition at line 157 of file oofGrphs.cpp.

References mTitle.

Referenced by oofRepGraphBand::oofRepGraphBand().

void oofGraph::setView ( dbView inView)

Member Data Documentation

oofDrawStyle* oofColorable::mDrawStyle
protectedinherited
bool oofGraph::mDrawStylesWereSet
protected

Definition at line 123 of file oofGrphs.h.

Referenced by drawStylesWereSet(), and setDrawStyles().

bool oofGraph::mIsMono
protected

Definition at line 120 of file oofGrphs.h.

Referenced by DescribeSelf(), DrawSelf(), setStyleToColor(), and setStyleToMono().

oofPlotBits oofGraph::mPlotBits
protected
oofSeriesSet oofGraph::mSeriesSet
protected
oofGraphSettings* oofGraph::mSettings
protected

Definition at line 122 of file oofGrphs.h.

Referenced by getLocalSettings(), settings(), and ~oofGraph().

OOF_String oofGraph::mTitle
protected

Definition at line 125 of file oofGrphs.h.

Referenced by finishConstructionWithPresets(), getTitle(), and setTitle().

OOF_String oofGraph::mType
protected
dbView* oofGraph::mView
protected

Definition at line 124 of file oofGrphs.h.

Referenced by finishConstructionWithPresets(), getView(), setView(), and ~oofGraph().

oofGraph * oofGraph::sCurrentGraph
staticprotected

Definition at line 121 of file oofGrphs.h.

Referenced by becomeCurrent(), and currentGraph().


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