WhirlyGlobe
1.1
A 3D interactive globe toolkit for ios
|
#import <LabelLayer.h>
Public Member Functions | |
(bool) | - calcWidth:height:defaultFont: |
(void) | - calcExtents:corners:norm: |
Properties | |
NSString * | text |
The text we want to see. | |
WhirlyGlobe::GeoCoord | loc |
NSDictionary * | desc |
WhirlyGlobe::SimpleIdentity | iconTexture |
If non-zero, this is the texture to use as an icon. |
The Single Label represents one label with its text, location, and an NSDictionary that can be used to override some attributes. In general we don't want to create just one label, we want to create a large number of labels at once. We use an array of these single labels to do that.
- (void) calcExtents: | (NSDictionary *) | topDesc | |
corners: | (Point3f *) | pts | |
norm: | (Point3f *) | norm | |
This will calculate the real extents in 3D over the globe. Pass in an array of 3 point3f structures for the points and normals. The corners are returned in counter-clockwise order. This is used for label selection
- (bool) calcWidth: | (float *) | width | |
height: | (float *) | height | |
defaultFont: | (UIFont *) | font | |
This is used to sort out width and height from the defaults. Pass in the value of one and zero for the other and it will fill in the missing one.
- (NSDictionary *) desc [read, write, retain] |
This dictionary contains overrides for certain attributes for just this label. Only width, height, and icon supported
- WhirlyGlobe: [read, write, assign] |
A geolocation for the middle, left or right of the label depending on the justification