GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE Class Reference

Image Sample legend subclass. More...

#include <gre/lrraster.h>

Inheritance diagram for GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE:

Inheritance graph
[legend]
List of all members.

Public Member Functions

int AddItem (const LPOINT2D &center, const MISTRING &label)
virtual void GetItemSizePixels (LPOINT2D &size) const
 LEGEND_IMAGESAMPLE (GRE_LAYER_RASTER *layer)
void SetItemSize (INT32 xsize, INT32 ysize)

Detailed Description

Image Sample legend subclass.

Definition at line 289 of file lrraster.h.


Constructor & Destructor Documentation

GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE::LEGEND_IMAGESAMPLE GRE_LAYER_RASTER layer  )  [explicit]
 

Construct legend for layer.


Member Function Documentation

int GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE::AddItem const LPOINT2D center,
const MISTRING label
 

Add item to legend.

Returns:
TRUE if item added, FALSE if all cells NULL in specified area, < 0 if error.

virtual void GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE::GetItemSizePixels LPOINT2D size  )  const [virtual]
 

Get "preferred" item size in pixels.

This is used for rendering legend in user interface (ie. LegendView).

Parameters:
size  Size in pixels returned, not including labels

Reimplemented from GRE_LEGEND.

void GRE_LAYER_RASTER::LEGEND_IMAGESAMPLE::SetItemSize INT32  xsize,
INT32  ysize
[inline]
 

Set item size.

Definition at line 349 of file lrraster.h.


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