GRE_LEGEND_COLORSCALE::ITEM Class Reference

#include <gre/legend.h>

Inheritance diagram for GRE_LEGEND_COLORSCALE::ITEM:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void Draw (const DRAWCONTEXT &dc, const LRECT2D &samplerect) const
virtual void DrawTreeView (void *hdc, const GRE_ELEMSAMPLE_DC &dc, const CRect &rect, bool HasFocus)
 ITEM (GRE_LEGEND_COLORSCALE &legend, const SIMPLE_ARRAY< COLOR > &palette, const CBPARMS &ColorBalance, double MinValue, double MaxValue, bool VerticalMinAtTop)
INT32 ValueToPosition (const GRE_LAYER_RASTER *layer, double value, INT32 size) const
virtual ~ITEM ()

Constructor & Destructor Documentation

GRE_LEGEND_COLORSCALE::ITEM::ITEM GRE_LEGEND_COLORSCALE legend,
const SIMPLE_ARRAY< COLOR > &  palette,
const CBPARMS ColorBalance,
double  MinValue,
double  MaxValue,
bool  VerticalMinAtTop
 

Constructor.

Parameters:
legend  Legend containing item
ColorBalance  For adjusting color

virtual GRE_LEGEND_COLORSCALE::ITEM::~ITEM  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void GRE_LEGEND_COLORSCALE::ITEM::Draw const DRAWCONTEXT &  dc,
const LRECT2D samplerect
const [virtual]
 

Draw item.

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

Implements GRE_LEGEND::ITEMBASE.

virtual void GRE_LEGEND_COLORSCALE::ITEM::DrawTreeView void *  hdc,
const GRE_ELEMSAMPLE_DC dc,
const CRect &  rect,
bool  HasFocus
[virtual]
 

Draw item with label in TreeView (WIN32_MFC).

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

Implements GRE_LEGEND::ITEMBASE.

INT32 GRE_LEGEND_COLORSCALE::ITEM::ValueToPosition const GRE_LAYER_RASTER layer,
double  value,
INT32  size
const
 

Convert "value" to position in legend coordinates.

This accounts for whether minimum is at bottom/left or top/right.

Parameters:
layer  Raster layer
value  Value to obtain position for
size  Size of legend in pixels


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