OOFILE  1.9
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members

Drawing primitive for horizontal bars on graphs. More...

#include <oofGeos.h>

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

Public Types

enum  PositionState {
  posNone, posTop, posLeft, posRight,
  posBottom, posBelow, posToLeft, posCentre
}
 

Public Member Functions

virtual oofRect BoundingRect (oofTransformationManager *)
 
virtual void describe (std::ostream &) const
 
void draw ()
 
const oofDrawStyledrawStyle () const
 
virtual oofString geoType () const
 
int locationX ()
 
int locationY ()
 
 oofGeoBar (int XIdeal, int YIdeal, int width, int height, oofSeries *SeriesPtr=0, PositionState=posNone)
 
 oofGeoBar (int YIdeal, int width, int height, oofSeries *SeriesPtr)
 
PositionState Position ()
 
oofSeriesSeriesPtr ()
 
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 void setLocation (long inXIdeal, long inYIdeal)
 
virtual void Transform (oofTransformationManager *inTransformationManagerPtr)
 

Protected Member Functions

virtual void DrawSelf (const oofDrawStyle *)
 
void setLabel (bool required, int value, int x, int y, int width)
 

Protected Attributes

int mDrawHeight
 
oofDrawStylemDrawStyle
 
int mDrawWidth
 
int mIdealHeight
 
int mIdealWidth
 
PositionState mPosition
 
bool mRequired
 
oofSeriesmSeriesPtr
 
int mTextWidth
 
int mValue
 
oofGeoTextmValueLabel
 
int mXDraw
 
int mXIdeal
 
int mXTextPos
 
int mYDraw
 
int mYIdeal
 
int mYTextPos
 

Detailed Description

Drawing primitive for horizontal bars on graphs.

See also
oofBarGraph::finishConstruction

Definition at line 179 of file oofGeos.h.

Constructor & Destructor Documentation

oofGeoBar::oofGeoBar ( int  XIdeal,
int  YIdeal,
int  width,
int  height,
oofSeries SeriesPtr = 0,
PositionState  pos = posNone 
)

Definition at line 598 of file oofGeos.cpp.

References mIdealHeight, and mIdealWidth.

oofGeoBar::oofGeoBar ( int  YIdeal,
int  width,
int  height,
oofSeries SeriesPtr 
)

Definition at line 606 of file oofGeos.cpp.

References mIdealHeight, and mIdealWidth.

Member Function Documentation

oofRect oofGeoBar::BoundingRect ( oofTransformationManager )
virtual
void oofGeoBar::describe ( std::ostream &  ) const
virtual

Reimplemented from oofLabelledGeo.

Definition at line 798 of file oofGeos.cpp.

References oofLabelledGeo::describe(), mDrawHeight, mDrawWidth, mIdealHeight, and mIdealWidth.

void oofGeo::draw ( )
inherited
void oofGeoBar::DrawSelf ( const oofDrawStyle inStyle)
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().

oofString oofGeoBar::geoType ( ) const
virtual

Reimplemented from oofLabelledGeo.

Definition at line 811 of file oofGeos.cpp.

int oofGeo::locationX ( )
inlineinherited

Definition at line 56 of file oofGeos.h.

Referenced by oofGeoLine::DrawSelf().

int oofGeo::locationY ( )
inlineinherited

Definition at line 57 of file oofGeos.h.

Referenced by oofGeoLine::DrawSelf().

PositionState oofGeo::Position ( )
inlineinherited

Definition at line 51 of file oofGeos.h.

Referenced by oofPlotBits::append().

oofSeries * oofGeo::SeriesPtr ( )
inherited

Definition at line 68 of file oofGeos.cpp.

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 oofLabelledGeo::setLabel ( bool  required,
int  value,
int  x,
int  y,
int  width 
)
protectedinherited
void oofGeo::setLocation ( long  inXIdeal,
long  inYIdeal 
)
virtualinherited

Definition at line 75 of file oofGeos.cpp.

Referenced by oofPlotBits::append().

void oofGeoBar::Transform ( oofTransformationManager inTransformationManagerPtr)
virtual

Member Data Documentation

int oofGeoBar::mDrawHeight
protected

Definition at line 192 of file oofGeos.h.

Referenced by describe(), DrawSelf(), and Transform().

oofDrawStyle* oofColorable::mDrawStyle
protectedinherited
int oofGeoBar::mDrawWidth
protected

Definition at line 192 of file oofGeos.h.

Referenced by describe(), DrawSelf(), and Transform().

int oofGeoBar::mIdealHeight
protected

Definition at line 192 of file oofGeos.h.

Referenced by BoundingRect(), describe(), oofGeoBar(), and Transform().

int oofGeoBar::mIdealWidth
protected

Definition at line 192 of file oofGeos.h.

Referenced by BoundingRect(), describe(), oofGeoBar(), and Transform().

PositionState oofGeo::mPosition
protectedinherited
bool oofLabelledGeo::mRequired
protectedinherited
oofSeries* oofGeo::mSeriesPtr
protectedinherited

Definition at line 74 of file oofGeos.h.

Referenced by oofGeoLine::DrawSelf(), and oofGeoLine::oofGeoLine().

int oofLabelledGeo::mTextWidth
protectedinherited
int oofLabelledGeo::mValue
protectedinherited
oofGeoText* oofLabelledGeo::mValueLabel
protectedinherited
int oofGeo::mXDraw
protectedinherited
int oofGeo::mXIdeal
protectedinherited
int oofLabelledGeo::mXTextPos
protectedinherited
int oofGeo::mYDraw
protectedinherited
int oofGeo::mYIdeal
protectedinherited
int oofLabelledGeo::mYTextPos
protectedinherited

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