GRE_LEGEND::ITEMBASE Class Reference

End of GRE_LEGEND::DRAWCONTEXT class. Base class for legend item defining virtual methods for drawing. More...

#include <gre/legend.h>

Inheritance diagram for GRE_LEGEND::ITEMBASE:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void Draw (const DRAWCONTEXT &dc, const LRECT2D &samplerect) const =0
void DrawLabel (const DRAWCONTEXT &dc, const LRECT2D &samplerect) const
virtual void DrawTreeView (void *hdc, const GRE_ELEMSAMPLE_DC &dc, const CRect &rect, bool HasFocus)=0
const RVC::ELEMENTGetElement () const
INT32 GetElemNum () const
const MISTRINGGetLabel () const
void GetLabelSize (const DRAWCONTEXT &dc, LPOINT2D &size) const
virtual bool HasTransparency () const
 ITEMBASE (const RVC::ELEMENT &element, const MISTRING &label)
 ITEMBASE (const MISTRING &label)
 ITEMBASE ()
void MergeLabel (const MISTRING &label)
virtual ~ITEMBASE ()

Detailed Description

End of GRE_LEGEND::DRAWCONTEXT class. Base class for legend item defining virtual methods for drawing.

Definition at line 262 of file legend.h.


Constructor & Destructor Documentation

GRE_LEGEND::ITEMBASE::ITEMBASE  ) 
 

Default constructor.

GRE_LEGEND::ITEMBASE::ITEMBASE const MISTRING label  )  [explicit]
 

Construct with no specified element.

Parameters:
label  Label

GRE_LEGEND::ITEMBASE::ITEMBASE const RVC::ELEMENT element,
const MISTRING label
 

Construct with element and label.

Parameters:
element  Element from associated object
label  Label

virtual GRE_LEGEND::ITEMBASE::~ITEMBASE  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void GRE_LEGEND::ITEMBASE::Draw const DRAWCONTEXT dc,
const LRECT2D samplerect
const [pure virtual]
 

Draw item.

Parameters:
dc  Legend drawing context
samplerect  Rectangle for sample symbol, not including label

Implemented in GRE_LEGEND_POINT::ITEM, GRE_LEGEND_LINE::ITEM, GRE_LEGEND_POLY::ITEM, GRE_LEGEND_COLORSAMPLE::ITEM, GRE_LEGEND_COLORSCALE::ITEM, and GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE::ITEM.

void GRE_LEGEND::ITEMBASE::DrawLabel const DRAWCONTEXT dc,
const LRECT2D samplerect
const
 

Draw label.

Parameters:
dc  Legend drawing context
samplerect  Rectangle for sample symbol, not including label

virtual void GRE_LEGEND::ITEMBASE::DrawTreeView void *  hdc,
const GRE_ELEMSAMPLE_DC dc,
const CRect &  rect,
bool  HasFocus
[pure virtual]
 

Draw item with label in MFC TreeView (MFC only).

Must implement in derived class when compiling for WIN32_MFC.

Parameters:
hdc  Windows device context
dc  Legend drawing context
rect  Bounding rectangle including label
HasFocus  'true' if item has "focus"

Implemented in GRE_LEGEND_POINT::ITEM, GRE_LEGEND_LINE::ITEM, GRE_LEGEND_POLY::ITEM, GRE_LEGEND_COLORSAMPLE::ITEM, GRE_LEGEND_COLORSCALE::ITEM, and GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE::ITEM.

const RVC::ELEMENT& GRE_LEGEND::ITEMBASE::GetElement  )  const [inline]
 

Get element used by item.

Definition at line 308 of file legend.h.

INT32 GRE_LEGEND::ITEMBASE::GetElemNum  )  const [inline]
 

Get element number.

Definition at line 312 of file legend.h.

const MISTRING& GRE_LEGEND::ITEMBASE::GetLabel  )  const [inline]
 

Get the label.

Definition at line 316 of file legend.h.

void GRE_LEGEND::ITEMBASE::GetLabelSize const DRAWCONTEXT dc,
LPOINT2D size
const
 

Get size of label.

Parameters:
dc  Legend drawing context
size  Size in "display pixels" returned

virtual bool GRE_LEGEND::ITEMBASE::HasTransparency  )  const [virtual]
 

Determine if item requires transparency support.

Reimplemented in GRE_LEGEND_POINT::ITEM, GRE_LEGEND_LINE::ITEM, and GRE_LEGEND_POLY::ITEM.

void GRE_LEGEND::ITEMBASE::MergeLabel const MISTRING label  ) 
 

Merge label with current label.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:19:53 2004 for TNTsdk by  doxygen 1.3.8-20040913