[Mapserver-dev] Example of Structured Text

Sean Gillies sgillies at frii.com
Wed Feb 18 10:48:58 EST 2004


Hi all,

Here's an example of what Norman was talking about.  I've slapped
together a quick and incomplete documentation for the rectObj
shadow class in Structured Text.  Here is the source (between the
dashed lines)

--------------------------

class **rectObj**

     Attributes

         float *minx*, float *miny*, float *maxx*, float *maxy*

     Constructor

         rectObj([float *minx*, float *miny*, float *maxx*, float 
*maxy*])

             Returns **rectObj**

     Methods

         draw(**mapObj** *map*, **layerObj** *layer*, **imageObj** 
*img*, int *classindex* [, string *text*])

             Draw rectangle into *img* using style defined by the
             *classindex* class of *layer*.

         toPolygon()

             Convert to a polygon, returns **shapeObj**

-------------

It's readable, yes?  And here's what it could look like rendered into 
HTML:

http://dev.zope.org/Members/sgillies/stx_doc_example/document_view

It could also be rendered into DocBook with some XML hacking.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies




More information about the mapserver-dev mailing list