![]() |
Maria GDK 5.0.0.935
Documentation of native code in develop branch
|
#include <M3DGlobeCamera.h>
Public Member Functions | |
| GlobeCamera (std::shared_ptr< LocalOrigin > origin, std::shared_ptr< Globe > globe, std::shared_ptr< STK::Camera > cam) | |
| std::shared_ptr< const STK::Camera > | getCamera () const |
| std::shared_ptr< STK::Camera > | camera () |
| std::shared_ptr< LocalOrigin > | localOrigin () |
| std::shared_ptr< const LocalOrigin > | getLocalOrigin () const |
| double | getTargetLatitude () const |
| double | getTargetLongitude () const |
| double | getTargetAltitude () const |
| double | getTargetDistance () const |
| void | setTargetLatitude (double target_lat) |
| void | setTargetLongitude (double target_lon) |
| void | setTargetAltitude (double target_alt) |
| void | setTargetDistance (double target_distance) |
| void | setYaw (double yaw) |
| void | setPitch (double pitch) |
| void | setRoll (double roll) |
| double | getYaw () const |
| double | getPitch () const |
| double | getRoll () const |
| void | setTargetPositionOrientation (double lat, double lon, double alt, float roll, float pitch, float yaw) |
| const STK::Vector3d & | getTargetPosition () const |
| STK::Vector3d | getCameraPosition () const |
| void | getCameraPositionGeo (double &cam_lat, double &cam_lon, double &cam_alt) |
| void | update (double dt) |
| void | apply () |
| Apply requested camera parameters immediately. | |
| bool | hasChanged () const |
| bool | needsRedraw () const |
| void | syncState (GlobeCameraControl &ctrl) |
| void | setSmoothing (bool smooth) |
| bool | getSmoothing () const |
Protected Attributes | |
| std::shared_ptr< Globe > | globe_ |
| std::shared_ptr< LocalOrigin > | local_origin_ |
| std::shared_ptr< STK::Camera > | cam_ |
| STK::Vector3d | target_position_ |
| STK::Quaternionf | orientation_ |
| STK::Vector3f | offset_ |
| STK::Vector3d | prev_position_ |
| STK::Quaternionf | prev_orientation_ |
| STK::Vector3f | prev_offset_ |
| STK::Matrix4x4f | body_to_gl_ |
| double | target_lat_ |
| double | target_lon_ |
| double | target_alt_ |
| double | target_distance_ |
| bool | dirty_ |
| double | yaw_ |
| double | pitch_ |
| double | roll_ |
| bool | _smooth |
| bool | _avoidGround |
| STK::AngularFilter | lat_filter_ |
| STK::AngularFilter | lon_filter_ |
| STK::Filter | alt_filter_ |
| STK::AngularFilter | yaw_filter_ |
| STK::AngularFilter | pitch_filter_ |
| STK::Filter | distance_filter_ |
GlobeCamera - Short description. Detailed description.
| void GlobeCamera::syncState | ( | GlobeCameraControl & | ctrl | ) |
Synchronize control state. Synchronizes the state required for an update(). This is useful if the mouse input and rendering are in separate threads.