|
CartoType API
|
#include <cartotype_symbol.h>
Public Member Functions | |
| TResult | Draw (const TTransform &aTransform) |
| TResult | OnStartDrawing () |
| TResult | OnEndDrawing () |
| TFixed | LeftEdge () const |
| TFixed | MaxDistanceFromOrigin () const |
Static Public Member Functions | |
| static CT_IMPORT CSvgSymbol * | New (TResult &aError, CEngine &aEngine, MInputStream &aSvgText, int32 aSvgTextStart, int32 aSvgTextEnd, TFixed aGap, int32 aForcedWidth, int32 aForcedHeight, int32 iOpacity) |
A symbol drawn by intepreting SVG code.
| TResult CSvgSymbol::Draw | ( | const TTransform & | aTransform | ) | [virtual] |
Draw the symbol, transformed by aTransform, using iGc and iLabelGc. Do nothing if iGc is null. If iLabelGc is non-null test the symbol for overlap and draw it only if there is no overlap.
Implements CartoType::CSymbol.
| TFixed CSvgSymbol::LeftEdge | ( | ) | const [virtual] |
Return the left edge of the symbol so that it can be aligned with the start of the path.
Implements CartoType::CSymbol.
| TFixed CSvgSymbol::MaxDistanceFromOrigin | ( | ) | const [virtual] |
Return a distance in pixels guaranteed to be greater than the maximum distance of any part of the symbol from the origin. This is used in ensuring that a margin is drawn round a map so that parts of objects just off it appear, thus enabling tiles to be drawn that match along their edges.
Implements CartoType::CSymbol.
| TResult CSvgSymbol::OnEndDrawing | ( | ) | [virtual] |
Called at the end of a series of drawing operations to indicate that any GC pointers and cached data can be discarded.
Implements CartoType::CSymbol.
| TResult CSvgSymbol::OnStartDrawing | ( | ) | [virtual] |
Called at the start of a series of drawing operations to allow graphics state, etc., to be set.
Implements CartoType::CSymbol.
1.7.5.1