Class Camera
Public Functions
| Type | Name |
|---|---|
| Camera (int width, int height) |
|
| double | current_altitude_angle () const |
| const QVector3D & | direction () const |
| void | fly (double dx, double dy, double dz) |
| double | fov_rad () const |
| void | look_at_target (const QVector3D & target) |
| void | move_towards (const QVector3D & world_pos, double distance, bool shrink_direction=false) |
| void | pan (double dx, double dy) |
| void | pan_to_target (const QVector3D & target) |
| QVector3D | planar_direction () const |
| const QVector3D & | position () const |
| QMatrix4x4 | proj_matrix () const |
| std::optional< QPointF > | project_world_to_screen (const QVector3D & world_pos) const |
| QMatrix4x4 | projection_matrix () const |
| double | projection_scale () const |
| void | reset_to_origin () |
| void | rotate_around_center (double dx, double dy, const std::optional< QVector3D > & center=std::nullopt) |
| void | rotate_view (double dx, double dy) |
| int | screen_height () const |
| int | screen_width () const |
| void | set_scene_bounds (const QVector3D & center, float radius) |
| void | set_screen_size (int width, int height) |
| QVector3D | unproject (const QPointF & screen_pos) const |
| const QVector3D & | up () const |
| QMatrix4x4 | view_matrix () const |
| QVector3D | view_right () const |
| QVector3D | view_up () const |
| const Coordinate3D< double > & | world_offset () const |
| Coordinate3D< double > & | world_offset () |
| void | zoom_to_fit (const Extent3D & extent) |
Public Functions Documentation
function Camera
function current_altitude_angle
function direction
function fly
function fov_rad
function look_at_target
function move_towards
inline void Camera::move_towards (
const QVector3D & world_pos,
double distance,
bool shrink_direction=false
)
function pan
function pan_to_target
function planar_direction
function position
function proj_matrix
function project_world_to_screen
inline std::optional< QPointF > Camera::project_world_to_screen (
const QVector3D & world_pos
) const
function projection_matrix
function projection_scale
function reset_to_origin
function rotate_around_center
inline void Camera::rotate_around_center (
double dx,
double dy,
const std::optional< QVector3D > & center=std::nullopt
)
function rotate_view
function screen_height
function screen_width
function set_scene_bounds
function set_screen_size
function unproject
function up
function view_matrix
function view_right
function view_up
function world_offset [1/2]
function world_offset [2/2]
function zoom_to_fit
The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/gui/camera.hpp