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.Parcelable
ElevationInfo 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 class
ElevationInfo.AltitudeType
Represents the type of altitude info for an entitystatic class
ElevationInfo.ElevationType
Represents the type of elevation info for an entity
-
Field Summary
Fields Modifier and Type Field Description float
Altitude
Value representing the altitudefloat
AltitudeError
Value representing the altitude errorElevationInfo.AltitudeType
AltType
Value representing the altitude typestatic android.os.Parcelable.Creator<ElevationInfo>
CREATOR
Used for sending data across bindersdouble
Floor
Value representing the floor indexjava.util.UUID
StructureID
Optional building identifierElevationInfo.ElevationType
Type
Represents 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 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 metersint
describeContents()
static ElevationInfo
None()
There is no elevation info associated with this entity or constraint - only constrain in 2Dstatic ElevationInfo
OnFloor(java.util.UUID structureID, int floor)
The entity is on a building floor with a known id and zero-indexed floor numberstatic ElevationInfo
OnTerrain()
The entity is outside (not in a building) and placed on the terrainjava.lang.String
toString()
void
writeToParcel(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:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-