public static final class MapNavigator.AboveConstraintOptions extends Object implements AutoCloseable
See MapNavigator#getAboveConstraint
for more information.
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
double |
getMinAltitude()
Returns the minimum altitude the camera should stay above the terrain and/or mesh.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables or disables the constraint The default is true.
|
void |
setMinAltitude(double minAltitude)
Sets the minimum altitude the camera should stay above the terrain and/or mesh.
|
public void close()
close
in interface AutoCloseable
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true to enable the constraint or false to disable itpublic double getMinAltitude()
public void setMinAltitude(double minAltitude)
The minimum altitude defined in the unit of the map reference
, typically meters.
The default value is 20.
Only positive values are allowed. If a negative value is passed, an exception is thrown.
minAltitude
- the minimum altitude.