WhirlyGlobe  1.2
A 3D interactive globe toolkit for iOS
WGLoftLayer Class Reference

#import <LoftLayer.h>

Inheritance diagram for WGLoftLayer:
<WhirlyGlobeLayer>

List of all members.

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

WhirlyGlobeLayerThreadlayerThread
WhirlyGlobe::GlobeScenescene
WhirlyGlobe::LoftedPolySceneRepMap polyReps
 Used to keep track of the lofted polygons.

Properties

float gridSize
BOOL useCache

Detailed Description

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:

  • color [UIColor]
  • height [NSNumber float]
  • priority [NSNumber int]
  • minVis [NSNumber float]
  • maxVis [NSNumber float]
  • fade [NSNumber float]

Member Function Documentation

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


Property Documentation

- (float) gridSize [read, write, assign]

Shapes are clipped against a grid before lofting. This is the grid size, in radians


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