![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#import <LoftLayer.h>
Public Member Functions | |
(void) | - startWithThread:scene: |
Called in layer thread. | |
(WhirlyGlobe::SimpleIdentity) | - addLoftedPolys:desc:cacheName: |
(WhirlyGlobe::SimpleIdentity) | - addLoftedPoly:desc:cacheName: |
(void) | - removeLoftedPoly: |
Remove a group of lofted polygons as specified by the ID. | |
(void) | - changeLoftedPoly:desc: |
Change a lofted poly group as defined by the dictionary. | |
Protected Attributes | |
WhirlyGlobeLayerThread * | layerThread |
WhirlyGlobe::GlobeScene * | scene |
WhirlyGlobe::LoftedPolySceneRepMap | polyReps |
Used to keep track of the lofted polygons. | |
Properties | |
float | gridSize |
BOOL | useCache |
The WhirlyGlobe Loft Layer creates a polygon lofted above the globe with sides. These are typically drawn transparently Represents a set of lofted polygons.
When adding a set of lofted polys, you can pass in an optional dictionary describing how they'll look. That can have any of these key/value pairs:
- WhirlyGlobe: | (WhirlyGlobe::VectorShapeRef) | shape | |
desc: | (NSDictionary *) | desc | |
cacheName: | (NSString *) | cacheName | |
Create a single lofted polygon from the given shape. Visual characteristics are defined by the dictionary. If the cache name is specified, we'll look for the given cache file or create it.
- WhirlyGlobe: | (WhirlyGlobe::ShapeSet *) | shape | |
desc: | (NSDictionary *) | desc | |
cacheName: | (NSString *) | cacheName | |
Create one or more lofted polygons from the set of shapes given. The given dictionary defines how the will look. If the cache name is specified, we'll look for the given cache file or create it. Returns the ID used to identify the group.
- (float) gridSize [read, write, assign] |
Shapes are clipped against a grid before lofting. This is the grid size, in radians