CartoType API
Public Member Functions
CartoType::TTestZGraphicsContext Class Reference

#include <cartotype_map.h>

Inheritance diagram for CartoType::TTestZGraphicsContext:
CartoType::CGraphicsContext

List of all members.

Public Member Functions

 TTestZGraphicsContext (CEngine &aEngine, int32 aWidth, int32 aHeight, CLabelGraphicsContext &aGc)
void Sync ()
TResult DrawBitmap (const TBitmap &, const TPoint &)
TResult DrawRect (const TRect &aRect)
TResult DrawShape (const MPath &aPath, uint32 aFlags)
void Clear ()
void Set (int32 aZ, bool aDraw)

Detailed Description

This special-purpose graphics context allows drawing to be allowed or forbidden according to whether an object overlaps an object with a higher Z-level.


Member Function Documentation

void CartoType::TTestZGraphicsContext::Clear ( ) [inline, virtual]

Clear the drawing area to transparent black. If colors are not stored set all pixels to zero intensity. If transparency levels are not stored set all pixels to black.

Implements CartoType::CGraphicsContext.

TResult CartoType::TTestZGraphicsContext::DrawBitmap ( const TBitmap aBitmap,
const TPoint aTopLeft 
) [inline, virtual]

Draw a bitmap. If the bitmap has no color information use the current color. Combine any alpha information from the bitmap with the current alpha level. The coordinates are whole pixels.

Implements CartoType::CGraphicsContext.

TResult CartoType::TTestZGraphicsContext::DrawRect ( const TRect aRect) [inline, virtual]

Draw a filled rectangle in the current color. The coordinates are whole pixels.

Reimplemented from CartoType::CGraphicsContext.

TResult CartoType::TTestZGraphicsContext::DrawShape ( const MPath aPath,
uint32  aFlags 
) [inline, virtual]

Draw a filled shape in the current color.

Implements CartoType::CGraphicsContext.

void CartoType::TTestZGraphicsContext::Sync ( ) [inline, virtual]

Synchronize the private graphics state to take account of any changes in iChangeFlags.

Implements CartoType::CGraphicsContext.


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