Google

"http://www.w3.org/TR/html40/loose.dtd">

Table of Contents

Class: MapObject pdfmap.py

For shapes/images which represent objects on the map.

Methods   
__init__
draw
drawIt
realDraw
  __init__ 
__init__ (
        self,
        mappdf,
        thickness,
        rgbout,
        rgbin,
        )

Initializes a shape Map object.

mappdf : the PDF Map object

thickness : thickness of the drawing

rgbout : drawing's external color or filename (images)

rgbin : drawing's internal color or ""

  draw 
draw ( self )

Only there to be sure the user will override it.

Exceptions   
PDFMapError, 'NotImplemented\nYou must first subclass pdfmap.MapObject, then override its draw() method'
  drawIt 
drawIt (
        self,
        x,
        y,
        length,
        width,
        orientation,
        url=None,
        )

Draws an object on the PDF map.

x,y : object's coordinates in meters

length : object's length in meters

width : object's width in meters

orientation : object's orientation in degres

url : optional url to make an hyperlink on this object

  realDraw 
realDraw ( self )

Really draws the object on the PDF map.


Table of Contents

This document was automatically generated on Mon Feb 4 12:33:53 2002 by HappyDoc version 2.0