Class ElevationInfo
- java.lang.Object
-
- com.trx.neon.api.neonConstraint.model.ElevationInfo
-
- All Implemented Interfaces:
android.os.Parcelable
public class ElevationInfo extends java.lang.Object implements android.os.ParcelableElevationInfo specifies the elevation of an entity. Entities can be marked as being outside on the terrain or inside a specific building on a floor. They can also be marked as containing no elevation information, in which case any constraint will only affect 2D position. Created by John on 7/1/2016.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElevationInfo.AltitudeTypeRepresents the type of altitude info for an entitystatic classElevationInfo.ElevationTypeRepresents the type of elevation info for an entity
-
Field Summary
Fields Modifier and Type Field Description floatAltitudeValue representing the altitudefloatAltitudeErrorValue representing the altitude errorElevationInfo.AltitudeTypeAltTypeValue representing the altitude typestatic android.os.Parcelable.Creator<ElevationInfo>CREATORUsed for sending data across bindersdoubleFloorValue representing the floor indexjava.util.UUIDStructureIDOptional building identifierElevationInfo.ElevationTypeTypeRepresents the type of elevation info for an entity
-
Constructor Summary
Constructors Constructor Description ElevationInfo(android.os.Parcel in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElevationInfoAtAltitude(ElevationInfo.AltitudeType type, float meters, float metersError)The entity is at the specified altitude in meters above mean sea level with the specified error in metersintdescribeContents()static ElevationInfoNone()There is no elevation info associated with this entity or constraint - only constrain in 2Dstatic ElevationInfoOnFloor(java.util.UUID structureID, int floor)The entity is on a building floor with a known id and zero-indexed floor numberstatic ElevationInfoOnTerrain()The entity is outside (not in a building) and placed on the terrainjava.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
Type
public final ElevationInfo.ElevationType Type
Represents the type of elevation info for an entity
-
StructureID
public final java.util.UUID StructureID
Optional building identifier
-
Floor
public final double Floor
Value representing the floor index
-
AltType
public final ElevationInfo.AltitudeType AltType
Value representing the altitude type
-
Altitude
public final float Altitude
Value representing the altitude
-
AltitudeError
public final float AltitudeError
Value representing the altitude error
-
CREATOR
public static final android.os.Parcelable.Creator<ElevationInfo> CREATOR
Used for sending data across binders
-
-
Method Detail
-
OnFloor
public static ElevationInfo OnFloor(java.util.UUID structureID, int floor)
The entity is on a building floor with a known id and zero-indexed floor number- Parameters:
structureID- The identifier for a building, which can be retrieved with the NeonEnvironment API.floor- The zero-based index of the floor- Returns:
- An ElevationInfo object for a building and floor
-
OnTerrain
public static ElevationInfo OnTerrain()
The entity is outside (not in a building) and placed on the terrain- Returns:
- An ElevationInfo object for on terrain
-
AtAltitude
public static ElevationInfo AtAltitude(ElevationInfo.AltitudeType type, float meters, float metersError)
The entity is at the specified altitude in meters above mean sea level with the specified error in meters- Returns:
- An ElevationInfo object for at altitude
-
None
public static ElevationInfo None()
There is no elevation info associated with this entity or constraint - only constrain in 2D- Returns:
- An ElevationInfo object
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-