[Mapserver-dev] Example of Structured Text

Sean Gillies sgillies at frii.com
Wed Feb 18 11:23:18 EST 2004


On Feb 18, 2004, at 8:48 AM, Sean Gillies wrote:

> 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)
>


Ack, forgot that zope dev is moderated.  Will take a few minutes for
my doc to be live.  Here's a screenshot:

Sorry, Daniel, I forgot that zope dev is moderated.  Will take a few 
minutes
for my doc to get out.  Here's a screenshot:

http://users.frii.com/sgillies/images/stx.jpg

Sean

> --------------------------
>
> 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
>
> _______________________________________________
> Mapserver-dev mailing list
> Mapserver-dev at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
>




More information about the mapserver-dev mailing list