ADCircularTextObject Class Reference


Detailed Description

This class is responsible for generating text shapes which appear to 'wrap' aroudn the circumference of a circle, either in a convex or concave fashion. It supports two styles of wrapping, a distributed mode and a non-distributed mode. The distributed mode places text on the circle evenly distributed within a user-defined arc. The non-distributed version places all text relative to the previous character and does not fit the text within an arc.

The most important methods within this class are the BuildTextFragments methods. (see AD comments below) These methods, taking into account style information, populate a list of 2D objects with all of the required data to render text on a circle. The buildtextFragments methods do NOT draw the required shapes, they simply add the shapes to a rendering list. The class Draw() method adds the generated shapes to the instance group object for rendering puropses.

The basic draw process is as follows: 1. Calculate the width of every character and the total length of the text block. 2. Determine the percentage length that each char takes on the circle. 3. From the percentage, calculate the angle to the character. 4. Find the x,y co-ordinates of the angle in 3. 5. Add a text char with the caculated co-ords and angle to the render list. 6. Do for all chars.


The documentation for this class was generated from the following file:
Generated on Sat Nov 11 10:52:56 2006 for mf2 by  doxygen 1.5.1