Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria3D::GlobeCamera Class Reference

#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::CameragetCamera () const
 
std::shared_ptr< STK::Cameracamera ()
 
std::shared_ptr< LocalOriginlocalOrigin ()
 
std::shared_ptr< const LocalOrigingetLocalOrigin () 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::Vector3dgetTargetPosition () 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< Globeglobe_
 
std::shared_ptr< LocalOriginlocal_origin_
 
std::shared_ptr< STK::Cameracam_
 
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_
 

Detailed Description

GlobeCamera - Short description. Detailed description.

Member Function Documentation

◆ syncState()

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.


The documentation for this class was generated from the following files: