public class IAFloorPlan extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
protected |
IAFloorPlan(Parcel in)
Do not use this constructor directly.
|
|
IAFloorPlan(String id,
String name,
String url,
int bitmapWidth,
int bitmapHeight,
int floorLevel,
double[] pixelToWgs,
double[] wgsToPixel)
Constructs IAFloorPlan instance based on parameters
|
Modifier and Type | Method and Description |
---|---|
PointF |
coordinateToPoint(IALatLng coord)
Converts coordinate to corresponding point
|
int |
describeContents() |
Matrix |
getAffinePix2wgs() |
Matrix |
getAffineWgs2pix() |
float |
getBearing() |
int |
getBitmapHeight() |
int |
getBitmapWidth() |
IALatLng |
getBottomLeft() |
IALatLng |
getCenter() |
int |
getFloorLevel() |
float |
getHeightMeters() |
String |
getId() |
float |
getMetersToPixels() |
String |
getName() |
float |
getPixelsToMeters() |
IALatLng |
getTopLeft() |
IALatLng |
getTopRight() |
String |
getUrl() |
float |
getWidthMeters() |
IALatLng |
pointToCoordinate(PointF pointf)
Converts point to corresponding coordinate
|
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final Parcelable.Creator CREATOR
public IAFloorPlan(String id, String name, String url, int bitmapWidth, int bitmapHeight, int floorLevel, double[] pixelToWgs, double[] wgsToPixel)
id
- floor plan idname
- descriptive name of floor planurl
- URL for bitmap resourcebitmapWidth
- width of bitmap in pixelsbitmapHeight
- height of bitmap in pixelsfloorLevel
- the logical floor level of buildingpixelToWgs
- 6 float values used to initialize pixelToWgs affinity matrixwgsToPixel
- 6 float values used to initialize wgsToPixel affinity matrixprotected IAFloorPlan(Parcel in)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
public String getId()
public String getName()
public String getUrl()
public int getBitmapWidth()
public int getBitmapHeight()
public int getFloorLevel()
public Matrix getAffineWgs2pix()
public Matrix getAffinePix2wgs()
public float getPixelsToMeters()
public float getMetersToPixels()
public float getWidthMeters()
public float getHeightMeters()
public float getBearing()
public IALatLng getCenter()
public IALatLng getTopLeft()
public IALatLng getBottomLeft()
public IALatLng getTopRight()
public PointF coordinateToPoint(IALatLng coord)
coord
- WGS84 coordinatepublic IALatLng pointToCoordinate(PointF pointf)
pointf
- pixel point of floor plan bitmap