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

Graph Element Object drawn in an oofGraph. More...

#include <oofGeos.h>

Inheritance diagram for oofGeo:
Inheritance graph
[legend]
Collaboration diagram for oofGeo:
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 ()
 
 oofGeo (int XIdeal, int YIdeal, oofSeries *SeriesPtr=0, PositionState=posNone)
 
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)=0
 
virtual ~oofGeo ()
 

Protected Member Functions

virtual void DrawSelf (const oofDrawStyle *)
 

Protected Attributes

oofDrawStylemDrawStyle
 
PositionState mPosition
 
oofSeriesmSeriesPtr
 
int mXDraw
 
int mXIdeal
 
int mYDraw
 
int mYIdeal
 

Detailed Description

Graph Element Object drawn in an oofGraph.

These are cross-platform as their drawing code is so trivial it is bounded by the _Macintosh and _Windows #defines.

Note
UnJames comments refer to reversing the original port from the Mac by a programmer who shall otherwise remain nameless.
Todo:
clarify the legal position of our PNG and GIF drawing via GD.

Definition at line 43 of file oofGeos.h.

Constructor & Destructor Documentation

oofGeo::oofGeo ( int  XIdeal,
int  YIdeal,
oofSeries SeriesPtr = 0,
PositionState  pos = posNone 
)

Definition at line 49 of file oofGeos.cpp.

oofGeo::~oofGeo ( )
virtual

Definition at line 62 of file oofGeos.cpp.

Member Function Documentation

oofRect oofGeo::BoundingRect ( oofTransformationManager )
virtual
void oofGeo::describe ( std::ostream &  ) const
virtual
void oofGeo::draw ( )
virtual void oofGeo::DrawSelf ( const oofDrawStyle )
inlineprotectedvirtual
const oofDrawStyle * oofColorable::drawStyle ( ) const
inlineinherited

Definition at line 60 of file oofClrbl.h.

References oofColorable::mDrawStyle.

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

oofString oofGeo::geoType ( ) const
virtual
int oofGeo::locationX ( )
inline

Definition at line 56 of file oofGeos.h.

Referenced by oofGeoLine::DrawSelf().

int oofGeo::locationY ( )
inline

Definition at line 57 of file oofGeos.h.

Referenced by oofGeoLine::DrawSelf().

PositionState oofGeo::Position ( )
inline

Definition at line 51 of file oofGeos.h.

Referenced by oofPlotBits::append().

oofSeries * oofGeo::SeriesPtr ( )

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 oofGeo::setLocation ( long  inXIdeal,
long  inYIdeal 
)
virtual

Definition at line 75 of file oofGeos.cpp.

Referenced by oofPlotBits::append().

virtual void oofGeo::Transform ( oofTransformationManager inTransformationManagerPtr)
pure virtual

Member Data Documentation

oofDrawStyle* oofColorable::mDrawStyle
protectedinherited
PositionState oofGeo::mPosition
protected
oofSeries* oofGeo::mSeriesPtr
protected

Definition at line 74 of file oofGeos.h.

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

int oofGeo::mXDraw
protected
int oofGeo::mXIdeal
protected
int oofGeo::mYDraw
protected
int oofGeo::mYIdeal
protected

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