public class IAFloorPlan
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
IAFloorPlan(android.os.Parcel in)
Do not use this constructor directly.
|
|
IAFloorPlan(java.lang.String id,
java.lang.String name,
java.lang.String url,
int bitmapWidth,
int bitmapHeight,
int floorLevel,
double[] pixelToWgs,
double[] wgsToPixel)
Constructs an
IAFloorPlan instance based on parameters. |
Modifier and Type | Method and Description |
---|---|
android.graphics.PointF |
coordinateToPoint(IALatLng coord)
Converts geographical coordinates to the corresponding point of pixel coordinates
|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
android.graphics.Matrix |
getAffinePix2wgs() |
android.graphics.Matrix |
getAffineWgs2pix() |
float |
getBearing() |
int |
getBitmapHeight() |
int |
getBitmapWidth() |
IALatLng |
getBottomLeft() |
IALatLng |
getBottomRight() |
IALatLng |
getCenter() |
int |
getFloorLevel() |
float |
getHeightMeters() |
java.lang.String |
getId() |
float |
getMetersToPixels() |
java.lang.String |
getName() |
float |
getPixelsToMeters() |
IALatLng |
getTopLeft() |
IALatLng |
getTopRight() |
java.lang.String |
getUrl() |
float |
getWidthMeters() |
int |
hashCode() |
IALatLng |
pointToCoordinate(android.graphics.PointF pointf)
Converts a point of pixel coordinates to the corresponding geographical coordinates
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel out,
int flags) |
public IAFloorPlan(java.lang.String id, java.lang.String name, java.lang.String url, int bitmapWidth, int bitmapHeight, int floorLevel, double[] pixelToWgs, double[] wgsToPixel)
IAFloorPlan
instance based on parameters. Do not call this constructor
directly. IAFloorPlans
are obtained from the the SDK in IARegion
sid
- 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(android.os.Parcel in)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getUrl()
public int getBitmapWidth()
public int getBitmapHeight()
public int getFloorLevel()
public android.graphics.Matrix getAffineWgs2pix()
public android.graphics.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 IALatLng getBottomRight()
public android.graphics.PointF coordinateToPoint(IALatLng coord)
coord
- WGS84 coordinatepublic IALatLng pointToCoordinate(android.graphics.PointF pointf)
pointf
- pixel point on the floor plan bitmappublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object