WhirlyGlobe  1.1
A 3D interactive globe toolkit for ios
SingleLabel Class Reference

#import <LabelLayer.h>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

- (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.


Property Documentation

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


The documentation for this class was generated from the following file: