IAFloorPlan Class Reference

Inherits from NSObject
Conforms to NSCoding
Declared in IAFloorPlan.h

Overview

IAFloorPlan represents floor plan data received from service.

Floor plan information

  floorPlanId

Identifier of the floor plan.

@property (nonatomic, readonly, nullable) NSString *floorPlanId

Declared In

IAFloorPlan.h

  name

Name of the floor plan.

@property (nonatomic, readonly, nullable) NSString *name

Declared In

IAFloorPlan.h

  imageUrl

Image URL of the floor plan.

@property (nonatomic, readonly, nullable) NSURL *imageUrl

Declared In

IAFloorPlan.h

  width

Width of the image bitmap in pixels.

@property (nonatomic, readonly) NSUInteger width

Declared In

IAFloorPlan.h

  height

Height of the image bitmap in pixels.

@property (nonatomic, readonly) NSUInteger height

Declared In

IAFloorPlan.h

  pixelToMeterConversion

Conversion multiplier from pixels to meters.

@property (nonatomic, readonly) float pixelToMeterConversion

Declared In

IAFloorPlan.h

  meterToPixelConversion

Conversion multiplier from meters to pixels.

@property (nonatomic, readonly) float meterToPixelConversion

Declared In

IAFloorPlan.h

  widthMeters

Width of floor plan in meters.

@property (nonatomic, readonly) float widthMeters

Declared In

IAFloorPlan.h

  heightMeters

Height of floor plan in meters.

@property (nonatomic, readonly) float heightMeters

Declared In

IAFloorPlan.h

  floor

Object containing the floor of floor plan. If the object is nil, the floor is unspecified.

@property (nonatomic, readonly, nullable) IAFloor *floor

Declared In

IAFloorPlan.h

  bearing

The approximate bearing of left side of floor plan in degrees east of true north.

@property (nonatomic, readonly) double bearing

Declared In

IAFloorPlan.h

  center

Corresponding WGS84 coordinate of center of floor plan bitmap placed on the surface of Earth.

@property (nonatomic, readonly) CLLocationCoordinate2D center

Declared In

IAFloorPlan.h

  topLeft

Corresponding WGS84 coordinate of top left of floor plan bitmap placed on the surface of Earth.

@property (nonatomic, readonly) CLLocationCoordinate2D topLeft

Declared In

IAFloorPlan.h

  topRight

Corresponding WGS84 coordinate of top right of floor plan bitmap placed on the surface of Earth.

@property (nonatomic, readonly) CLLocationCoordinate2D topRight

Declared In

IAFloorPlan.h

  bottomLeft

Corresponding WGS84 coordinate of bottom left of floor plan bitmap placed on the surface of Earth.

@property (nonatomic, readonly) CLLocationCoordinate2D bottomLeft

Declared In

IAFloorPlan.h

– coordinateToPoint:

Converts coordinate to corresponding point.

- (CGPoint)coordinateToPoint:(CLLocationCoordinate2D)coord

Parameters

coord

WGS84 coordinate

Return Value

corresponding pixel point on floor plan bitmap

Declared In

IAFloorPlan.h

– pointToCoordinate:

Converts point to corresponding coordinate.

- (CLLocationCoordinate2D)pointToCoordinate:(CGPoint)point

Parameters

point

pixel point of floor plan bitmap

Return Value

corresponding WGS84 coordinate

Declared In

IAFloorPlan.h

– initWithId:width:height:wgs2pix:pix2wgs:

Initializes

- (nullable id)initWithId:(nullable NSString *)floorPlanId width:(NSUInteger)width height:(NSUInteger)height wgs2pix:(nullable NSArray *)wgsToPixel pix2wgs:(nullable NSArray *)pixelToWgs

Parameters

floorPlanId

is the identifier of floor plan

width

is the width of the floor plan image in pixels

height

is the height of the floor plan image in pixels

wgsToPixel

is an NSArray of 6 double values in row major order used for creating an affine transform for point mapping

pixelToWgs

is an NSArray of 6 double values in row major order used for creating an affine transform for point mapping

Declared In

IAFloorPlan.h

– initWithId:width:height:wgs2pix:pix2wgs:imageUrl:name:floor:

Initializes

- (nullable id)initWithId:(nullable NSString *)floorPlanId width:(NSUInteger)width height:(NSUInteger)height wgs2pix:(nullable NSArray *)wgsToPixel pix2wgs:(nullable NSArray *)pixelToWgs imageUrl:(nullable NSURL *)url name:(nullable NSString *)name floor:(nullable IAFloor *)floor

Parameters

floorPlanId

is the identifier of floor plan

width

is the width of the floor plan image in pixels

height

is the height of the floor plan image in pixels

wgsToPixel

is an NSArray of 6 double values in row major order used for creating an affine transform for point mapping

pixelToWgs

is an NSArray of 6 double values in row major order used for creating an affine transform for point mapping

url

is a NSURL object containing the url address of the floor plan image

name

is the name of the floor plan

floor

is a IAFloor object containing the floor number and floor certainty of the floor plan

Declared In

IAFloorPlan.h