LuciadCPillar 2023.1.04
|
Option to configure the navigation constraint to keep the camera above the terrain. More...
#include <luciad/maps/MapNavigator.h>
Public Member Functions | |
double | getMinAltitude () const |
Returns the minimum altitude the camera should stay above the terrain and/or mesh. More... | |
bool | isEnabled () const |
void | setEnabled (bool enabled) |
Enables or disables the constraint The default is true. More... | |
void | setMinAltitude (double minAltitude) |
Sets the minimum altitude the camera should stay above the terrain and/or mesh. More... | |
Option to configure the navigation constraint to keep the camera above the terrain.
See MapNavigator::getAboveConstraint
for more information.
double luciad::MapNavigator::AboveConstraintOptions::getMinAltitude | ( | ) | const |
Returns the minimum altitude the camera should stay above the terrain and/or mesh.
bool luciad::MapNavigator::AboveConstraintOptions::isEnabled | ( | ) | const |
void luciad::MapNavigator::AboveConstraintOptions::setEnabled | ( | bool | enabled | ) |
Enables or disables the constraint The default is true.
enabled | true to enable the constraint or false to disable it |
void luciad::MapNavigator::AboveConstraintOptions::setMinAltitude | ( | double | minAltitude | ) |
Sets the minimum altitude the camera should stay above the terrain and/or mesh.
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. |