[mapguide-trac] #24: Fix some bugs in the ResizeBox symbolization code
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Apr 2 19:40:23 EDT 2007
#24: Fix some bugs in the ResizeBox symbolization code
------------------------------+---------------------------------------------
Reporter: waltweltonlair | Owner: waltweltonlair
Type: defect | Status: new
Priority: high | Milestone: 1.2
Component: Server | Version: 1.2.0
Severity: major | Keywords:
External_id: 924135 |
------------------------------+---------------------------------------------
The symbolization code wasn't correctly handling the case of an off-center
resize box, nor was it updating the resize box correctly in the case where
the symbol definition had multiple graphic elements being added to the
resize box.
The new code is also simpler.
* we get the initial resize box extents and store them for reference
* we then add the bounds of all graphic elements with resize control set
to AddToResizeBox to a copy of these extents
* now that we have the original resize box and the updated resize box, we
can easily compute the scales / translations to be applied
* all graphic elements with resize control set to AdjustToResizeBox are
then transformed using the scales / translations
I also changed the boolean SE_RenderPrimitive::resize member to an
enumerated type. This way we only have to evaluate the resizeControl
parameter one time.
I tested the updated code with polylines, polygons, text, and raster
elements. I used an off-center resize box, and tried all the different
GrowControl options.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/24>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list